OpenBSD manual page server

Manual Page Search Parameters

SSL_GET_VERSION(3) Library Functions Manual SSL_GET_VERSION(3)

SSL_get_versionget the protocol version of a connection

#include <openssl/ssl.h>

const char *
SSL_get_version(const SSL *ssl);

() returns the name of the protocol used for the connection ssl.

The following strings can be returned:

"SSLv2"
The connection uses the SSLv2 protocol.
"SSLv3"
The connection uses the SSLv3 protocol.
"TLSv1"
The connection uses the TLSv1.0 protocol.
"TLSv1.1"
The connection uses the TLSv1.1 protocol.
"TLSv1.2"
The connection uses the TLSv1.2 protocol.
"unknown"
This indicates that no version has been set (no connection established).

ssl(3)

December 2, 2014 OpenBSD-5.9