[#DH_meth_set_compute_key] = DH_meth_set_compute_key :mrdocs: Set the shared‐secret compute_key callback on a DH_METHOD (deprecated). == Synopsis Declared in `<openssl/dh.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int DH_meth_set_compute_key( xref:DH_METHOD-0a.adoc[DH_METHOD]* dhm, int(* compute_key)(unsigned char*, xref:BIGNUM.adoc[BIGNUM] const*, xref:DH.adoc[DH]*)); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *dhm* | Method table to update. | *compute_key* | Callback invoked by DH_compute_key(), or NULL to clear. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#