Skip to content

Commit

Permalink
Fix ca_path not working
Browse files Browse the repository at this point in the history
  • Loading branch information
twose committed Nov 19, 2023
1 parent 4f13f0f commit 6dd823f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cat_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6dd823f

Please sign in to comment.