diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2001-03-08 14:04:22 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2001-03-08 14:04:22 +0000 |
commit | 2dc769a1c17e1e0c7aef6e11496c8ba2c1db2e28 (patch) | |
tree | 47bc3c6bf378e59f79c418f9956b6ed03fc4c805 /crypto/md4 | |
parent | 4f98cbabdeb50d548c83a8ca36014f3011461379 (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/md4')
-rw-r--r-- | crypto/md4/md4.h | 6 | ||||
-rw-r--r-- | crypto/md4/md4_dgst.c | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/crypto/md4/md4.h b/crypto/md4/md4.h index 8a9326d994..7a7b23682f 100644 --- a/crypto/md4/md4.h +++ b/crypto/md4/md4.h @@ -104,9 +104,9 @@ typedef struct MD4state_st int num; } MD4_CTX; -void MD4_Init(MD4_CTX *c); -void MD4_Update(MD4_CTX *c, const void *data, unsigned long len); -void MD4_Final(unsigned char *md, MD4_CTX *c); +int MD4_Init(MD4_CTX *c); +int MD4_Update(MD4_CTX *c, const void *data, unsigned long len); +int MD4_Final(unsigned char *md, MD4_CTX *c); unsigned char *MD4(const unsigned char *d, unsigned long n, unsigned char *md); void MD4_Transform(MD4_CTX *c, const unsigned char *b); #ifdef __cplusplus diff --git a/crypto/md4/md4_dgst.c b/crypto/md4/md4_dgst.c index 81488ae2e2..6446f5f5e7 100644 --- a/crypto/md4/md4_dgst.c +++ b/crypto/md4/md4_dgst.c @@ -70,7 +70,7 @@ const char *MD4_version="MD4" OPENSSL_VERSION_PTEXT; #define INIT_DATA_C (unsigned long)0x98badcfeL #define INIT_DATA_D (unsigned long)0x10325476L -void MD4_Init(MD4_CTX *c) +int MD4_Init(MD4_CTX *c) { c->A=INIT_DATA_A; c->B=INIT_DATA_B; @@ -79,6 +79,7 @@ void MD4_Init(MD4_CTX *c) c->Nl=0; c->Nh=0; c->num=0; + return 1; } #ifndef md4_block_host_order |