From 6dd823f825a7c329a4366938013713c7c094d85a Mon Sep 17 00:00:00 2001 From: twosee Date: Sun, 19 Nov 2023 22:40:06 +0800 Subject: [PATCH] Fix ca_path not working --- src/cat_ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cat_ssl.c b/src/cat_ssl.c index 2f7a3ade..a1ab6c14 100644 --- a/src/cat_ssl.c +++ b/src/cat_ssl.c @@ -318,7 +318,7 @@ CAT_API cat_bool_t cat_ssl_context_load_verify_locations(cat_ssl_context_t *cont { CAT_LOG_DEBUG(SSL, "SSL_CTX_load_verify_locations(%p, ca_file: " CAT_LOG_STRING_OR_NULL_FMT ", ca_path: " CAT_LOG_STRING_OR_NULL_FMT ")", context, CAT_LOG_STRING_OR_NULL_PARAM(ca_file), CAT_LOG_STRING_OR_NULL_PARAM(ca_path)); - if (SSL_CTX_load_verify_locations(context->ctx, ca_file, NULL) != 1) { + if (SSL_CTX_load_verify_locations(context->ctx, ca_file, ca_path) != 1) { cat_ssl_update_last_error(CAT_ESSL, "SSL_CTX_load_verify_locations() failed"); return cat_false; }