This is especially unpractical in s_server/s_client.

--
Index: ssl/ssl_txt.c
===================================================================
RCS file: /v/openssl/cvs/openssl/ssl/ssl_txt.c,v
retrieving revision 1.19
diff -u -r1.19 ssl_txt.c
--- ssl/ssl_txt.c       11 Aug 2007 23:18:28 -0000      1.19
+++ ssl/ssl_txt.c       15 Sep 2008 11:39:10 -0000
@@ -117,6 +117,8 @@
                s="SSLv3";
        else if (x->ssl_version == TLS1_VERSION)
                s="TLSv1";
+       else if (x->ssl_version == DTLS1_VERSION)
+               s="DTLSv1";
        else
                s="unknown";
        if (BIO_printf(bp,"    Protocol  : %s\n",s) <= 0) goto err;
Index: ssl/ssl_lib.c
===================================================================
RCS file: /v/openssl/cvs/openssl/ssl/ssl_lib.c,v
retrieving revision 1.172
diff -u -r1.172 ssl_lib.c
--- ssl/ssl_lib.c       4 Aug 2008 22:10:38 -0000       1.172
+++ ssl/ssl_lib.c       15 Sep 2008 11:39:10 -0000
@@ -2367,6 +2367,8 @@
                return("SSLv3");
        else if (s->version == SSL2_VERSION)
                return("SSLv2");
+       else if (s->version == DTLS1_VERSION)
+               return("DTLSv1");
        else
                return("unknown");
        }
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to