mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
Add DTLS to SSL_get_version
Reviewed-by: Emilia Käsper <emilia@openssl.org>
This commit is contained in:
parent
21ab123770
commit
504e643e09
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user