aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2021-02-21 03:03:51 +0000
committerTatsuya Kinoshita <tats@debian.org>2021-02-21 03:03:51 +0000
commit06f247515728b0cdabb80b5552a7eb530d46ad1a (patch)
treefc1d7f51131a3db46f3632ababc828e0022890c4
parentAdd eNULL to ssl_cipher when -insecure (diff)
downloadw3m-06f247515728b0cdabb80b5552a7eb530d46ad1a.tar.gz
w3m-06f247515728b0cdabb80b5552a7eb530d46ad1a.zip
Don't use SECLEVEL when not OPENSSL_TLS_SECURITY_LEVEL
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index 09af238..5e44eb4 100644
--- a/main.c
+++ b/main.c
@@ -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