[#PEM_read_bio_RSAPublicKey]
= PEM&lowbar;read&lowbar;bio&lowbar;RSAPublicKey
:mrdocs:

Read a traditional PKCS&num;1 RSA public key from a PEM&hyphen;encoded BIO (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
xref:RSA.adoc[RSA]*
PEM&lowbar;read&lowbar;bio&lowbar;RSAPublicKey(
    xref:BIO.adoc[BIO]* bp,
    xref:RSA.adoc[RSA]** x,
    xref:pem_password_cb.adoc[pem&lowbar;password&lowbar;cb]* cb,
    void* u);
----

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

RSA key on success, or NULL on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bp*
| BIO to read from&period;
| *x*
| Optional address of an RSA pointer to reuse, or NULL&period;
| *cb*
| Password callback for encrypted PEM, or NULL&period;
| *u*
| Application data passed to `cb&period;`
|===


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