diff options
Diffstat (limited to 'src/lib/libssl/src/doc/ssl/SSL_set_session.pod')
-rw-r--r-- | src/lib/libssl/src/doc/ssl/SSL_set_session.pod | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lib/libssl/src/doc/ssl/SSL_set_session.pod b/src/lib/libssl/src/doc/ssl/SSL_set_session.pod index c4f7878579..5f54714ad8 100644 --- a/src/lib/libssl/src/doc/ssl/SSL_set_session.pod +++ b/src/lib/libssl/src/doc/ssl/SSL_set_session.pod | |||
@@ -16,12 +16,21 @@ SSL_set_session() sets B<session> to be used when the TLS/SSL connection | |||
16 | is to be established. SSL_set_session() is only useful for TLS/SSL clients. | 16 | is to be established. SSL_set_session() is only useful for TLS/SSL clients. |
17 | When the session is set, the reference count of B<session> is incremented | 17 | When the session is set, the reference count of B<session> is incremented |
18 | by 1. If the session is not reused, the reference count is decremented | 18 | by 1. If the session is not reused, the reference count is decremented |
19 | again during SSL_connect(). | 19 | again during SSL_connect(). Whether the session was reused can be queried |
20 | with the L<SSL_session_reused(3)|SSL_session_reused(3)> call. | ||
20 | 21 | ||
21 | If there is already a session set inside B<ssl> (because it was set with | 22 | If there is already a session set inside B<ssl> (because it was set with |
22 | SSL_set_session() before or because the same B<ssl> was already used for | 23 | SSL_set_session() before or because the same B<ssl> was already used for |
23 | a connection), SSL_SESSION_free() will be called for that session. | 24 | a connection), SSL_SESSION_free() will be called for that session. |
24 | 25 | ||
26 | =head1 NOTES | ||
27 | |||
28 | SSL_SESSION objects keep internal link information about the session cache | ||
29 | list, when being inserted into one SSL_CTX object's session cache. | ||
30 | One SSL_SESSION object, regardless of its reference count, must therefore | ||
31 | only be used with one SSL_CTX object (and the SSL objects created | ||
32 | from this SSL_CTX object). | ||
33 | |||
25 | =head1 RETURN VALUES | 34 | =head1 RETURN VALUES |
26 | 35 | ||
27 | The following return values can occur: | 36 | The following return values can occur: |
@@ -41,6 +50,8 @@ The operation succeeded. | |||
41 | =head1 SEE ALSO | 50 | =head1 SEE ALSO |
42 | 51 | ||
43 | L<ssl(3)|ssl(3)>, L<SSL_SESSION_free(3)|SSL_SESSION_free(3)>, | 52 | L<ssl(3)|ssl(3)>, L<SSL_SESSION_free(3)|SSL_SESSION_free(3)>, |
53 | L<SSL_get_session(3)|SSL_get_session(3)>, | ||
54 | L<SSL_session_reused(3)|SSL_session_reused(3)>, | ||
44 | L<SSL_CTX_set_session_cache_mode(3)|SSL_CTX_set_session_cache_mode(3)> | 55 | L<SSL_CTX_set_session_cache_mode(3)|SSL_CTX_set_session_cache_mode(3)> |
45 | 56 | ||
46 | =cut | 57 | =cut |