Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
SSL_get_version, SSL_is_dtls, SSL_version — get the protocol information of a connectionSYNOPSIS
#include <openssl/ssl.h>SSL_get_version(const SSL *ssl);
SSL_is_dtls(const SSL *ssl);
SSL_version(const SSL *ssl);
DESCRIPTION
SSL_get_version() returns the name of the protocol used for the connection ssl.RETURN VALUES
The following strings or integers can be returned by SSL_get_version() and SSL_version():-
“TLSv1”
or
TLS1_VERSION - The connection uses the TLSv1.0 protocol.
-
“TLSv1.1”
or
TLS1_1_VERSION - The connection uses the TLSv1.1 protocol.
-
“TLSv1.2”
or
TLS1_2_VERSION - The connection uses the TLSv1.2 protocol.
-
“TLSv1.3”
or
TLS1_3_VERSION - The connection uses the TLSv1.3 protocol.
-
“DTLSv1”
or
DTLS1_VERSION - The connection uses the Datagram Transport Layer Security 1.0 protocol.
-
“DTLSv1.2”
or
DTLS1_2_VERSION - The connection uses the Datagram Transport Layer Security 1.2 protocol.
- “unknown”
- This indicates an unknown protocol version; it cannot currently happen with LibreSSL.