summaryrefslogtreecommitdiff
path: root/src/crypt/crypt_md5.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2013-01-13 23:18:32 +0100
committerSzabolcs Nagy <nsz@port70.net>2013-01-13 23:18:32 +0100
commit30779ee1aa7601eb4bd7409809a8a4f06d2a4360 (patch)
treece10ba32cf7e36fbe4ce8dfb1934d0924941364b /src/crypt/crypt_md5.c
parenta753f7fe7a7b31acdf2beddeca23ccdbd38f0a2e (diff)
downloadmusl-30779ee1aa7601eb4bd7409809a8a4f06d2a4360.tar.gz
crypt: fix the prototype of md5_sum, sha256_sum and sha512_sum
the internal sha2 hash sum functions had incorrect array size in the prototype for the message digest argument, fixed by using pointer so it is not misleading
Diffstat (limited to 'src/crypt/crypt_md5.c')
-rw-r--r--src/crypt/crypt_md5.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypt/crypt_md5.c b/src/crypt/crypt_md5.c
index 02f22444..70ab8b99 100644
--- a/src/crypt/crypt_md5.c
+++ b/src/crypt/crypt_md5.c
@@ -118,7 +118,7 @@ static void md5_init(struct md5 *s)
s->h[3] = 0x10325476;
}
-static void md5_sum(struct md5 *s, uint8_t md[16])
+static void md5_sum(struct md5 *s, uint8_t *md)
{
int i;