1 .\" $OpenBSD: SSL_copy_session_id.3,v 1.1 2016/12/07 18:09:31 schwarze Exp $
3 .\" Copyright (c) 2016 Ingo Schwarze <schwarze@openbsd.org>
5 .\" Permission to use, copy, modify, and distribute this software for any
6 .\" purpose with or without fee is hereby granted, provided that the above
7 .\" copyright notice and this permission notice appear in all copies.
9 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .Dd $Mdocdate: December 7 2016 $
18 .Dt SSL_COPY_SESSION_ID 3
21 .Nm SSL_copy_session_id
22 .Nd copy session details between SSL objects
26 .Fo SSL_copy_session_id
31 .Fn SSL_copy_session_id
32 copies the following data from
40 object, incrementing its reference count by 1
44 object; if that changes the method, protocol-specific data is
49 object, incrementing its reference count by 1
51 the session ID context
54 This function is used internally by
57 .Xr BIO_ssl_copy_session_id 3 .
59 .Xr BIO_ssl_copy_session_id 3 ,
61 .Xr SSL_get_session 3 ,
62 .Xr SSL_set_session 3 ,
63 .Xr SSL_set_session_id_context 3
65 .Fn SSL_copy_session_id
66 is available in all versions of OpenSSL.
69 .Xr SSL_set_session 3 ,
70 .Xr SSL_set_session_id_context 3 ,
72 and reinitialization of protocol-specific data are silently ignored
75 in an invalid or inconsistent state.
76 An improved version reporting failure is available in OpenSSL 1.1.0.