projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename FIPS_mode_set and FIPS_mode. Theses symbols will be defined in
[openssl.git]
/
fips
/
utl
/
fips_md.c
diff --git
a/fips/utl/fips_md.c
b/fips/utl/fips_md.c
index 556267994c1f3be591b9be517c3b62152f53cd4f..8bc028ab3f731b4a14944baf4bb0439f9aadf1e7 100644
(file)
--- a/
fips/utl/fips_md.c
+++ b/
fips/utl/fips_md.c
@@
-173,7
+173,7
@@
int FIPS_digestinit(EVP_MD_CTX *ctx, const EVP_MD *type)
ctx->digest = &bad_md;
return 0;
}
ctx->digest = &bad_md;
return 0;
}
- if(FIPS_mode() && !(type->flags & EVP_MD_FLAG_FIPS) &&
+ if(FIPS_mod
ule_mod
e() && !(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);
!(ctx->flags & EVP_MD_CTX_FLAG_NON_FIPS_ALLOW))
{
EVPerr(EVP_F_FIPS_DIGESTINIT, EVP_R_DISABLED_FOR_FIPS);