diff options
Diffstat (limited to 'src/lib/libssl/man')
| -rw-r--r-- | src/lib/libssl/man/SSL_SESSION_new.3 | 23 | 
1 files changed, 20 insertions, 3 deletions
| diff --git a/src/lib/libssl/man/SSL_SESSION_new.3 b/src/lib/libssl/man/SSL_SESSION_new.3 index 88d1995850..1557eafb78 100644 --- a/src/lib/libssl/man/SSL_SESSION_new.3 +++ b/src/lib/libssl/man/SSL_SESSION_new.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: SSL_SESSION_new.3,v 1.10 2025/06/08 22:52:00 schwarze Exp $ | 1 | .\" $OpenBSD: SSL_SESSION_new.3,v 1.11 2025/10/24 11:36:54 tb Exp $ | 
| 2 | .\" | 2 | .\" | 
| 3 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> | 3 | .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org> | 
| 4 | .\" | 4 | .\" | 
| @@ -14,7 +14,7 @@ | |||
| 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 14 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 
| 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 15 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 
| 16 | .\" | 16 | .\" | 
| 17 | .Dd $Mdocdate: June 8 2025 $ | 17 | .Dd $Mdocdate: October 24 2025 $ | 
| 18 | .Dt SSL_SESSION_NEW 3 | 18 | .Dt SSL_SESSION_NEW 3 | 
| 19 | .Os | 19 | .Os | 
| 20 | .Sh NAME | 20 | .Sh NAME | 
| @@ -25,6 +25,8 @@ | |||
| 25 | .In openssl/ssl.h | 25 | .In openssl/ssl.h | 
| 26 | .Ft SSL_SESSION * | 26 | .Ft SSL_SESSION * | 
| 27 | .Fn SSL_SESSION_new void | 27 | .Fn SSL_SESSION_new void | 
| 28 | .Ft SSL_SESSION * | ||
| 29 | .Fn SSL_SESSION_dup "const SSL_SESSION *src" | ||
| 28 | .Sh DESCRIPTION | 30 | .Sh DESCRIPTION | 
| 29 | .Fn SSL_SESSION_new | 31 | .Fn SSL_SESSION_new | 
| 30 | allocates and initializes a new | 32 | allocates and initializes a new | 
| @@ -39,9 +41,20 @@ When the object is no longer needed, it can be destructed with | |||
| 39 | .Fn SSL_SESSION_new | 41 | .Fn SSL_SESSION_new | 
| 40 | is used internally, for example by | 42 | is used internally, for example by | 
| 41 | .Xr SSL_connect 3 . | 43 | .Xr SSL_connect 3 . | 
| 44 | .Pp | ||
| 45 | .Fn SSL_SESSION_dup | ||
| 46 | creates a deep copy of | ||
| 47 | .Fa src | ||
| 48 | with the exception that | ||
| 49 | the reference count is set to 1, that | ||
| 50 | the peer certificate is shared with | ||
| 51 | .Fa src , | ||
| 52 | and that the new session is not part of any session cache. | ||
| 42 | .Sh RETURN VALUES | 53 | .Sh RETURN VALUES | 
| 43 | .Fn SSL_SESSION_new | 54 | .Fn SSL_SESSION_new | 
| 44 | returns the new | 55 | and | 
| 56 | .Fn SSL_SESSION_dup | ||
| 57 | return the new | ||
| 45 | .Vt SSL_SESSION | 58 | .Vt SSL_SESSION | 
| 46 | object or | 59 | object or | 
| 47 | .Dv NULL | 60 | .Dv NULL | 
| @@ -77,3 +90,7 @@ returns | |||
| 77 | .Fn SSL_SESSION_new | 90 | .Fn SSL_SESSION_new | 
| 78 | first appeared in SSLeay 0.5.2 and has been available since | 91 | first appeared in SSLeay 0.5.2 and has been available since | 
| 79 | .Ox 2.4 . | 92 | .Ox 2.4 . | 
| 93 | .Pp | ||
| 94 | .Fn SSL_SESSION_dup | ||
| 95 | first appeared in OpenSSL 1.1.1 and has been available since | ||
| 96 | .Ox 7.9 . | ||
