aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2020-02-25 22:40:28 +0000
committerSteve Holme <steve_holme@hotmail.com>2020-02-29 20:53:04 +0000
commit5aea558dc871b6ec231ad9d4b8a7478e15a2ba79 (patch)
treed33036a9e62e4ad00a4c005d73c2c1232f8327d6
parentf0ec0e902a9579227550f18ebdb5bbee50c3aca8 (diff)
md5: Use pointer notation for array parameters in GnuTLS implementation
-rw-r--r--lib/md5.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/md5.c b/lib/md5.c
index f6fdb48ac..a450b8394 100644
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -51,7 +51,7 @@ static void MD5_Update(MD5_CTX *ctx,
md5_update(ctx, inputLen, input);
}
-static void MD5_Final(unsigned char digest[16], MD5_CTX *ctx)
+static void MD5_Final(unsigned char *digest, MD5_CTX *ctx)
{
md5_digest(ctx, 16, digest);
}
@@ -77,7 +77,7 @@ static void MD5_Update(MD5_CTX *ctx,
gcry_md_write(*ctx, input, inputLen);
}
-static void MD5_Final(unsigned char digest[16], MD5_CTX *ctx)
+static void MD5_Final(unsigned char *digest, MD5_CTX *ctx)
{
memcpy(digest, gcry_md_read(*ctx, 0), 16);
gcry_md_close(*ctx);
@@ -119,7 +119,7 @@ static void MD5_Update(MD5_CTX *ctx,
CC_MD5_Update(ctx, input, inputLen);
}
-static void MD5_Final(unsigned char digest[16], MD5_CTX *ctx)
+static void MD5_Final(unsigned char *digest, MD5_CTX *ctx)
{
CC_MD5_Final(digest, ctx);
}
@@ -151,7 +151,7 @@ static void MD5_Update(MD5_CTX *ctx,
CryptHashData(ctx->hHash, (unsigned char *)input, inputLen, 0);
}
-static void MD5_Final(unsigned char digest[16], MD5_CTX *ctx)
+static void MD5_Final(unsigned char *digest, MD5_CTX *ctx)
{
unsigned long length = 0;
CryptGetHashParam(ctx->hHash, HP_HASHVAL, NULL, &length, 0);