[#SSL_copy_session_id]
= SSL&lowbar;copy&lowbar;session&lowbar;id
:mrdocs:

Copy the session, method, certificate, and session&hyphen;id context from one SSL object to another&period;

== Synopsis

Declared in `&lt;openssl&sol;ssl&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;copy&lowbar;session&lowbar;id(
    xref:SSL.adoc[SSL]* to,
    xref:SSL.adoc[SSL] const* from);
----

== Return Value

1 on success, or 0 on failure (including when either object is QUIC&hyphen;only)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *to*
| Destination SSL connection that receives the copied state&period;
| *from*
| Source SSL connection whose session and related state are copied&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
