summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_txt.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-01-16 19:02:43 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-01-16 19:02:43 +0000
commitfbeb4a9d155039f006f4fb8d1c0422a36bd4b3e1 (patch)
tree9a9098eabf745574566493dd51cb472c2f6b86ec /ssl/ssl_txt.c
parent24fc4f656cadeef0e30f3c4d7d6a9e49672e40a1 (diff)
Add strings for DTLS protocol versions
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 136a308f44..81c1361698 100644
--- a/ssl/ssl_txt.c
+++ b/ssl/ssl_txt.c
@@ -91,6 +91,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;