summaryrefslogtreecommitdiffstats
path: root/crypto/sha/sha_locl.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2001-03-08 14:04:22 +0000
committerDr. Stephen Henson <steve@openssl.org>2001-03-08 14:04:22 +0000
commit2dc769a1c17e1e0c7aef6e11496c8ba2c1db2e28 (patch)
tree47bc3c6bf378e59f79c418f9956b6ed03fc4c805 /crypto/sha/sha_locl.h
parent4f98cbabdeb50d548c83a8ca36014f3011461379 (diff)
Make EVP_Digest*() routines return a value.
TODO: update docs, and make soe other routines which use EVP_Digest*() check return codes.
Diffstat (limited to 'crypto/sha/sha_locl.h')
-rw-r--r--crypto/sha/sha_locl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/sha/sha_locl.h b/crypto/sha/sha_locl.h
index 2f8aef83f3..36d3ec2616 100644
--- a/crypto/sha/sha_locl.h
+++ b/crypto/sha/sha_locl.h
@@ -138,7 +138,7 @@
#define INIT_DATA_h3 0x10325476UL
#define INIT_DATA_h4 0xc3d2e1f0UL
-void HASH_INIT (SHA_CTX *c)
+int HASH_INIT (SHA_CTX *c)
{
c->h0=INIT_DATA_h0;
c->h1=INIT_DATA_h1;
@@ -148,6 +148,7 @@ void HASH_INIT (SHA_CTX *c)
c->Nl=0;
c->Nh=0;
c->num=0;
+ return 1;
}
#define K_00_19 0x5a827999UL