5 SSL_get_version, SSL_is_dtls - get the protocol information of a connection
9 #include <openssl/ssl.h>
11 const char *SSL_get_version(const SSL *ssl);
13 int SSL_is_dtls(const SSL *ssl);
17 SSL_get_version() returns the name of the protocol used for the
20 SSL_is_dtls() returns one if the connection is using DTLS, zero if not.
24 SSL_get_version() returns one of the following strings:
30 The connection uses the SSLv3 protocol.
34 The connection uses the TLSv1.0 protocol.
38 The connection uses the TLSv1.1 protocol.
42 The connection uses the TLSv1.2 protocol.
46 This indicates that no version has been set (no connection established).
56 SSL_is_dtls() was added in OpenSSL 1.1.0.
60 Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.
62 Licensed under the OpenSSL license (the "License"). You may not use
63 this file except in compliance with the License. You can obtain a copy
64 in the file LICENSE in the source distribution or at
65 L<https://www.openssl.org/source/license.html>.