harmonize the time cookies are stored in security module and main server

This commit is contained in:
Nikos Mavrogiannopoulos
2015-01-25 17:41:32 +01:00
parent e45482bd04
commit 414c5d94da
5 changed files with 28 additions and 11 deletions

View File

@@ -53,6 +53,7 @@ typedef struct client_entry_st {
uint8_t sid[SID_SIZE];
void * auth_ctx; /* the context of authentication */
unsigned have_session; /* whether an auth session is initialized */
unsigned in_use; /* counter of users of this structure */
unsigned tls_auth_ok;
stats_st stats;
@@ -68,6 +69,7 @@ typedef struct client_entry_st {
uint8_t dtls_session_id[GNUTLS_MAX_SESSION_ID];
/* The time this client entry was last modified (created or closed) */
time_t time;
} client_entry_st;
@@ -77,6 +79,7 @@ unsigned sec_mod_client_db_elems(sec_mod_st *sec);
client_entry_st * new_client_entry(sec_mod_st *sec, const char *ip);
client_entry_st * find_client_entry(sec_mod_st *sec, uint8_t sid[SID_SIZE]);
void del_client_entry(sec_mod_st *sec, client_entry_st * e);
void expire_client_entry(sec_mod_st *sec, client_entry_st * e);
void cleanup_client_entries(sec_mod_st *sec);
#ifdef __GNUC__