blob: ecfd005f121f60b6bb3edc48700e1f81a864f3aa (
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_get_version.3,v 1.2 2014/12/02 14:11:01 jmc Exp $
.\"
.Dd $Mdocdate: December 2 2014 $
.Dt SSL_GET_VERSION 3
.Os
.Sh NAME
.Nm SSL_get_version
.Nd get the protocol version of a connection
.Sh SYNOPSIS
.In openssl/ssl.h
.Ft const char *
.Fn SSL_get_version "const SSL *ssl"
.Sh DESCRIPTION
.Fn SSL_get_version
returns the name of the protocol used for the connection
.Fa ssl .
.Sh RETURN VALUES
The following strings can be returned:
.Bl -tag -width Ds
.It Qq SSLv2
The connection uses the SSLv2 protocol.
.It Qq SSLv3
The connection uses the SSLv3 protocol.
.It Qq TLSv1
The connection uses the TLSv1.0 protocol.
.It Qq TLSv1.1
The connection uses the TLSv1.1 protocol.
.It Qq TLSv1.2
The connection uses the TLSv1.2 protocol.
.It Qq unknown
This indicates that no version has been set (no connection established).
.El
.Sh SEE ALSO
.Xr ssl 3
|