[#DSA_set0_key] = DSA_set0_key :mrdocs: Set the public and optional private key components of a DSA object (deprecated). == Synopsis Declared in `<openssl/dsa.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int DSA_set0_key( xref:DSA.adoc[DSA]* d, xref:BIGNUM.adoc[BIGNUM]* pub_key, xref:BIGNUM.adoc[BIGNUM]* priv_key); ---- [WARNING] ==== https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged. ==== == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#