forked from wolfSSL/wolfssl
fix for macro guard with test case building with trusted peer certs
This commit is contained in:
@@ -950,9 +950,11 @@ static void test_wolfSSL_CTX_trust_peer_cert(void)
|
|||||||
AssertIntEQ(wolfSSL_trust_peer_cert(ssl, cliCertFile,
|
AssertIntEQ(wolfSSL_trust_peer_cert(ssl, cliCertFile,
|
||||||
WOLFSSL_FILETYPE_PEM), WOLFSSL_SUCCESS);
|
WOLFSSL_FILETYPE_PEM), WOLFSSL_SUCCESS);
|
||||||
|
|
||||||
|
#ifdef WOLFSSL_LOCAL_X509_STORE
|
||||||
/* unload cert */
|
/* unload cert */
|
||||||
AssertIntNE(wolfSSL_Unload_trust_peers(NULL), WOLFSSL_SUCCESS);
|
AssertIntNE(wolfSSL_Unload_trust_peers(NULL), WOLFSSL_SUCCESS);
|
||||||
AssertIntEQ(wolfSSL_Unload_trust_peers(ssl), WOLFSSL_SUCCESS);
|
AssertIntEQ(wolfSSL_Unload_trust_peers(ssl), WOLFSSL_SUCCESS);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Test of loading certs from buffers */
|
/* Test of loading certs from buffers */
|
||||||
|
Reference in New Issue
Block a user