summaryrefslogtreecommitdiff
path: root/include/apr_md5.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/apr_md5.h')
-rw-r--r--include/apr_md5.h12
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);