From 14ff3d1f0f68d3bba41555eda6b90a57f969a333 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Fri, 29 Apr 2022 14:46:35 -0700 Subject: [PATCH] fix for macro guard with test case building with trusted peer certs --- tests/api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/api.c b/tests/api.c index 0dc86d612..88a5c1f42 100644 --- a/tests/api.c +++ b/tests/api.c @@ -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 */