diff options
| author | cvs2svn <admin@example.com> | 2015-03-08 16:48:48 +0000 |
|---|---|---|
| committer | cvs2svn <admin@example.com> | 2015-03-08 16:48:48 +0000 |
| commit | da1a9ad3a4a867ba6569c05e6fca66d7f296c553 (patch) | |
| tree | 44872802e872bdfd60730fa9cf01d9d5751251c1 /src/lib/libssl/doc/SSL_SESSION_free.3 | |
| parent | 973703db67a8e73d70e63afa8f2cde19da09144d (diff) | |
| download | openbsd-OPENBSD_5_7_BASE.tar.gz openbsd-OPENBSD_5_7_BASE.tar.bz2 openbsd-OPENBSD_5_7_BASE.zip | |
This commit was manufactured by cvs2git to create tag 'OPENBSD_5_7_BASE'.OPENBSD_5_7_BASE
Diffstat (limited to 'src/lib/libssl/doc/SSL_SESSION_free.3')
| -rw-r--r-- | src/lib/libssl/doc/SSL_SESSION_free.3 | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/src/lib/libssl/doc/SSL_SESSION_free.3 b/src/lib/libssl/doc/SSL_SESSION_free.3 deleted file mode 100644 index ffd5ae2b29..0000000000 --- a/src/lib/libssl/doc/SSL_SESSION_free.3 +++ /dev/null | |||
| @@ -1,79 +0,0 @@ | |||
| 1 | .\" | ||
| 2 | .\" $OpenBSD: SSL_SESSION_free.3,v 1.2 2014/12/02 14:11:01 jmc Exp $ | ||
| 3 | .\" | ||
| 4 | .Dd $Mdocdate: December 2 2014 $ | ||
| 5 | .Dt SSL_SESSION_FREE 3 | ||
| 6 | .Os | ||
| 7 | .Sh NAME | ||
| 8 | .Nm SSL_SESSION_free | ||
| 9 | .Nd free an allocated SSL_SESSION structure | ||
| 10 | .Sh SYNOPSIS | ||
| 11 | .In openssl/ssl.h | ||
| 12 | .Ft void | ||
| 13 | .Fn SSL_SESSION_free "SSL_SESSION *session" | ||
| 14 | .Sh DESCRIPTION | ||
| 15 | .Fn SSL_SESSION_free | ||
| 16 | decrements the reference count of | ||
| 17 | .Fa session | ||
| 18 | and removes the | ||
| 19 | .Vt SSL_SESSION | ||
| 20 | structure pointed to by | ||
| 21 | .Fa session | ||
| 22 | and frees up the allocated memory, if the reference count has reached 0. | ||
| 23 | .Sh NOTES | ||
| 24 | .Vt SSL_SESSION | ||
| 25 | objects are allocated when a TLS/SSL handshake operation is successfully | ||
| 26 | completed. | ||
| 27 | Depending on the settings, see | ||
| 28 | .Xr SSL_CTX_set_session_cache_mode 3 , | ||
| 29 | the | ||
| 30 | .Vt SSL_SESSION | ||
| 31 | objects are internally referenced by the | ||
| 32 | .Vt SSL_CTX | ||
| 33 | and linked into its session cache. | ||
| 34 | .Vt SSL | ||
| 35 | objects may be using the | ||
| 36 | .Vt SSL_SESSION | ||
| 37 | object; as a session may be reused, several | ||
| 38 | .Vt SSL | ||
| 39 | objects may be using one | ||
| 40 | .Vt SSL_SESSION | ||
| 41 | object at the same time. | ||
| 42 | It is therefore crucial to keep the reference count (usage information) correct | ||
| 43 | and not delete a | ||
| 44 | .Vt SSL_SESSION | ||
| 45 | object that is still used, as this may lead to program failures due to dangling | ||
| 46 | pointers. | ||
| 47 | These failures may also appear delayed, e.g., when an | ||
| 48 | .Vt SSL_SESSION | ||
| 49 | object is completely freed as the reference count incorrectly becomes 0, but it | ||
| 50 | is still referenced in the internal session cache and the cache list is | ||
| 51 | processed during a | ||
| 52 | .Xr SSL_CTX_flush_sessions 3 | ||
| 53 | operation. | ||
| 54 | .Pp | ||
| 55 | .Fn SSL_SESSION_free | ||
| 56 | must only be called for | ||
| 57 | .Vt SSL_SESSION | ||
| 58 | objects, for which the reference count was explicitly incremented (e.g., by | ||
| 59 | calling | ||
| 60 | .Xr SSL_get1_session 3 ; | ||
| 61 | see | ||
| 62 | .Xr SSL_get_session 3 ) | ||
| 63 | or when the | ||
| 64 | .Vt SSL_SESSION | ||
| 65 | object was generated outside a TLS handshake operation, e.g., by using | ||
| 66 | .Xr d2i_SSL_SESSION 3 . | ||
| 67 | It must not be called on other | ||
| 68 | .Vt SSL_SESSION | ||
| 69 | objects, as this would cause incorrect reference counts and therefore program | ||
| 70 | failures. | ||
| 71 | .Sh RETURN VALUES | ||
| 72 | .Fn SSL_SESSION_free | ||
| 73 | does not provide diagnostic information. | ||
| 74 | .Sh SEE ALSO | ||
| 75 | .Xr d2i_SSL_SESSION 3 , | ||
| 76 | .Xr ssl 3 , | ||
| 77 | .Xr SSL_CTX_flush_sessions 3 , | ||
| 78 | .Xr SSL_CTX_set_session_cache_mode 3 , | ||
| 79 | .Xr SSL_get_session 3 | ||
