tests/api.c: post_auth_version_cb(): add missing gating on !NO_ERROR_QUEUE for wolfSSL_ERR_get_error() test.

This commit is contained in:
Daniel Pouzzner
2021-10-07 22:35:23 -05:00
parent e4d075de20
commit c2c2e5b4f5

View File

@ -33629,7 +33629,7 @@ static void post_auth_version_cb(WOLFSSL* ssl)
AssertIntEQ(wolfSSL_accept(ssl), WOLFSSL_SUCCESS); AssertIntEQ(wolfSSL_accept(ssl), WOLFSSL_SUCCESS);
AssertStrEQ("TLSv1.2", wolfSSL_get_version(ssl)); AssertStrEQ("TLSv1.2", wolfSSL_get_version(ssl));
AssertIntEQ(wolfSSL_verify_client_post_handshake(ssl), WOLFSSL_FAILURE); 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 */ /* check was added to error queue */
AssertIntEQ(wolfSSL_ERR_get_error(), -UNSUPPORTED_PROTO_VERSION); AssertIntEQ(wolfSSL_ERR_get_error(), -UNSUPPORTED_PROTO_VERSION);