From 504e643e0996fb842ac183023c3a6b9049af50ea Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Tue, 3 Mar 2015 15:39:26 +0000 Subject: [PATCH] Add DTLS to SSL_get_version MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Emilia Käsper --- ssl/ssl_lib.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index a5eb3dba61..1e9b34f78a 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -2735,6 +2735,12 @@ const char *SSL_get_version(const SSL *s) return ("TLSv1"); else if (s->version == SSL3_VERSION) return ("SSLv3"); + else if (s->version == DTLS1_BAD_VER) + return ("DTLSv0.9"); + else if (s->version == DTLS1_VERSION) + return ("DTLSv1"); + else if (s->version == DTLS1_2_VERSION) + return ("DTLSv1.2"); else return ("unknown"); } -- 2.34.1