1SSL_get_version(3)                  OpenSSL                 SSL_get_version(3)
2
3
4

NAME

6       SSL_get_version - get the protocol version of a connection.
7

SYNOPSIS

9        #include <openssl/ssl.h>
10
11        const char *SSL_get_version(const SSL *ssl);
12

DESCRIPTION

14       SSL_get_version() returns the name of the protocol used for the
15       connection ssl.
16

RETURN VALUES

18       The following strings can be returned:
19
20       SSLv2
21           The connection uses the SSLv2 protocol.
22
23       SSLv3
24           The connection uses the SSLv3 protocol.
25
26       TLSv1
27           The connection uses the TLSv1.0 protocol.
28
29       TLSv1.1
30           The connection uses the TLSv1.1 protocol.
31
32       TLSv1.2
33           The connection uses the TLSv1.2 protocol.
34
35       unknown
36           This indicates that no version has been set (no connection
37           established).
38

SEE ALSO

40       ssl(3)
41
42
43
441.0.2o                            2018-03-27                SSL_get_version(3)
Impressum