Cookies are packed using protocol buffers to reduce their size.

This commit is contained in:
Nikos Mavrogiannopoulos
2014-05-21 16:11:05 +02:00
parent 8ba0d563f0
commit 6ca3c4761c
10 changed files with 153 additions and 90 deletions

View File

@@ -51,7 +51,9 @@ typedef struct client_entry_st {
char hostname[MAX_HOSTNAME_SIZE]; /* the requested hostname */
char username[MAX_USERNAME_SIZE]; /* the owner */
char groupname[MAX_GROUPNAME_SIZE]; /* the owner's group */
uint8_t cookie[COOKIE_SIZE]; /* the cookie associated with the session */
uint8_t *cookie; /* the cookie associated with the session */
unsigned cookie_size;
uint8_t dtls_session_id[GNUTLS_MAX_SESSION_ID];
time_t time;