Skip to content

Commit b0cf94f

Browse files
add macro guard for system ca certs load
1 parent 40302ac commit b0cf94f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apps/wolfsshd/wolfsshd.c

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

435435
#ifdef WOLFSSH_CERTS
436436
/* check if loading in system CA certs */
437+
#ifdef WOLFSSL_SYS_CA_CERTS
437438
if (ret == WS_SUCCESS && wolfSSHD_ConfigGetSystemCA(conf)) {
438439
WOLFSSL_CTX* sslCtx;
439440

@@ -464,6 +465,7 @@ static int SetupCTX(WOLFSSHD_CONFIG* conf, WOLFSSH_CTX** ctx,
464465
wolfSSL_CTX_free(sslCtx);
465466
}
466467
}
468+
#endif
467469

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

0 commit comments

Comments
 (0)