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

Name

Description

dhm

Method table to update.

compute_key

Callback invoked by DH_compute_key(), or NULL to clear.

Created with MrDocs