]> granicus.if.org Git - openssl/commitdiff
Remove unnecessary code.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 3 May 2005 11:56:09 +0000 (11:56 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 3 May 2005 11:56:09 +0000 (11:56 +0000)
crypto/hmac/hmac.c

index 2df670f245954d3e1ef7b3bec1d59b74ce31e06f..6c110bd52bb204ca637a6f88b066e932116ae90b 100644 (file)
@@ -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);