blob: 40a88cd881ef57959c957de49e23dae107b09dae (
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
|
.Dd $Mdocdate: October 12 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
|