diff options
author | Roy T. Fielding <fielding@apache.org> | 2000-04-23 02:32:57 +0000 |
---|---|---|
committer | Roy T. Fielding <fielding@apache.org> | 2000-04-23 02:32:57 +0000 |
commit | d7f547428d6466e8c8d6f68f1ebbf02026a41878 (patch) | |
tree | 1346063c2d6474dca20e166ecdd9d7a3f0c412a3 /include/apr_md5.h | |
parent | ceba48455a5860f4796c12aea17f43e59f54bc0a (diff) | |
download | apr-d7f547428d6466e8c8d6f68f1ebbf02026a41878.tar.gz |
Finished move of ap_md5 routines to apr_md5. Removed ap_md5.h.
Replaced more magic numbers with MD5_DIGESTSIZE. Yuck.
Submitted by: William Rowe, Roy Fielding
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59935 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_md5.h')
-rw-r--r-- | include/apr_md5.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/apr_md5.h b/include/apr_md5.h index 4c394fd63..8f2506bc4 100644 --- a/include/apr_md5.h +++ b/include/apr_md5.h @@ -91,7 +91,7 @@ extern "C" { #endif -/* MD5.H - header file for MD5C.C */ +#define MD5_DIGESTSIZE 16 /* UINT4 defines a four byte word */ typedef unsigned int UINT4; @@ -101,14 +101,14 @@ typedef struct { UINT4 state[4]; /* state (ABCD) */ UINT4 count[2]; /* number of bits, modulo 2^64 (lsb first) */ unsigned char buffer[64]; /* input buffer */ -} ap_MD5_ctx_t; +} ap_md5_ctx_t; -API_EXPORT(ap_status_t) ap_MD5Init(ap_MD5_ctx_t * context); -API_EXPORT(ap_status_t) ap_MD5Update(ap_MD5_ctx_t *context, +API_EXPORT(ap_status_t) ap_MD5Init(ap_md5_ctx_t *context); +API_EXPORT(ap_status_t) ap_MD5Update(ap_md5_ctx_t *context, const unsigned char *input, unsigned int inputLen); -API_EXPORT(ap_status_t) ap_MD5Final(unsigned char digest[16], - ap_MD5_ctx_t *context); +API_EXPORT(ap_status_t) ap_MD5Final(unsigned char digest[MD5_DIGESTSIZE], + ap_md5_ctx_t *context); API_EXPORT(ap_status_t) ap_MD5Encode(const char *password, const char *salt, char *result, size_t nbytes); |