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

Name

Description

dh

DH object to query.

Created with MrDocs