DSA_set0_key

Set the public and optional private key components of a DSA object (deprecated).

Synopsis

Declared in <openssl/dsa.h>

[[deprecated]]
int
DSA_set0_key(
    DSA* d,
    BIGNUM* pub_key,
    BIGNUM* priv_key);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
dDSA object to update.
pub_keyPublic key y; ownership transferred (must not be NULL).
priv_keyPrivate key x; ownership transferred, or NULL to leave/clear private key.