Set the shared-secret compute_key callback on a DH_METHOD (deprecated).
Declared in <openssl/dh.h>
[[deprecated]]
int
DH_meth_set_compute_key(
DH_METHOD* dhm,
int(* compute_key)(unsigned char*, BIGNUM const*, DH*));
Deprecated. Use of this entity is allowed but discouraged.
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| dhm | Method table to update. |
| compute_key | Callback invoked by DH_compute_key(), or NULL to clear. |