SSL_SESSION_get_time(3) OpenSSL SSL_SESSION_get_time(3) NAME SSL_SESSION_get_time, SSL_SESSION_set_time, SSL_SESSION_get_timeout, SSL_SESSION_get_timeout - retrieve and manipulate session time(1,2,n) and timeout(1,3x,3x cbreak) settings SYNOPSIS #include <openssl/ssl.h> long SSL_SESSION_get_time(SSL_SESSION *s); long SSL_SESSION_set_time(SSL_SESSION *s, long tm); long SSL_SESSION_get_timeout(SSL_SESSION *s); long SSL_SESSION_set_timeout(SSL_SESSION *s, long tm); long SSL_get_time(SSL_SESSION *s); long SSL_set_time(SSL_SESSION *s, long tm); long SSL_get_timeout(SSL_SESSION *s); long SSL_set_timeout(SSL_SESSION *s, long tm); DESCRIPTION SSL_SESSION_get_time() returns the time(1,2,n) at which the session s was established. The time(1,2,n) is given in(1,8) seconds since the Epoch and therefore compatible to the time(1,2,n) delivered by the time(1,2,n)() call. SSL_SESSION_set_time() replaces the creation time(1,2,n) of the session s with the chosen value tm. SSL_SESSION_get_timeout() returns the timeout(1,3x,3x cbreak) value set(7,n,1 builtins) for session s in(1,8) seconds. SSL_SESSION_set_timeout() sets the timeout(1,3x,3x cbreak) value for session s in(1,8) sec- onds to tm. The SSL_get_time(), SSL_set_time(), SSL_get_timeout(), and SSL_set_timeout() functions are synonyms for the SSL_SESSION_*() coun- terparts. NOTES Sessions are expired by examining the creation time(1,2,n) and the timeout(1,3x,3x cbreak) value. Both are set(7,n,1 builtins) at creation time(1,2,n) of the session to the actual time(1,2,n) and the default timeout(1,3x,3x cbreak) value at creation, respectively, as set(7,n,1 builtins) by SSL_CTX_set_timeout(3). Using these functions it is possible to extend or shorten the lifetime of the session. RETURN VALUES SSL_SESSION_get_time() and SSL_SESSION_get_timeout() return the cur- rently valid values. SSL_SESSION_set_time() and SSL_SESSION_set_timeout() return 1 on suc- cess. If any of the function is passed the NULL pointer for the session s, 0 is returned. SEE ALSO ssl(3), SSL_CTX_set_timeout(3), SSL_get_default_timeout(3) 0.9.7d 2001-08-17 SSL_SESSION_get_time(3)