Deleted Added
full compact
SSL_get_session.pod (76866) SSL_get_session.pod (89837)
1=pod
2
3=head1 NAME
4
5SSL_get_session - retrieve TLS/SSL session data
6
7=head1 SYNOPSIS
8

--- 23 unchanged lines hidden (view full) ---

32reference counter is not incremented, the pointer is only valid while
33the connection is in use. If L<SSL_clear(3)|SSL_clear(3)> or
34L<SSL_free(3)|SSL_free(3)> is called, the session may be removed completely
35(if considered bad), and the pointer obtained will become invalid. Even
36if the session is valid, it can be removed at any time due to timeout
37during L<SSL_CTX_flush_sessions(3)|SSL_CTX_flush_sessions(3)>.
38
39If the data is to be kept, SSL_get1_session() will increment the reference
1=pod
2
3=head1 NAME
4
5SSL_get_session - retrieve TLS/SSL session data
6
7=head1 SYNOPSIS
8

--- 23 unchanged lines hidden (view full) ---

32reference counter is not incremented, the pointer is only valid while
33the connection is in use. If L<SSL_clear(3)|SSL_clear(3)> or
34L<SSL_free(3)|SSL_free(3)> is called, the session may be removed completely
35(if considered bad), and the pointer obtained will become invalid. Even
36if the session is valid, it can be removed at any time due to timeout
37during L<SSL_CTX_flush_sessions(3)|SSL_CTX_flush_sessions(3)>.
38
39If the data is to be kept, SSL_get1_session() will increment the reference
40count and the session will stay in memory until explicitly freed with
41L<SSL_SESSION_free(3)|SSL_SESSION_free(3)>, regardless of its state.
40count, so that the session will not be implicitly removed by other operations
41but stays in memory. In order to remove the session
42L<SSL_SESSION_free(3)|SSL_SESSION_free(3)> must be explicitly called once
43to decrement the reference count again.
42
44
45SSL_SESSION objects keep internal link information about the session cache
46list, when being inserted into one SSL_CTX object's session cache.
47One SSL_SESSION object, regardless of its reference count, must therefore
48only be used with one SSL_CTX object (and the SSL objects created
49from this SSL_CTX object).
50
43=head1 RETURN VALUES
44
45The following return values can occur:
46
47=over 4
48
49=item NULL
50

--- 15 unchanged lines hidden ---
51=head1 RETURN VALUES
52
53The following return values can occur:
54
55=over 4
56
57=item NULL
58

--- 15 unchanged lines hidden ---