[#PEM_read_bio_SSL_SESSION]
= PEM&lowbar;read&lowbar;bio&lowbar;SSL&lowbar;SESSION
:mrdocs:

Read an SSL&lowbar;SESSION from a PEM&hyphen;encoded BIO&period;

== Synopsis

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

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

== Return Value

New or reused SSL&lowbar;SESSION on success, or NULL on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *bp*
| BIO to read from&period;
| *x*
| Optional address of an SSL&lowbar;SESSION 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]#
