[#SSL_CTX_set_tmp_dh_callback] = SSL_CTX_set_tmp_dh_callback :mrdocs: Set a deprecated callback that supplies ephemeral DH parameters for server connections from a context. == Synopsis Declared in `<openssl/ssl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] void SSL_CTX_set_tmp_dh_callback( xref:SSL_CTX.adoc[SSL_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. | *dh* | Callback returning a DH object owned by the application (`is_export` / `keylength` are unused on modern OpenSSL). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#