diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-02-06 14:26:01 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-02-06 14:26:32 +0100 |
commit | 2a15e594efa8a7e84cac7f4579afc0bd90f2bf11 (patch) | |
tree | 149922463ea2964458efbc72426cf16b19215eb5 /lib/md4.c | |
parent | d557da5d79821e2f5b3fef081a52978221159a30 (diff) | |
download | curl-2a15e594efa8a7e84cac7f4579afc0bd90f2bf11.tar.gz |
MD(4|5): make the MD4_* and MD5_* functions static
Diffstat (limited to 'lib/md4.c')
-rw-r--r-- | lib/md4.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -58,9 +58,9 @@ typedef struct { MD4_u32plus block[16]; } MD4_CTX; -extern void MD4_Init(MD4_CTX *ctx); -extern void MD4_Update(MD4_CTX *ctx, const void *data, unsigned long size); -extern void MD4_Final(unsigned char *result, MD4_CTX *ctx); +static void MD4_Init(MD4_CTX *ctx); +static void MD4_Update(MD4_CTX *ctx, const void *data, unsigned long size); +static void MD4_Final(unsigned char *result, MD4_CTX *ctx); /* * The basic MD4 functions. @@ -196,7 +196,7 @@ static const void *body(MD4_CTX *ctx, const void *data, unsigned long size) return ptr; } -void MD4_Init(MD4_CTX *ctx) +static void MD4_Init(MD4_CTX *ctx) { ctx->a = 0x67452301; ctx->b = 0xefcdab89; @@ -207,7 +207,7 @@ void MD4_Init(MD4_CTX *ctx) ctx->hi = 0; } -void MD4_Update(MD4_CTX *ctx, const void *data, unsigned long size) +static void MD4_Update(MD4_CTX *ctx, const void *data, unsigned long size) { MD4_u32plus saved_lo; unsigned long used, available; @@ -241,7 +241,7 @@ void MD4_Update(MD4_CTX *ctx, const void *data, unsigned long size) memcpy(ctx->buffer, data, size); } -void MD4_Final(unsigned char *result, MD4_CTX *ctx) +static void MD4_Final(unsigned char *result, MD4_CTX *ctx) { unsigned long used, available; |