Don't use SECLEVEL when not OPENSSL_TLS_SECURITY_LEVEL

This commit is contained in:
Tatsuya Kinoshita
2021-02-21 12:03:51 +09:00
parent 03f301e219
commit 06f2475157
+4
View File
@@ -757,7 +757,11 @@ main(int argc, char **argv, char **envp)
displayTitleTerm = argv[i] + 7;
#ifdef USE_SSL
else if (!strcmp("-insecure", argv[i])) {
#ifdef OPENSSL_TLS_SECURITY_LEVEL
set_param_option("ssl_cipher=ALL:eNULL:@SECLEVEL=0");
#else
set_param_option("ssl_cipher=ALL:eNULL");
#endif
#ifdef SSL_CTX_set_min_proto_version
set_param_option("ssl_min_version=all");
#endif