[#RSA_set0_key] = RSA_set0_key :mrdocs: Set the RSA modulus and exponents, transferring ownership of the BIGNUMs (deprecated). == Synopsis Declared in `<openssl/rsa.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int RSA_set0_key( xref:RSA.adoc[RSA]* r, xref:BIGNUM.adoc[BIGNUM]* n, xref:BIGNUM.adoc[BIGNUM]* e, xref:BIGNUM.adoc[BIGNUM]* d); ---- [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 | *r* | RSA key to update. | *n* | Modulus; required on the first call, or NULL to leave unchanged. | *e* | Public exponent; required on the first call, or NULL to leave unchanged. | *d* | Private exponent, or NULL to leave unchanged / omit. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#