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);