Sortix
Sortix Download Manual Development Source Code News Blog More
current nightly

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.

SSL_SESSION_GET_PROTOCOL_VERSION(3) Library Functions Manual SSL_SESSION_GET_PROTOCOL_VERSION(3)

NAME

SSL_SESSION_get_protocol_version — get the 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 the session s.

RETURN VALUES

SSL_SESSION_get_protocol_version() returns a constant like TLS1_VERSION or TLS1_2_VERSION.

SEE ALSO

ssl(3), SSL_get_session(3), SSL_SESSION_get0_peer(3), SSL_SESSION_get_compress_id(3), SSL_SESSION_get_id(3), SSL_SESSION_get_time(3), SSL_SESSION_new(3)

HISTORY

SSL_SESSION_get_protocol_version() first appeared in OpenSSL 1.1.0 and has been available since OpenBSD 6.3.

March 24, 2018 Sortix 1.1.0-dev
Copyright 2011-2025 Jonas 'Sortie' Termansen and contributors.
Sortix's source code is free software under the ISC license.
#sortix on irc.sortix.org
@sortix_org