mirror of
https://github.com/openbsd/src.git
synced 2026-04-24 14:14:37 +00:00
Document SSL_SESSION_dup(3)
ok kenjiro
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
.\" $OpenBSD: SSL_SESSION_new.3,v 1.10 2025/06/08 22:52:00 schwarze Exp $
|
||||
.\" $OpenBSD: SSL_SESSION_new.3,v 1.11 2025/10/24 11:36:54 tb Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
|
||||
.\"
|
||||
@@ -14,7 +14,7 @@
|
||||
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
.\"
|
||||
.Dd $Mdocdate: June 8 2025 $
|
||||
.Dd $Mdocdate: October 24 2025 $
|
||||
.Dt SSL_SESSION_NEW 3
|
||||
.Os
|
||||
.Sh NAME
|
||||
@@ -25,6 +25,8 @@
|
||||
.In openssl/ssl.h
|
||||
.Ft SSL_SESSION *
|
||||
.Fn SSL_SESSION_new void
|
||||
.Ft SSL_SESSION *
|
||||
.Fn SSL_SESSION_dup "const SSL_SESSION *src"
|
||||
.Sh DESCRIPTION
|
||||
.Fn SSL_SESSION_new
|
||||
allocates and initializes a new
|
||||
@@ -39,9 +41,20 @@ When the object is no longer needed, it can be destructed with
|
||||
.Fn SSL_SESSION_new
|
||||
is used internally, for example by
|
||||
.Xr SSL_connect 3 .
|
||||
.Pp
|
||||
.Fn SSL_SESSION_dup
|
||||
creates a deep copy of
|
||||
.Fa src
|
||||
with the exception that
|
||||
the reference count is set to 1, that
|
||||
the peer certificate is shared with
|
||||
.Fa src ,
|
||||
and that the new session is not part of any session cache.
|
||||
.Sh RETURN VALUES
|
||||
.Fn SSL_SESSION_new
|
||||
returns the new
|
||||
and
|
||||
.Fn SSL_SESSION_dup
|
||||
return the new
|
||||
.Vt SSL_SESSION
|
||||
object or
|
||||
.Dv NULL
|
||||
@@ -77,3 +90,7 @@ returns
|
||||
.Fn SSL_SESSION_new
|
||||
first appeared in SSLeay 0.5.2 and has been available since
|
||||
.Ox 2.4 .
|
||||
.Pp
|
||||
.Fn SSL_SESSION_dup
|
||||
first appeared in OpenSSL 1.1.1 and has been available since
|
||||
.Ox 7.9 .
|
||||
|
||||
Reference in New Issue
Block a user