DH_get0_key

Borrow pointers to the public and private key BIGNUMs of a DH object (deprecated).

Synopsis

Declared in <openssl/dh.h>

[[deprecated]]
void
DH_get0_key(
    DH const* dh,
    BIGNUM const** pub_key,
    BIGNUM const** priv_key);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Parameters

NameDescription
dhDH object to query.
pub_keyReceives an internal pointer to the public value, or NULL to skip; do not free.
priv_keyReceives an internal pointer to the private value, or NULL to skip; do not free.