diff options
author | Ian Moffett <ian@osmora.org> | 2024-09-28 01:10:13 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-09-28 01:10:13 -0400 |
commit | 9a44a928ccebdceb5a4dd9a4d67168cc04d1227f (patch) | |
tree | 8f64888b89e9ffe6f5dd6fd541623b15184ccbb9 /lib/include/net/stpsession.h | |
parent | 2229015eec1804cf33225fd28931a9e43e1fdf2e (diff) |
ostp.d: auth: Add user authentication
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'lib/include/net/stpsession.h')
-rw-r--r-- | lib/include/net/stpsession.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/include/net/stpsession.h b/lib/include/net/stpsession.h index 773d57b..aeed9cb 100644 --- a/lib/include/net/stpsession.h +++ b/lib/include/net/stpsession.h @@ -41,6 +41,9 @@ */ #define MESSAGE_SIZE (1 << 12) +/* Session Request option bits */ +#define SESSION_REQ_USER BIT(0) + /* * The Session Request is sent from the client to the * server and contains a HOP (hash, options, pubkey) @@ -81,6 +84,16 @@ struct session_request { } PACKED; /* + * Structure containing user information + * for password protected channels. + */ +struct session_auth { + char username[256]; + char password[64]; + uint8_t code; +}; + +/* * OSTP Message Frame containing an IV, AES * GCM tag, payload length and payload * with encrypted data. |