From 348fec3d29ba22f02ee31cf1d889f42d753aaf5c Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Thu, 21 Oct 2021 13:47:55 +0200 Subject: [PATCH] `wc_ClearErrorNodes` is a local API that is not exported for linking --- tests/api.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/api.c b/tests/api.c index 992953fdb..21014b0df 100644 --- a/tests/api.c +++ b/tests/api.c @@ -33994,8 +33994,10 @@ static void test_wolfSSL_X509_STORE_load_locations(void) AssertIntEQ(X509_STORE_load_locations(store, client_pem_file, NULL), WOLFSSL_SUCCESS); AssertIntEQ(X509_STORE_load_locations(store, NULL, certs_path), WOLFSSL_SUCCESS); +#if defined(OPENSSL_EXTRA) || defined(DEBUG_WOLFSSL_VERBOSE) /* Clear nodes */ - wc_ClearErrorNodes(); + ERR_clear_error(); +#endif SSL_CTX_free(ctx); printf(resultFmt, passed);