112 lines
4.4 KiB
HTML
112 lines
4.4 KiB
HTML
|
<?xml version="1.0" ?>
|
||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head>
|
||
|
<title>SSL_CTX_sess_number</title>
|
||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||
|
<link rev="made" href="mailto:root@localhost" />
|
||
|
</head>
|
||
|
|
||
|
<body style="background-color: white">
|
||
|
|
||
|
|
||
|
<!-- INDEX BEGIN -->
|
||
|
<div name="index">
|
||
|
<p><a name="__index__"></a></p>
|
||
|
|
||
|
<ul>
|
||
|
|
||
|
<li><a href="#name">NAME</a></li>
|
||
|
<li><a href="#synopsis">SYNOPSIS</a></li>
|
||
|
<li><a href="#description">DESCRIPTION</a></li>
|
||
|
<li><a href="#return_values">RETURN VALUES</a></li>
|
||
|
<li><a href="#see_also">SEE ALSO</a></li>
|
||
|
<li><a href="#copyright">COPYRIGHT</a></li>
|
||
|
</ul>
|
||
|
|
||
|
<hr name="index" />
|
||
|
</div>
|
||
|
<!-- INDEX END -->
|
||
|
|
||
|
<p>
|
||
|
</p>
|
||
|
<hr />
|
||
|
<h1><a name="name">NAME</a></h1>
|
||
|
<p>SSL_CTX_sess_number, SSL_CTX_sess_connect, SSL_CTX_sess_connect_good, SSL_CTX_sess_connect_renegotiate, SSL_CTX_sess_accept, SSL_CTX_sess_accept_good, SSL_CTX_sess_accept_renegotiate, SSL_CTX_sess_hits, SSL_CTX_sess_cb_hits, SSL_CTX_sess_misses, SSL_CTX_sess_timeouts, SSL_CTX_sess_cache_full - obtain session cache statistics</p>
|
||
|
<p>
|
||
|
</p>
|
||
|
<hr />
|
||
|
<h1><a name="synopsis">SYNOPSIS</a></h1>
|
||
|
<pre>
|
||
|
#include <openssl/ssl.h></pre>
|
||
|
<pre>
|
||
|
long SSL_CTX_sess_number(SSL_CTX *ctx);
|
||
|
long SSL_CTX_sess_connect(SSL_CTX *ctx);
|
||
|
long SSL_CTX_sess_connect_good(SSL_CTX *ctx);
|
||
|
long SSL_CTX_sess_connect_renegotiate(SSL_CTX *ctx);
|
||
|
long SSL_CTX_sess_accept(SSL_CTX *ctx);
|
||
|
long SSL_CTX_sess_accept_good(SSL_CTX *ctx);
|
||
|
long SSL_CTX_sess_accept_renegotiate(SSL_CTX *ctx);
|
||
|
long SSL_CTX_sess_hits(SSL_CTX *ctx);
|
||
|
long SSL_CTX_sess_cb_hits(SSL_CTX *ctx);
|
||
|
long SSL_CTX_sess_misses(SSL_CTX *ctx);
|
||
|
long SSL_CTX_sess_timeouts(SSL_CTX *ctx);
|
||
|
long SSL_CTX_sess_cache_full(SSL_CTX *ctx);</pre>
|
||
|
<p>
|
||
|
</p>
|
||
|
<hr />
|
||
|
<h1><a name="description">DESCRIPTION</a></h1>
|
||
|
<p><code>SSL_CTX_sess_number()</code> returns the current number of sessions in the internal
|
||
|
session cache.</p>
|
||
|
<p><code>SSL_CTX_sess_connect()</code> returns the number of started SSL/TLS handshakes in
|
||
|
client mode.</p>
|
||
|
<p><code>SSL_CTX_sess_connect_good()</code> returns the number of successfully established
|
||
|
SSL/TLS sessions in client mode.</p>
|
||
|
<p><code>SSL_CTX_sess_connect_renegotiate()</code> returns the number of started renegotiations
|
||
|
in client mode.</p>
|
||
|
<p><code>SSL_CTX_sess_accept()</code> returns the number of started SSL/TLS handshakes in
|
||
|
server mode.</p>
|
||
|
<p><code>SSL_CTX_sess_accept_good()</code> returns the number of successfully established
|
||
|
SSL/TLS sessions in server mode.</p>
|
||
|
<p><code>SSL_CTX_sess_accept_renegotiate()</code> returns the number of started renegotiations
|
||
|
in server mode.</p>
|
||
|
<p><code>SSL_CTX_sess_hits()</code> returns the number of successfully reused sessions.
|
||
|
In client mode a session set with <em>SSL_set_session(3)</em>
|
||
|
successfully reused is counted as a hit. In server mode a session successfully
|
||
|
retrieved from internal or external cache is counted as a hit.</p>
|
||
|
<p><code>SSL_CTX_sess_cb_hits()</code> returns the number of successfully retrieved sessions
|
||
|
from the external session cache in server mode.</p>
|
||
|
<p><code>SSL_CTX_sess_misses()</code> returns the number of sessions proposed by clients
|
||
|
that were not found in the internal session cache in server mode.</p>
|
||
|
<p><code>SSL_CTX_sess_timeouts()</code> returns the number of sessions proposed by clients
|
||
|
and either found in the internal or external session cache in server mode,
|
||
|
but that were invalid due to timeout. These sessions are not included in
|
||
|
the <code>SSL_CTX_sess_hits()</code> count.</p>
|
||
|
<p><code>SSL_CTX_sess_cache_full()</code> returns the number of sessions that were removed
|
||
|
because the maximum session cache size was exceeded.</p>
|
||
|
<p>
|
||
|
</p>
|
||
|
<hr />
|
||
|
<h1><a name="return_values">RETURN VALUES</a></h1>
|
||
|
<p>The functions return the values indicated in the DESCRIPTION section.</p>
|
||
|
<p>
|
||
|
</p>
|
||
|
<hr />
|
||
|
<h1><a name="see_also">SEE ALSO</a></h1>
|
||
|
<p><em>ssl(7)</em>, <em>SSL_set_session(3)</em>,
|
||
|
<em>SSL_CTX_set_session_cache_mode(3)</em>
|
||
|
<em>SSL_CTX_sess_set_cache_size(3)</em></p>
|
||
|
<p>
|
||
|
</p>
|
||
|
<hr />
|
||
|
<h1><a name="copyright">COPYRIGHT</a></h1>
|
||
|
<p>Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.</p>
|
||
|
<p>Licensed under the Apache License 2.0 (the "License"). You may not use
|
||
|
this file except in compliance with the License. You can obtain a copy
|
||
|
in the file LICENSE in the source distribution or at
|
||
|
<a href="https://www.openssl.org/source/license.html">https://www.openssl.org/source/license.html</a>.</p>
|
||
|
|
||
|
</body>
|
||
|
|
||
|
</html>
|