projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fake CPU caps so fips_standalone_sha1 compiles.
[openssl.git]
/
fips
/
utl
/
fips_md.c
diff --git
a/fips/utl/fips_md.c
b/fips/utl/fips_md.c
index 8bc028ab3f731b4a14944baf4bb0439f9aadf1e7..d3db1c71880a23fd7b8d408bbf0d3e1b66e7cf83 100644
(file)
--- a/
fips/utl/fips_md.c
+++ b/
fips/utl/fips_md.c
@@
-171,6
+171,7
@@
int FIPS_digestinit(EVP_MD_CTX *ctx, const EVP_MD *type)
{
FIPSerr(FIPS_F_FIPS_DIGESTINIT,FIPS_R_FIPS_SELFTEST_FAILED);
ctx->digest = &bad_md;
{
FIPSerr(FIPS_F_FIPS_DIGESTINIT,FIPS_R_FIPS_SELFTEST_FAILED);
ctx->digest = &bad_md;
+ ctx->update = bad_update;
return 0;
}
if(FIPS_module_mode() && !(type->flags & EVP_MD_FLAG_FIPS) &&
return 0;
}
if(FIPS_module_mode() && !(type->flags & EVP_MD_FLAG_FIPS) &&
@@
-178,6
+179,7
@@
int FIPS_digestinit(EVP_MD_CTX *ctx, const EVP_MD *type)
{
EVPerr(EVP_F_FIPS_DIGESTINIT, EVP_R_DISABLED_FOR_FIPS);
ctx->digest = &bad_md;
{
EVPerr(EVP_F_FIPS_DIGESTINIT, EVP_R_DISABLED_FOR_FIPS);
ctx->digest = &bad_md;
+ ctx->update = bad_update;
return 0;
}
if (ctx->digest != type)
return 0;
}
if (ctx->digest != type)