summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-08-08 03:59:23 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-08-08 03:59:23 (EDT)
commit1ef5f54f03fa8bc7adeb321e2ccb1741a1d7b045 (patch)
tree81594eace87698f5779083f192c123fd6c288410 /src
parentf8ec39647be17228ed9333bb2a97444a92ef4e90 (diff)
build, s_client: Support certificates file
Diffstat (limited to 'src')
-rw-r--r--src/s_client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/s_client.c b/src/s_client.c
index 8da7401..cf7440d 100644
--- a/src/s_client.c
+++ b/src/s_client.c
@@ -254,7 +254,8 @@ s_client(int argc, char **argv)
}
#if defined(HAVE_CA_CERTS) && HAVE_CA_CERTS
- if (wolfSSL_CTX_load_verify_locations_ex(ctx, NULL, CA_CERTS,
+ if (wolfSSL_CTX_load_verify_locations_ex(ctx,
+ CA_CERTS_FILE, CA_CERTS_DIR,
WOLFSSL_LOAD_FLAG_IGNORE_ERR) !=
WOLFSSL_SUCCESS) {
fputs("Failed to load CA certificates\n", stderr);