[#SSL_CTX_add_session] = SSL_CTX_add_session :mrdocs: Add a session to an SSL context's internal session cache. == Synopsis Declared in `<openssl/ssl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int SSL_CTX_add_session( xref:SSL_CTX.adoc[SSL_CTX]* ctx, xref:SSL_SESSION.adoc[SSL_SESSION]* session); ---- == Return Value 1 on success, or 0 if the session was already present or on error. == Parameters [cols="1,4"] |=== | Name| Description | *ctx* | SSL context whose cache receives `session.` | *session* | Session to cache; reference count is incremented on success. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#