Add strings for DTLS protocol versions
authorDr. Stephen Henson <steve@openssl.org>
Sat, 16 Jan 2010 19:02:43 +0000 (19:02 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sat, 16 Jan 2010 19:02:43 +0000 (19:02 +0000)
ssl/ssl_txt.c

index 136a308f44d22858b8ad5843b522462abe0c92f7..81c136169870164802fc4045777c1c3a2d785b43 100644 (file)
@@ -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;