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/ripemd | |
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/ripemd')
-rw-r--r-- | crypto/ripemd/ripemd.h | 6 | ||||
-rw-r--r-- | crypto/ripemd/rmd_dgst.c | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/crypto/ripemd/ripemd.h b/crypto/ripemd/ripemd.h index 67a94555f7..78d5f36560 100644 --- a/crypto/ripemd/ripemd.h +++ b/crypto/ripemd/ripemd.h @@ -90,9 +90,9 @@ typedef struct RIPEMD160state_st int num; } RIPEMD160_CTX; -void RIPEMD160_Init(RIPEMD160_CTX *c); -void RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, unsigned long len); -void RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c); +int RIPEMD160_Init(RIPEMD160_CTX *c); +int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, unsigned long len); +int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c); unsigned char *RIPEMD160(const unsigned char *d, unsigned long n, unsigned char *md); void RIPEMD160_Transform(RIPEMD160_CTX *c, const unsigned char *b); diff --git a/crypto/ripemd/rmd_dgst.c b/crypto/ripemd/rmd_dgst.c index bdfae270b6..a3170f7c8a 100644 --- a/crypto/ripemd/rmd_dgst.c +++ b/crypto/ripemd/rmd_dgst.c @@ -69,7 +69,7 @@ const char *RMD160_version="RIPE-MD160" OPENSSL_VERSION_PTEXT; void ripemd160_block(RIPEMD160_CTX *c, unsigned long *p,int num); # endif -void RIPEMD160_Init(RIPEMD160_CTX *c) +int RIPEMD160_Init(RIPEMD160_CTX *c) { c->A=RIPEMD160_A; c->B=RIPEMD160_B; @@ -79,6 +79,7 @@ void RIPEMD160_Init(RIPEMD160_CTX *c) c->Nl=0; c->Nh=0; c->num=0; + return 1; } #ifndef ripemd160_block_host_order |