summaryrefslogtreecommitdiff
path: root/lib/md5.c
diff options
context:
space:
mode:
authorRuben Kerkhof <ruben@rubenkerkhof.com>2019-01-24 10:12:36 +0100
committerRuben Kerkhof <ruben@rubenkerkhof.com>2019-01-24 11:21:59 +0100
commit4d762f2607f07b55f464bae4ec0eb7fdf7c656a9 (patch)
treec8e9c8056c9fec104ec152ccf254c282fa6a90c6 /lib/md5.c
parent262d4dda2aa009f200370a4c4635899ceb85ab90 (diff)
Treewide: use ANSI function definitions
Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
Diffstat (limited to 'lib/md5.c')
-rw-r--r--lib/md5.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/md5.c b/lib/md5.c
index 8989a93c59..5a3e7c8d1b 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -375,13 +375,8 @@ static void md5_calc(const uint8_t *b64, md5_ctxt *ctxt)
}
/* From RFC 2104 */
-void hmac_md5(text, text_len, key, key_len,
- digest) unsigned char *text; /* pointer to data stream */
-int text_len; /* length of data stream */
-unsigned char *key; /* pointer to authentication key */
-int key_len; /* length of authentication key */
-uint8_t *digest; /* caller digest to be filled in */
-
+void hmac_md5(unsigned char *text, int text_len, unsigned char *key,
+ int key_len, uint8_t *digest)
{
MD5_CTX context;
unsigned char k_ipad[65]; /* inner padding -