Skip to content

Commit

Permalink
fix for macro guard with test case building with trusted peer certs
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Apr 29, 2022
1 parent 9d7a02b commit 14ff3d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -950,9 +950,11 @@ static void test_wolfSSL_CTX_trust_peer_cert(void)
AssertIntEQ(wolfSSL_trust_peer_cert(ssl, cliCertFile,
WOLFSSL_FILETYPE_PEM), WOLFSSL_SUCCESS);

#ifdef WOLFSSL_LOCAL_X509_STORE
/* unload cert */
AssertIntNE(wolfSSL_Unload_trust_peers(NULL), WOLFSSL_SUCCESS);
AssertIntEQ(wolfSSL_Unload_trust_peers(ssl), WOLFSSL_SUCCESS);
#endif
#endif

/* Test of loading certs from buffers */
Expand Down

0 comments on commit 14ff3d1

Please sign in to comment.