This makes it easier to test various error paths related to key
derivation and authentication steps.
Signed-off-by: Jouni Malinen <j@w1.fi>
size_t i;
unsigned int mac_len;
+ if (TEST_FAIL())
+ return -1;
+
EVP_MD_CTX_init(&ctx);
if (!EVP_DigestInit_ex(&ctx, type, NULL)) {
wpa_printf(MSG_ERROR, "OpenSSL: EVP_DigestInit_ex failed: %s",
size_t i;
int res;
+ if (TEST_FAIL())
+ return -1;
+
HMAC_CTX_init(&ctx);
#if OPENSSL_VERSION_NUMBER < 0x00909000
HMAC_Init_ex(&ctx, key, key_len, type, NULL);