]> granicus.if.org Git - curl/commitdiff
MD(4|5): make the MD4_* and MD5_* functions static
authorDaniel Stenberg <daniel@haxx.se>
Fri, 6 Feb 2015 13:26:01 +0000 (14:26 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 6 Feb 2015 13:26:32 +0000 (14:26 +0100)
lib/md4.c
lib/md5.c

index 15dfdd3271f416112a1bfab5df9083fe65d64f71..60f73a28bb203f35cde1008cc2ac32dfa9c2bd36 100644 (file)
--- a/lib/md4.c
+++ b/lib/md4.c
@@ -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;
 
index 7c80f4184785af44b7dd04d61e7883d065f8672d..3738d7a02fe5f8fce6886b80d80bb294ced1e82b 100644 (file)
--- 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;