aboutsummaryrefslogtreecommitdiff
path: root/lib/include/net/stpsession.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/include/net/stpsession.h')
-rw-r--r--lib/include/net/stpsession.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/include/net/stpsession.h b/lib/include/net/stpsession.h
index 7f9d151..6b936d8 100644
--- a/lib/include/net/stpsession.h
+++ b/lib/include/net/stpsession.h
@@ -34,6 +34,9 @@
#include <ostp/defs.h>
#include <stdint.h>
+#define MAX_USERNAME_LEN 256
+#define MAX_PASSWORD_LEN 64
+
/*
* 2^12 (4096) bytes is a common page size on
* modern systems, this could lead to potential
@@ -78,8 +81,8 @@ struct session_request {
* for password protected channels.
*/
struct session_auth {
- char username[256];
- char password[64];
+ char username[MAX_USERNAME_LEN];
+ char password[MAX_PASSWORD_LEN];
uint8_t code;
};