Rename FIPS_mode_set and FIPS_mode. Theses symbols will be defined in
[openssl.git] / fips / utl / fips_md.c
index 556267994c1f3be591b9be517c3b62152f53cd4f..8bc028ab3f731b4a14944baf4bb0439f9aadf1e7 100644 (file)
@@ -173,7 +173,7 @@ int FIPS_digestinit(EVP_MD_CTX *ctx, const EVP_MD *type)
                ctx->digest = &bad_md;
                return 0;
                }
-       if(FIPS_mode() && !(type->flags & EVP_MD_FLAG_FIPS) &&
+       if(FIPS_module_mode() && !(type->flags & EVP_MD_FLAG_FIPS) &&
                !(ctx->flags & EVP_MD_CTX_FLAG_NON_FIPS_ALLOW))
                {
                EVPerr(EVP_F_FIPS_DIGESTINIT, EVP_R_DISABLED_FOR_FIPS);