DH_get0_priv_key

Return the private key BIGNUM stored in a DH object, if any.

Synopsis

Declared in <openssl/dh.h>

[[deprecated]]
BIGNUM const*
DH_get0_priv_key(DH const* dh);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Description

Deprecated; prefer EVP_PKEY_get_bn_param() / provider-based key APIs.

Return Value

Internal pointer to the private key (do not free), or NULL if unset.

Parameters

NameDescription
dhDH object to query.