diff options
Diffstat (limited to 'lib/include/net')
-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. |