Add DTLS to SSL_get_version

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

Conflicts:
	ssl/ssl_lib.c
This commit is contained in:
David Woodhouse 2015-03-03 15:39:26 +00:00 committed by Matt Caswell
parent 0d6d10d97d
commit 3edf1b98e0

View file

@ -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");
}