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

Name

Description

dh

DH object to query.

pub_key

Receives an internal pointer to the public value, or NULL to skip; do not free.

priv_key

Receives an internal pointer to the private value, or NULL to skip; do not free.

Created with MrDocs