summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_txt.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-05-13 16:24:12 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-05-13 16:24:12 +0000
commitd2f17d9615affdd6b83855058a52e9deaafb9e12 (patch)
tree38022429f7fd18c2ca90f60da4f3e81b9de14880 /ssl/ssl_txt.c
parent561cbe567846a376153bea7f1f2d061e78029c2d (diff)
Print out DTLS versions too.
Diffstat (limited to 'ssl/ssl_txt.c')
-rw-r--r--ssl/ssl_txt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ssl/ssl_txt.c b/ssl/ssl_txt.c
index 26dee73bfa..070161021b 100644
--- a/ssl/ssl_txt.c
+++ b/ssl/ssl_txt.c
@@ -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;