Browse code

tls: remove wrong TLSv1.3 statements from #ifdef block for openssl < 1.1.0

Henning Westerholt authored on 18/08/2022 10:32:02
Showing 1 changed files
... ...
@@ -401,12 +401,6 @@ static void init_ssl_methods(void)
401 401
 	ssl_methods[TLS_USE_TLSv1_2 - 1] = TLSv1_2_method();
402 402
 #endif
403 403
 
404
-#if OPENSSL_VERSION_NUMBER >= 0x1010100fL && !defined(LIBRESSL_VERSION_NUMBER)
405
-	ssl_methods[TLS_USE_TLSv1_3_cli - 1] = TLSv1_3_client_method();
406
-	ssl_methods[TLS_USE_TLSv1_3_srv - 1] = TLSv1_3_server_method();
407
-	ssl_methods[TLS_USE_TLSv1_3 - 1] = TLSv1_3_method();
408
-#endif
409
-
410 404
 	/* ranges of TLS versions (require a minimum TLS version) */
411 405
 	ssl_methods[TLS_USE_TLSv1_PLUS - 1] = (void*)TLS_OP_TLSv1_PLUS;
412 406
 
... ...
@@ -418,9 +412,6 @@ static void init_ssl_methods(void)
418 412
 	ssl_methods[TLS_USE_TLSv1_2_PLUS - 1] = (void*)TLS_OP_TLSv1_2_PLUS;
419 413
 #endif
420 414
 
421
-#if OPENSSL_VERSION_NUMBER >= 0x1010100fL && !defined(LIBRESSL_VERSION_NUMBER)
422
-	ssl_methods[TLS_USE_TLSv1_3_PLUS - 1] = (void*)TLS_OP_TLSv1_3_PLUS;
423
-#endif
424 415
 #else
425 416
 	/* openssl 1.1.0+ */
426 417
 	memset(sr_tls_methods, 0, sizeof(sr_tls_methods));