From f07320eae073dcaa866ec35dfe5f3708a3c43fee Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 3 May 2005 11:56:09 +0000 Subject: [PATCH] Remove unnecessary code. --- crypto/hmac/hmac.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/crypto/hmac/hmac.c b/crypto/hmac/hmac.c index 2df670f245..6c110bd52b 100644 --- a/crypto/hmac/hmac.c +++ b/crypto/hmac/hmac.c @@ -79,15 +79,6 @@ void HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, if (key != NULL) { -#ifdef OPENSSL_FIPS - if (FIPS_mode() && !(md->flags & EVP_MD_FLAG_FIPS) - && (!(ctx->md_ctx.flags & EVP_MD_CTX_FLAG_NON_FIPS_ALLOW) - || !(ctx->i_ctx.flags & EVP_MD_CTX_FLAG_NON_FIPS_ALLOW) - || !(ctx->o_ctx.flags & EVP_MD_CTX_FLAG_NON_FIPS_ALLOW))) - OpenSSLDie(__FILE__,__LINE__, - "HMAC: digest not allowed in FIPS mode"); -#endif - reset=1; j=EVP_MD_block_size(md); OPENSSL_assert(j <= sizeof ctx->key); -- 2.25.1