1SSL_CTX_SESS_NUMBER(3ossl)          OpenSSL         SSL_CTX_SESS_NUMBER(3ossl)
2
3
4

NAME

6       SSL_CTX_sess_number, SSL_CTX_sess_connect, SSL_CTX_sess_connect_good,
7       SSL_CTX_sess_connect_renegotiate, SSL_CTX_sess_accept,
8       SSL_CTX_sess_accept_good, SSL_CTX_sess_accept_renegotiate,
9       SSL_CTX_sess_hits, SSL_CTX_sess_cb_hits, SSL_CTX_sess_misses,
10       SSL_CTX_sess_timeouts, SSL_CTX_sess_cache_full - obtain session cache
11       statistics
12

SYNOPSIS

14        #include <openssl/ssl.h>
15
16        long SSL_CTX_sess_number(SSL_CTX *ctx);
17        long SSL_CTX_sess_connect(SSL_CTX *ctx);
18        long SSL_CTX_sess_connect_good(SSL_CTX *ctx);
19        long SSL_CTX_sess_connect_renegotiate(SSL_CTX *ctx);
20        long SSL_CTX_sess_accept(SSL_CTX *ctx);
21        long SSL_CTX_sess_accept_good(SSL_CTX *ctx);
22        long SSL_CTX_sess_accept_renegotiate(SSL_CTX *ctx);
23        long SSL_CTX_sess_hits(SSL_CTX *ctx);
24        long SSL_CTX_sess_cb_hits(SSL_CTX *ctx);
25        long SSL_CTX_sess_misses(SSL_CTX *ctx);
26        long SSL_CTX_sess_timeouts(SSL_CTX *ctx);
27        long SSL_CTX_sess_cache_full(SSL_CTX *ctx);
28

DESCRIPTION

30       SSL_CTX_sess_number() returns the current number of sessions in the
31       internal session cache.
32
33       SSL_CTX_sess_connect() returns the number of started SSL/TLS handshakes
34       in client mode.
35
36       SSL_CTX_sess_connect_good() returns the number of successfully
37       established SSL/TLS sessions in client mode.
38
39       SSL_CTX_sess_connect_renegotiate() returns the number of started
40       renegotiations in client mode.
41
42       SSL_CTX_sess_accept() returns the number of started SSL/TLS handshakes
43       in server mode.
44
45       SSL_CTX_sess_accept_good() returns the number of successfully
46       established SSL/TLS sessions in server mode.
47
48       SSL_CTX_sess_accept_renegotiate() returns the number of started
49       renegotiations in server mode.
50
51       SSL_CTX_sess_hits() returns the number of successfully reused sessions.
52       In client mode a session set with SSL_set_session(3) successfully
53       reused is counted as a hit. In server mode a session successfully
54       retrieved from internal or external cache is counted as a hit.
55
56       SSL_CTX_sess_cb_hits() returns the number of successfully retrieved
57       sessions from the external session cache in server mode.
58
59       SSL_CTX_sess_misses() returns the number of sessions proposed by
60       clients that were not found in the internal session cache in server
61       mode.
62
63       SSL_CTX_sess_timeouts() returns the number of sessions proposed by
64       clients and either found in the internal or external session cache in
65       server mode,
66        but that were invalid due to timeout. These sessions are not included
67       in the SSL_CTX_sess_hits() count.
68
69       SSL_CTX_sess_cache_full() returns the number of sessions that were
70       removed because the maximum session cache size was exceeded.
71

RETURN VALUES

73       The functions return the values indicated in the DESCRIPTION section.
74

SEE ALSO

76       ssl(7), SSL_set_session(3), SSL_CTX_set_session_cache_mode(3)
77       SSL_CTX_sess_set_cache_size(3)
78
80       Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.
81
82       Licensed under the Apache License 2.0 (the "License").  You may not use
83       this file except in compliance with the License.  You can obtain a copy
84       in the file LICENSE in the source distribution or at
85       <https://www.openssl.org/source/license.html>.
86
87
88
893.0.5                             2022-07-05        SSL_CTX_SESS_NUMBER(3ossl)
Impressum