Skip to content

Commit 827087b

Browse files
JacobBarthelmehkareem-wolfssl
authored andcommitted
add macro guard for system ca certs load
1 parent a57b577 commit 827087b

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
@@ -407,6 +407,7 @@ static int SetupCTX(WOLFSSHD_CONFIG* conf, WOLFSSH_CTX** ctx)
407407

408408
#ifdef WOLFSSH_CERTS
409409
/* check if loading in system CA certs */
410+
#ifdef WOLFSSL_SYS_CA_CERTS
410411
if (ret == WS_SUCCESS && wolfSSHD_ConfigGetSystemCA(conf)) {
411412
WOLFSSL_CTX* sslCtx;
412413

@@ -437,6 +438,7 @@ static int SetupCTX(WOLFSSHD_CONFIG* conf, WOLFSSH_CTX** ctx)
437438
wolfSSL_CTX_free(sslCtx);
438439
}
439440
}
441+
#endif
440442

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

0 commit comments

Comments
 (0)