Skip to content

Commit 935cfb7

Browse files
JacobBarthelmehkareem-wolfssl
authored andcommitted
add macro guard for system ca certs load
1 parent 3cf234a commit 935cfb7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/wolfsshd/wolfsshd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ static int SetupCTX(WOLFSSHD_CONFIG* conf, WOLFSSH_CTX** ctx,
424424

425425
#ifdef WOLFSSH_CERTS
426426
/* check if loading in system CA certs */
427+
#ifdef WOLFSSL_SYS_CA_CERTS
427428
if (ret == WS_SUCCESS && wolfSSHD_ConfigGetSystemCA(conf)) {
428429
WOLFSSL_CTX* sslCtx;
429430

@@ -454,6 +455,7 @@ static int SetupCTX(WOLFSSHD_CONFIG* conf, WOLFSSH_CTX** ctx,
454455
wolfSSL_CTX_free(sslCtx);
455456
}
456457
}
458+
#endif
457459

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

0 commit comments

Comments
 (0)