[#SSL_CTX_set0_tmp_dh_pkey]
= SSL&lowbar;CTX&lowbar;set0&lowbar;tmp&lowbar;dh&lowbar;pkey
:mrdocs:

Set ephemeral DH parameters for a context, transferring ownership of `dhpkey&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;CTX&lowbar;set0&lowbar;tmp&lowbar;dh&lowbar;pkey(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* dhpkey);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose new connections inherit the parameters for DHE&period;
| *dhpkey*
| EVP&lowbar;PKEY holding DH parameters&semi; ownership transfers to `ctx` on success&period;
|===


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