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:
parent
0d6d10d97d
commit
3edf1b98e0
1 changed files with 6 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue