From: Dr. Stephen Henson Date: Tue, 3 May 2005 11:56:09 +0000 (+0000) Subject: Remove unnecessary code. X-Git-Tag: BEN_FIPS_TEST_8~46 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f07320eae073dcaa866ec35dfe5f3708a3c43fee;p=oweals%2Fopenssl.git Remove unnecessary code. --- 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);