Use the SSLv23 method by default
authorKurt Roeckx <kurt@roeckx.be>
Sat, 29 Nov 2014 15:17:54 +0000 (16:17 +0100)
committerKurt Roeckx <kurt@roeckx.be>
Tue, 2 Dec 2014 10:29:07 +0000 (11:29 +0100)
If SSLv2 and SSLv3 are both disabled we still support SSL/TLS.

Reviewed-by: Richard Levitte <levitte@openssl.org>
apps/ocsp.c
apps/s_time.c

index 3beec781e408e42398d7f062be83a7a3f5cb54df..8883afc9565b010379f4f19b06efac1ce60c6c3d 100644 (file)
@@ -1399,16 +1399,7 @@ OCSP_RESPONSE *process_responder(BIO *err, OCSP_REQUEST *req,
        if (use_ssl == 1)
                {
                BIO *sbio;
-#if !defined(OPENSSL_NO_SSL2) && !defined(OPENSSL_NO_SSL3)
                ctx = SSL_CTX_new(SSLv23_client_method());
-#elif !defined(OPENSSL_NO_SSL3)
-               ctx = SSL_CTX_new(SSLv3_client_method());
-#elif !defined(OPENSSL_NO_SSL2)
-               ctx = SSL_CTX_new(SSLv2_client_method());
-#else
-               BIO_printf(err, "SSL is disabled\n");
-                       goto end;
-#endif
                if (ctx == NULL)
                        {
                        BIO_printf(err, "Error creating SSL context.\n");
index b823c33c58a02656c3f33c5e1654f990b97b1efb..81dad53243a4e0ec5599e1c0cddf16cdfb35638e 100644 (file)
@@ -349,13 +349,7 @@ int MAIN(int argc, char **argv)
        if (bio_err == NULL)
                bio_err=BIO_new_fp(stderr,BIO_NOCLOSE);
 
-#if !defined(OPENSSL_NO_SSL2) && !defined(OPENSSL_NO_SSL3)
        s_time_meth=SSLv23_client_method();
-#elif !defined(OPENSSL_NO_SSL3)
-       s_time_meth=SSLv3_client_method();
-#elif !defined(OPENSSL_NO_SSL2)
-       s_time_meth=SSLv2_client_method();
-#endif
 
        /* parse the command line arguments */
        if( parseArgs( argc, argv ) < 0 )