Skip to content

Commit

Permalink
tls_wolfssl: complete fix in commit 77f5f5a
Browse files Browse the repository at this point in the history
This also ignores errors due to bad path, same as openssl does by default.

(cherry picked from commit d919285)
  • Loading branch information
rvlad-patrascu committed Jan 31, 2023
1 parent 9b92527 commit 1768c8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tls_wolfssl/wolfssl_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ static int load_ca_dir(WOLFSSL_CTX * ctx, char *directory)
int rc;

if ((rc = wolfSSL_CTX_load_verify_locations_ex(ctx, 0, directory,
WOLFSSL_LOAD_FLAG_IGNORE_ERR)) !=
WOLFSSL_LOAD_FLAG_IGNORE_ERR|WOLFSSL_LOAD_FLAG_IGNORE_BAD_PATH_ERR)) !=
SSL_SUCCESS) {
LM_ERR("unable to load ca directory '%s' (ret=%d)\n", directory, rc);
return -1;
Expand Down

0 comments on commit 1768c8d

Please sign in to comment.