Fix no-ssl3-method build
authorKurt Roeckx <kurt@roeckx.be>
Thu, 2 Nov 2017 17:53:16 +0000 (18:53 +0100)
committerKurt Roeckx <kurt@roeckx.be>
Fri, 3 Nov 2017 14:19:05 +0000 (15:19 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
GH: #4649

ssl/s23_clnt.c

index 92f41dd549ad64d8e5d1601d0514c3b509afe8c7..05b892b7238725a9908eac315915d4164a8f15f2 100644 (file)
@@ -757,10 +757,12 @@ static int ssl23_get_server_hello(SSL *s)
                 s->version = TLS1_VERSION;
                 s->method = TLSv1_client_method();
                 break;
+#ifndef OPENSSL_NO_SSL3_METHOD
             case SSL3_VERSION:
                 s->version = SSL3_VERSION;
                 s->method = SSLv3_client_method();
                 break;
+#endif
             }
             SSLerr(SSL_F_SSL23_GET_SERVER_HELLO, SSL_R_UNSUPPORTED_PROTOCOL);
             ssl3_send_alert(s, SSL3_AL_FATAL, SSL_AD_PROTOCOL_VERSION);