From: Dr. Stephen Henson Date: Sat, 16 Jan 2010 19:02:43 +0000 (+0000) Subject: Add strings for DTLS protocol versions X-Git-Tag: OpenSSL_0_9_8m-beta1~11 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=fbeb4a9d155039f006f4fb8d1c0422a36bd4b3e1;ds=sidebyside Add strings for DTLS protocol versions --- 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;