DH_set_method

Select the DH_METHOD used for operations on dh (deprecated).

Synopsis

Declared in <openssl/dh.h>

[[deprecated]]
int
DH_set_method(
    DH* dh,
    DH_METHOD const* meth);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

Non-zero on success.

Parameters

NameDescription
dhDH object whose method is replaced.
methMethod implementation to attach; releases any prior ENGINE method.