Print out DTLS versions too.

This commit is contained in:
Dr. Stephen Henson 2009-05-13 16:24:12 +00:00
parent 561cbe5678
commit d2f17d9615

View File

@ -117,6 +117,10 @@ int SSL_SESSION_print(BIO *bp, const SSL_SESSION *x)
s="SSLv3";
else if (x->ssl_version == TLS1_VERSION)
s="TLSv1";
else if (x->ssl_version == DTLS1_VERSION)
s="DTLSv1";
else if (x->ssl_version == DTLS1_BAD_VER)
s="DTLSv1-bad";
else
s="unknown";
if (BIO_printf(bp," Protocol : %s\n",s) <= 0) goto err;