[#RSA_set0_key]
= RSA&lowbar;set0&lowbar;key
:mrdocs:

Set the RSA modulus and exponents, transferring ownership of the BIGNUMs (deprecated)&period;

== Synopsis

Declared in `&lt;openssl&sol;rsa&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
RSA&lowbar;set0&lowbar;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&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *r*
| RSA key to update&period;
| *n*
| Modulus&semi; required on the first call, or NULL to leave unchanged&period;
| *e*
| Public exponent&semi; required on the first call, or NULL to leave unchanged&period;
| *d*
| Private exponent, or NULL to leave unchanged &sol; omit&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
