From 2a15e594efa8a7e84cac7f4579afc0bd90f2bf11 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 6 Feb 2015 14:26:01 +0100 Subject: MD(4|5): make the MD4_* and MD5_* functions static --- lib/md5.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/md5.c') diff --git a/lib/md5.c b/lib/md5.c index 7c80f4184..3738d7a02 100644 --- a/lib/md5.c +++ b/lib/md5.c @@ -208,9 +208,9 @@ typedef struct { MD5_u32plus block[16]; } MD5_CTX; -extern void MD5_Init(MD5_CTX *ctx); -extern void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size); -extern void MD5_Final(unsigned char *result, MD5_CTX *ctx); +static void MD5_Init(MD5_CTX *ctx); +static void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size); +static void MD5_Final(unsigned char *result, MD5_CTX *ctx); /* * The basic MD5 functions. @@ -368,7 +368,7 @@ static const void *body(MD5_CTX *ctx, const void *data, unsigned long size) return ptr; } -void MD5_Init(MD5_CTX *ctx) +static void MD5_Init(MD5_CTX *ctx) { ctx->a = 0x67452301; ctx->b = 0xefcdab89; @@ -379,7 +379,7 @@ void MD5_Init(MD5_CTX *ctx) ctx->hi = 0; } -void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size) +static void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size) { MD5_u32plus saved_lo; unsigned long used, available; @@ -413,7 +413,7 @@ void MD5_Update(MD5_CTX *ctx, const void *data, unsigned long size) memcpy(ctx->buffer, data, size); } -void MD5_Final(unsigned char *result, MD5_CTX *ctx) +static void MD5_Final(unsigned char *result, MD5_CTX *ctx) { unsigned long used, available; -- cgit v1.2.3