[#RSA_meth_set_priv_enc]
= RSA&lowbar;meth&lowbar;set&lowbar;priv&lowbar;enc
:mrdocs:

Set the private&hyphen;encrypt (signing) callback on a custom RSA&lowbar;METHOD (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;meth&lowbar;set&lowbar;priv&lowbar;enc(
    xref:RSA_METHOD.adoc[RSA&lowbar;METHOD]* rsa,
    int(* priv&lowbar;enc)(int, unsigned char const*, unsigned char*, xref:RSA.adoc[RSA]*, int));
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

1 on success&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rsa*
| Method object to update&period;
| *priv&lowbar;enc*
| Callback performing RSA private encryption &sol; raw signing, or NULL&period;
|===


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