[#BIO_ssl_copy_session_id]
= BIO&lowbar;ssl&lowbar;copy&lowbar;session&lowbar;id
:mrdocs:

Copy the SSL session ID between two BIO chains that contain SSL BIOs&period;

== Synopsis

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

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

== Return Value

1 on success, or 0 on failure (including QUIC SSL objects)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *to*
| Destination BIO chain whose SSL session is set&period;
| *from*
| Source BIO chain whose SSL session is copied&period;
|===


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