Commit 3edf1b98 authored by David Woodhouse's avatar David Woodhouse Committed by Matt Caswell
Browse files

Add DTLS to SSL_get_version



Reviewed-by: default avatarEmilia Käsper <emilia@openssl.org>
(cherry picked from commit 504e643e)

Conflicts:
	ssl/ssl_lib.c
parent 0d6d10d9
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2832,6 +2832,12 @@ const char *SSL_get_version(const SSL *s)
        return ("SSLv3");
    else if (s->version == SSL2_VERSION)
        return ("SSLv2");
    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");
}