Change-Id: I1e8ca2adfec5bf7df5a7da02e6d093ae099ec9a3
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
unsigned refcount;
int timeout;
time_t expiration; // expiration time of the token
- time_t access;
pthread_mutex_t mutex;
char uuid[37]; // long term authentication of remote client
char token[37]; // short term authentication of remote client
goto error2;
}
- session->access = now;
session->refcount = 1;
return session;
if (session != NULL) {
if (created)
*created = 0;
- session->access = now;
session->refcount++;
return session;
}