[#RSA_set0_factors] = RSA_set0_factors :mrdocs: Set the RSA prime factors p and q, transferring ownership of the BIGNUMs (deprecated). == Synopsis Declared in `<openssl/rsa.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int RSA_set0_factors( xref:RSA.adoc[RSA]* r, xref:BIGNUM.adoc[BIGNUM]* p, xref:BIGNUM.adoc[BIGNUM]* q); ---- [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. | *p* | First prime factor; required on the first call, or NULL to leave unchanged. | *q* | Second prime factor; required on the first call, or NULL to leave unchanged. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#