[#SSL_CTX_set_tmp_dh_callback]
= SSL&lowbar;CTX&lowbar;set&lowbar;tmp&lowbar;dh&lowbar;callback
:mrdocs:

Set a deprecated callback that supplies ephemeral DH parameters for server connections from a context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
void
SSL&lowbar;CTX&lowbar;set&lowbar;tmp&lowbar;dh&lowbar;callback(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    xref:DH.adoc[DH]*(* dh)(xref:SSL.adoc[SSL]*, int, int));
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context that invokes `dh` when temporary DH parameters are needed&period;
| *dh*
| Callback returning a DH object owned by the application (`is&lowbar;export` &sol; `keylength` are unused on modern OpenSSL)&period;
|===


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