PEM_read_SSL_SESSION

Read an SSL_SESSION from a PEM-encoded FILE stream.

Synopsis

Declared in <openssl/ssl.h>

SSL_SESSION*
PEM_read_SSL_SESSION(
    FILE* fp,
    SSL_SESSION** x,
    pem_password_cb* cb,
    void* u);

Return Value

New or reused SSL_SESSION on success, or NULL on failure.

Parameters

NameDescription
fpFILE to read from.
xOptional address of an SSL_SESSION pointer to reuse, or NULL.
cbPassword callback for encrypted PEM, or NULL.
uApplication data passed to cb.