SSL_SESSION_get_protocol_version.3ssl man page

SSL_SESSION_get_protocol_version — retrieve session protocol version

Synopsis

#include <openssl/ssl.h>
int SSL_SESSION_get_protocol_version(const SSL_SESSION *s);

Description

SSL_SESSION_get_protocol_version() returns the protocol version number used by session s.

Return Values

SSL_SESSION_get_protocol_version() returns a number indicating the protocol version used for the session; this number matches the constants e.g. TLS1_VERSION or TLS1_2_VERSION.

Note that the SSL_SESSION_get_protocol_version() function does not perform a null check on the provided session s pointer.

See Also

ssl(3)

History

SSL_SESSION_get_protocol_version() was first added to OpenSSL 1.1.0

Info

2016-12-02 1.1.0c OpenSSL