]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix in ssltest is no-ssl2 configured
authorDr. Stephen Henson <steve@openssl.org>
Mon, 11 Feb 2013 18:17:50 +0000 (18:17 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 11 Feb 2013 18:27:33 +0000 (18:27 +0000)
(cherry picked from commit cbf9b4aed3e209fe8a39e1d6f55aaf46d1369dc4)

ssl/ssltest.c

index 310e0677e90a37d5d497cea68054ce5ff9f8d5c7..26ff634ea3c8b2dcb477a6f4cce368a3dff9563b 100644 (file)
@@ -735,7 +735,13 @@ bad:
                meth=SSLv23_method();
 #else
 #ifdef OPENSSL_NO_SSL2
-       meth=SSLv3_method();
+       if (tls1)
+               meth=TLSv1_method();
+       else
+       if (ssl3)
+               meth=SSLv3_method();
+       else
+               meth=SSLv23_method();
 #else
        meth=SSLv2_method();
 #endif