DH_meth_set_compute_key

Set the shared-secret compute_key callback on a DH_METHOD (deprecated).

Synopsis

Declared in <openssl/dh.h>

[[deprecated]]
int
DH_meth_set_compute_key(
    DH_METHOD* dhm,
    int(* compute_key)(unsigned char*, BIGNUM const*, DH*));

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
dhmMethod table to update.
compute_keyCallback invoked by DH_compute_key(), or NULL to clear.