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

Name

Description

fp

FILE to read from.

x

Optional address of an SSL_SESSION pointer to reuse, or NULL.

cb

Password callback for encrypted PEM, or NULL.

u

Application data passed to cb.

Created with MrDocs