Set the public and optional private key components of a DSA object (deprecated).
Declared in <openssl/dsa.h>
[[deprecated]]
int
DSA_set0_key(
DSA* d,
BIGNUM* pub_key,
BIGNUM* priv_key);
Deprecated. Use of this entity is allowed but discouraged.
1 on success, or 0 on failure.
| 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. |