提交 504e643e 编写于 作者: D David Woodhouse 提交者: Matt Caswell

Add DTLS to SSL_get_version

Reviewed-by: NEmilia Käsper <emilia@openssl.org>
上级 21ab1237
......@@ -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");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册