DH_new

Allocate and initialize an empty DH object (deprecated).

Synopsis

Declared in <openssl/dh.h>

[[deprecated]]
DH*
DH_new();

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Description

Prefer EVP_PKEY-based Diffie-Hellman APIs for new code.

Return Value

New DH, or NULL on allocation failure.