Import OpenSSL-0.9.8i.
[dragonfly.git] / crypto / openssl-0.9.7e / doc / ssl / SSL_CTX_sessions.pod
blobe05aab3c1bc267e52174e46b4c89a35b2f877752
1 =pod
3 =head1 NAME
5 SSL_CTX_sessions - access internal session cache
7 =head1 SYNOPSIS
9  #include <openssl/ssl.h>
11  struct lhash_st *SSL_CTX_sessions(SSL_CTX *ctx);
13 =head1 DESCRIPTION
15 SSL_CTX_sessions() returns a pointer to the lhash databases containing the
16 internal session cache for B<ctx>.
18 =head1 NOTES
20 The sessions in the internal session cache are kept in an
21 L<lhash(3)|lhash(3)> type database. It is possible to directly
22 access this database e.g. for searching. In parallel, the sessions
23 form a linked list which is maintained separately from the
24 L<lhash(3)|lhash(3)> operations, so that the database must not be
25 modified directly but by using the
26 L<SSL_CTX_add_session(3)|SSL_CTX_add_session(3)> family of functions.
28 =head1 SEE ALSO
30 L<ssl(3)|ssl(3)>, L<lhash(3)|lhash(3)>,
31 L<SSL_CTX_add_session(3)|SSL_CTX_add_session(3)>,
32 L<SSL_CTX_set_session_cache_mode(3)|SSL_CTX_set_session_cache_mode(3)>
34 =cut