add part of the session ID in logs to differentiate them

This commit is contained in:
Nikos Mavrogiannopoulos
2015-02-21 17:13:25 +01:00
parent 39494d54ed
commit f1bc754169
3 changed files with 25 additions and 19 deletions

View File

@@ -51,6 +51,10 @@ typedef struct client_entry_st {
* sessions.
*/
uint8_t sid[SID_SIZE];
/* a part of sid used in the logs to differentiate the session */
char printable_sid[7];
void * auth_ctx; /* the context of authentication */
unsigned in_use; /* counter of users of this structure */
unsigned tls_auth_ok;