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

Name

Description

d

DSA object to update.

pub_key

Public key y; ownership transferred (must not be NULL).

priv_key

Private key x; ownership transferred, or NULL to leave/clear private key.

Created with MrDocs