summaryrefslogtreecommitdiff
path: root/src/lib/libssl/man/SSL_CTX_sessions.3
blob: 72311699c8a4d031a5d4e0bf71bf66fdd0977120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.\"
.\"	$OpenBSD: SSL_CTX_sessions.3,v 1.1 2016/11/05 15:32:19 schwarze Exp $
.\"
.Dd $Mdocdate: November 5 2016 $
.Dt SSL_CTX_SESSIONS 3
.Os
.Sh NAME
.Nm SSL_CTX_sessions
.Nd access internal session cache
.Sh SYNOPSIS
.In openssl/ssl.h
.Ft struct lhash_st *
.Fn SSL_CTX_sessions "SSL_CTX *ctx"
.Sh DESCRIPTION
.Fn SSL_CTX_sessions
returns a pointer to the lhash databases containing the internal session cache
for
.Fa ctx .
.Sh NOTES
The sessions in the internal session cache are kept in an
lhash-type database
(see
.Xr lh_new 3 ) .
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 operations,
so that the database must not be modified directly but by using the
.Xr SSL_CTX_add_session 3
family of functions.
.Sh SEE ALSO
.Xr lh_new 3 ,
.Xr ssl 3 ,
.Xr SSL_CTX_add_session 3 ,
.Xr SSL_CTX_set_session_cache_mode 3