SSL_CTX_add_session

Add a session to an SSL context's internal session cache.

Synopsis

Declared in <openssl/ssl.h>

int
SSL_CTX_add_session(
    SSL_CTX* ctx,
    SSL_SESSION* session);

Return Value

1 on success, or 0 if the session was already present or on error.

Parameters

NameDescription
ctxSSL context whose cache receives session.
sessionSession to cache; reference count is incremented on success.