diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2021-02-12 14:49:47 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2021-02-12 14:49:47 +0000 |
commit | 2cbf7f704d4afcb1121e0af084c7ae36895ed215 (patch) | |
tree | 79ec9ee53d70e06213a8d8b3c9d7d4d4fb3e8af5 /url.c | |
parent | Fix OpenSSL default always overrides ssl_ca_file and ssl_ca_path (diff) | |
download | w3m-2cbf7f704d4afcb1121e0af084c7ae36895ed215.tar.gz w3m-2cbf7f704d4afcb1121e0af084c7ae36895ed215.zip |
Check empty string conditions for ssl_ca_file and ssl_ca_path
Diffstat (limited to '')
-rw-r--r-- | url.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -444,7 +444,8 @@ openSSLHandle(int sock, char *hostname, char **p_cert) goto eend; } } - if ((!ssl_ca_file && !ssl_ca_path) + if ((!ssl_ca_file || *ssl_ca_file == '\0') + && (!ssl_ca_path || *ssl_ca_path == '\0') || !SSL_CTX_load_verify_locations(ssl_ctx, ssl_ca_file, ssl_ca_path)) #endif /* defined(USE_SSL_VERIFY) */ SSL_CTX_set_default_verify_paths(ssl_ctx); |