From fbe621d08f2026926c91c1c5f386b27605e39a43 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 11 Feb 2013 18:17:50 +0000 Subject: [PATCH] Fix in ssltest is no-ssl2 configured (cherry picked from commit cbf9b4aed3e209fe8a39e1d6f55aaf46d1369dc4) --- ssl/ssltest.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ssl/ssltest.c b/ssl/ssltest.c index 310e0677e9..26ff634ea3 100644 --- a/ssl/ssltest.c +++ b/ssl/ssltest.c @@ -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 -- 2.25.1