summaryrefslogtreecommitdiff
path: root/src/lib/libssl/doc/SSL_session_reused.3
blob: 6ea45f749bc1d373f5f9db8ccb2b31a50904b038 (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
.\"
.\"	$OpenBSD: SSL_session_reused.3,v 1.2 2014/12/02 14:11:01 jmc Exp $
.\"
.Dd $Mdocdate: December 2 2014 $
.Dt SSL_SESSION_REUSED 3
.Os
.Sh NAME
.Nm SSL_session_reused
.Nd query whether a reused session was negotiated during handshake
.Sh SYNOPSIS
.In openssl/ssl.h
.Ft int
.Fn SSL_session_reused "SSL *ssl"
.Sh DESCRIPTION
Query whether a reused session was negotiated during the handshake.
.Sh NOTES
During the negotiation, a client can propose to reuse a session.
The server then looks up the session in its cache.
If both client and server agree on the session,
it will be reused and a flag is set that can be queried by the application.
.Sh RETURN VALUES
The following return values can occur:
.Bl -tag -width Ds
.It 0
A new session was negotiated.
.It 1
A session was reused.
.El
.Sh SEE ALSO
.Xr ssl 3 ,
.Xr SSL_CTX_set_session_cache_mode 3 ,
.Xr SSL_set_session 3