aboutsummaryrefslogtreecommitdiff
path: root/md5.h
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2017-12-02 22:10:47 +0100
committerToni Uhlig <matzeton@googlemail.com>2017-12-02 22:10:47 +0100
commitb499c7305cee6942dc037f34b2e37489f501da47 (patch)
treee4557a1d8189189aa91430152ff95954e55b88ca /md5.h
parentc5b0c7e5aa15cd14c1fd47fe2404a71ef6578543 (diff)
ptunnel-ng:
* option parsing * refactoring
Diffstat (limited to 'md5.h')
-rwxr-xr-xmd5.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/md5.h b/md5.h
index e2804fe..f9fdeb4 100755
--- a/md5.h
+++ b/md5.h
@@ -62,6 +62,7 @@
typedef unsigned char md5_byte_t; /* 8-bit byte */
typedef unsigned int md5_word_t; /* 32-bit word */
+#define MD5_LEN 16
/* Define the state of the MD5 Algorithm. */
typedef struct md5_state_s {
@@ -82,7 +83,7 @@ void md5_init(md5_state_t *pms);
void md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes);
/* Finish the message and return the digest. */
-void md5_finish(md5_state_t *pms, md5_byte_t digest[16]);
+void md5_finish(md5_state_t *pms, md5_byte_t digest[MD5_LEN]);
#ifdef __cplusplus
} /* end extern "C" */