DSA_get0_key

Return pointers to the DSA public and private key components without transferring ownership (deprecated).

Synopsis

Declared in <openssl/dsa.h>

[[deprecated]]
void
DSA_get0_key(
    DSA const* d,
    BIGNUM const** pub_key,
    BIGNUM const** priv_key);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Description

Returned BIGNUMs must not be freed by the caller.

Return Value

pointers to the DSA public and private key components without transferring ownership (deprecated).

Parameters

NameDescription
dDSA object to query.
pub_keyOptional destination for the public key, or NULL.
priv_keyOptional destination for the private key, or NULL.