Fix in ssltest is no-ssl2 configured

This commit is contained in:
Dr. Stephen Henson 2013-02-11 18:17:50 +00:00
parent 625a55324f
commit cbf9b4aed3

View File

@ -881,7 +881,13 @@ bad:
meth=SSLv23_method(); meth=SSLv23_method();
#else #else
#ifdef OPENSSL_NO_SSL2 #ifdef OPENSSL_NO_SSL2
if (tls1)
meth=TLSv1_method();
else
if (ssl3)
meth=SSLv3_method(); meth=SSLv3_method();
else
meth=SSLv23_method();
#else #else
meth=SSLv2_method(); meth=SSLv2_method();
#endif #endif