From: David Woodhouse Date: Tue, 3 Mar 2015 15:39:26 +0000 (+0000) Subject: Add DTLS to SSL_get_version X-Git-Tag: OpenSSL_1_1_0-pre1~1503 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=504e643e0996fb842ac183023c3a6b9049af50ea;p=oweals%2Fopenssl.git Add DTLS to SSL_get_version Reviewed-by: Emilia Käsper --- 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"); }