[#RSA_meth_set_pub_enc] = RSA_meth_set_pub_enc :mrdocs: Set the public‐encrypt callback on a custom RSA_METHOD (deprecated). == Synopsis Declared in `<openssl/rsa.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[deprecated]] int RSA_meth_set_pub_enc( xref:RSA_METHOD.adoc[RSA_METHOD]* rsa, int(* pub_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. == Parameters [cols="1,4"] |=== | Name| Description | *rsa* | Method object to update. | *pub_enc* | Callback performing RSA public encryption, or NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#