Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add macro guard for system ca certs load
  • Loading branch information
JacobBarthelmeh authored and kareem-wolfssl committed Nov 15, 2024
commit 935cfb7a00ca8039355ae679085bdbea4115afae
2 changes: 2 additions & 0 deletions apps/wolfsshd/wolfsshd.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,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 @@ -454,6 +455,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