Skip to content

Commit

Permalink
add macro guard for system ca certs load
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh authored and kareem-wolfssl committed May 3, 2024
1 parent 90d8a5d commit 05c3d23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/wolfsshd/wolfsshd.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ static int SetupCTX(WOLFSSHD_CONFIG* conf, WOLFSSH_CTX** ctx)

#ifdef WOLFSSH_CERTS
/* check if loading in system CA certs */
#ifdef WOLFSSL_SYS_CA_CERTS
if (ret == WS_SUCCESS && wolfSSHD_ConfigGetSystemCA(conf)) {
WOLFSSL_CTX* sslCtx;

Expand Down Expand Up @@ -437,6 +438,7 @@ static int SetupCTX(WOLFSSHD_CONFIG* conf, WOLFSSH_CTX** ctx)
wolfSSL_CTX_free(sslCtx);
}
}
#endif

/* load in CA certs from file set */
if (ret == WS_SUCCESS) {
Expand Down

0 comments on commit 05c3d23

Please sign in to comment.