[#SSL_dup]
= SSL&lowbar;dup
:mrdocs:

Duplicate an SSL object that is still in its initial (pre&hyphen;handshake) state&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:SSL.adoc[SSL]*
SSL&lowbar;dup(xref:SSL.adoc[SSL]* ssl);
----

== Return Value

New SSL with a subset of `ssl&apos;s` settings copied, the same handle if already active, or NULL on error &sol; QUIC&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ssl*
| SSL connection to copy&semi; must not have started the handshake (else refcount is bumped instead)&period;
|===


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