Skip to content

Commit 89f8741

Browse files
Fix
1 parent f085568 commit 89f8741

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/auth.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ static THREAD_RETURN WOLFSSH_THREAD pubkey_server_thread(void* args)
506506

507507
wolfSSH_SetUserAuth(ctx, serverArgs->userAuth);
508508

509+
#ifdef WOLFSSH_CERTS
509510
if (serverArgs->caCert != NULL) {
510511
ret = wolfSSH_CTX_AddRootCert_buffer(ctx, serverArgs->caCert,
511512
serverArgs->caCertSz,
@@ -515,6 +516,7 @@ static THREAD_RETURN WOLFSSH_THREAD pubkey_server_thread(void* args)
515516
goto cleanup;
516517
}
517518
}
519+
#endif /* WOLFSSH_CERTS */
518520

519521
ssh = wolfSSH_new(ctx);
520522
if (ssh == NULL) {

0 commit comments

Comments
 (0)