Go to main content

man pages section 3: Extended Library Functions, Volume 1

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

SSL_CTX_sessions (3openssl)

Name

SSL_CTX_sessions - access internal session cache

Synopsis

#include <openssl/ssl.h>

struct lhash_st *SSL_CTX_sessions(SSL_CTX *ctx);

Description

OpenSSL                                             SSL_CTX_sessions(3openssl)



NAME
       SSL_CTX_sessions - access internal session cache

SYNOPSIS
        #include <openssl/ssl.h>

        struct lhash_st *SSL_CTX_sessions(SSL_CTX *ctx);

DESCRIPTION
       SSL_CTX_sessions() returns a pointer to the lhash databases containing
       the internal session cache for ctx.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+--------------------------+
       |ATTRIBUTE TYPE |     ATTRIBUTE VALUE      |
       +---------------+--------------------------+
       |Availability   | library/security/openssl |
       +---------------+--------------------------+
       |Stability      | Pass-through uncommitted |
       +---------------+--------------------------+

NOTES
       The sessions in the internal session cache are kept in an lhash(3) type
       database. It is possible to directly access this database e.g. for
       searching. In parallel, the sessions form a linked list which is
       maintained separately from the lhash(3) operations, so that the
       database must not be modified directly but by using the
       SSL_CTX_add_session(3) family of functions.

       Source code for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This software was built from source available at
       https://github.com/oracle/solaris-userland.  The original community
       source was downloaded from
       https://www.openssl.org/source/openssl-1.0.2ze.tar.gz.

       Further information about this software can be found on the open source
       community website at https://www.openssl.org/.

SEE ALSO
       ssl(3), lhash(3), SSL_CTX_add_session(3),
       SSL_CTX_set_session_cache_mode(3)




1.0.2ze                           2022-05-03
                                                    SSL_CTX_sessions(3openssl)