Don't use SSLv3_client_method internally with no-ssl3
authorRichard Levitte <levitte@openssl.org>
Tue, 14 Nov 2017 04:03:19 +0000 (05:03 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 14 Nov 2017 04:20:47 +0000 (05:20 +0100)
Fixes #4734 #4649

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4735)

ssl/s23_clnt.c

index 05b892b7238725a9908eac315915d4164a8f15f2..add8c9916c8feb1c9b3416bb04dde168ff4f7f75 100644 (file)
@@ -757,7 +757,7 @@ static int ssl23_get_server_hello(SSL *s)
                 s->version = TLS1_VERSION;
                 s->method = TLSv1_client_method();
                 break;
-#ifndef OPENSSL_NO_SSL3_METHOD
+#ifndef OPENSSL_NO_SSL3
             case SSL3_VERSION:
                 s->version = SSL3_VERSION;
                 s->method = SSLv3_client_method();