From f0d17fecc44629b4c2d213e77af2e90160d8cb76 Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Fri, 12 Feb 2021 23:06:23 +0900 Subject: Fix OpenSSL default always overrides ssl_ca_file and ssl_ca_path --- url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'url.c') diff --git a/url.c b/url.c index 7a31042..e6cb437 100644 --- a/url.c +++ b/url.c @@ -445,7 +445,7 @@ openSSLHandle(int sock, char *hostname, char **p_cert) } } if ((!ssl_ca_file && !ssl_ca_path) - || SSL_CTX_load_verify_locations(ssl_ctx, ssl_ca_file, ssl_ca_path)) + || !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); #endif /* SSLEAY_VERSION_NUMBER >= 0x0800 */ -- cgit v1.2.3