From c2c2e5b4f536bf66befb70c6edc389bd32dc5587 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Thu, 7 Oct 2021 22:35:23 -0500 Subject: [PATCH] tests/api.c: post_auth_version_cb(): add missing gating on !NO_ERROR_QUEUE for wolfSSL_ERR_get_error() test. --- tests/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api.c b/tests/api.c index b4cc46955..2b8a24afc 100644 --- a/tests/api.c +++ b/tests/api.c @@ -33629,7 +33629,7 @@ static void post_auth_version_cb(WOLFSSL* ssl) AssertIntEQ(wolfSSL_accept(ssl), WOLFSSL_SUCCESS); AssertStrEQ("TLSv1.2", wolfSSL_get_version(ssl)); AssertIntEQ(wolfSSL_verify_client_post_handshake(ssl), WOLFSSL_FAILURE); -#ifdef OPENSSL_ALL +#if defined(OPENSSL_ALL) && !defined(NO_ERROR_QUEUE) /* check was added to error queue */ AssertIntEQ(wolfSSL_ERR_get_error(), -UNSUPPORTED_PROTO_VERSION);