5 SSL_SESSION_get_protocol_version - retrieve session protocol version
9 #include <openssl/ssl.h>
11 int SSL_SESSION_get_protocol_version(const SSL_SESSION *s);
15 SSL_SESSION_get_protocol_version() returns the protocol version number used
20 SSL_SESSION_get_protocol_version() returns a number indicating the protocol
21 version used for the session; this number matches the constants I<e.g.>
22 B<TLS1_VERSION> or B<TLS1_2_VERSION>.
24 Note that the SSL_SESSION_get_protocol_version() function
25 does B<not> perform a null check on the provided session B<s> pointer.
33 SSL_SESSION_get_protocol_version() was first added to OpenSSL 1.1.0
37 Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.
39 Licensed under the OpenSSL license (the "License"). You may not use
40 this file except in compliance with the License. You can obtain a copy
41 in the file LICENSE in the source distribution or at
42 L<https://www.openssl.org/source/license.html>.