5 SSL_get_version - get the protocol version of a connection.
9 #include <openssl/ssl.h>
11 const char *SSL_get_version(const SSL *ssl);
15 SSL_get_version() returns the name of the protocol used for the
20 The following strings can be returned:
26 The connection uses the SSLv3 protocol.
30 The connection uses the TLSv1.0 protocol.
34 The connection uses the TLSv1.1 protocol.
38 The connection uses the TLSv1.2 protocol.
42 This indicates that no version has been set (no connection established).
54 Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.
56 Licensed under the OpenSSL license (the "License"). You may not use
57 this file except in compliance with the License. You can obtain a copy
58 in the file LICENSE in the source distribution or at
59 L<https://www.openssl.org/source/license.html>.