1SSL_SESSION_get_time(3)             OpenSSL            SSL_SESSION_get_time(3)
2
3
4

NAME

6       SSL_SESSION_get_time, SSL_SESSION_set_time, SSL_SESSION_get_timeout,
7       SSL_SESSION_set_timeout - retrieve and manipulate session time and
8       timeout settings
9

SYNOPSIS

11        #include <openssl/ssl.h>
12
13        long SSL_SESSION_get_time(const SSL_SESSION *s);
14        long SSL_SESSION_set_time(SSL_SESSION *s, long tm);
15        long SSL_SESSION_get_timeout(const SSL_SESSION *s);
16        long SSL_SESSION_set_timeout(SSL_SESSION *s, long tm);
17
18        long SSL_get_time(const SSL_SESSION *s);
19        long SSL_set_time(SSL_SESSION *s, long tm);
20        long SSL_get_timeout(const SSL_SESSION *s);
21        long SSL_set_timeout(SSL_SESSION *s, long tm);
22

DESCRIPTION

24       SSL_SESSION_get_time() returns the time at which the session s was
25       established. The time is given in seconds since the Epoch and therefore
26       compatible to the time delivered by the time() call.
27
28       SSL_SESSION_set_time() replaces the creation time of the session s with
29       the chosen value tm.
30
31       SSL_SESSION_get_timeout() returns the timeout value set for session s
32       in seconds.
33
34       SSL_SESSION_set_timeout() sets the timeout value for session s in
35       seconds to tm.
36
37       The SSL_get_time(), SSL_set_time(), SSL_get_timeout(), and
38       SSL_set_timeout() functions are synonyms for the SSL_SESSION_*()
39       counterparts.
40

NOTES

42       Sessions are expired by examining the creation time and the timeout
43       value.  Both are set at creation time of the session to the actual time
44       and the default timeout value at creation, respectively, as set by
45       SSL_CTX_set_timeout(3).  Using these functions it is possible to extend
46       or shorten the lifetime of the session.
47

RETURN VALUES

49       SSL_SESSION_get_time() and SSL_SESSION_get_timeout() return the
50       currently valid values.
51
52       SSL_SESSION_set_time() and SSL_SESSION_set_timeout() return 1 on
53       success.
54
55       If any of the function is passed the NULL pointer for the session s, 0
56       is returned.
57

SEE ALSO

59       ssl(3), SSL_CTX_set_timeout(3), SSL_get_default_timeout(3)
60
61
62
631.0.2o                            2018-03-27           SSL_SESSION_get_time(3)
Impressum