spelling corrections.
authoraland <aland>
Tue, 17 Aug 1999 18:19:19 +0000 (18:19 +0000)
committeraland <aland>
Tue, 17 Aug 1999 18:19:19 +0000 (18:19 +0000)
make MD5Foo static, so they won't get confused with (say)
stupid evil Solaris nasty broken MD5 implementation.

src/include/md5.h
src/lib/md5.c
src/lib/valuepair.c

index 5b6560a..2098f2c 100644 (file)
@@ -69,8 +69,7 @@ typedef struct {
   unsigned char buffer[64];                         /* input buffer */
 } MD5_CTX;
 
-void MD5Init PROTO_LIST ((MD5_CTX *));
-void MD5Update PROTO_LIST
+static void MD5Init PROTO_LIST ((MD5_CTX *));
+static void MD5Update PROTO_LIST
   ((MD5_CTX *, unsigned char *, unsigned int));
-void MD5Final PROTO_LIST ((unsigned char [16], MD5_CTX *));
-
+static void MD5Final PROTO_LIST ((unsigned char [16], MD5_CTX *));
index 053b0d6..455ff00 100644 (file)
@@ -107,7 +107,7 @@ unsigned int inlen;                     /* length of input block */
 
 /* MD5 initialization. Begins an MD5 operation, writing a new context.
  */
-void MD5Init (context)
+static void MD5Init (context)
 MD5_CTX *context;                                        /* context */
 {
   context->count[0] = context->count[1] = 0;
@@ -123,7 +123,7 @@ MD5_CTX *context;                                        /* context */
   operation, processing another message block, and updating the
   context.
  */
-void MD5Update (context, input, inputLen)
+static void MD5Update (context, input, inputLen)
 MD5_CTX *context;                                        /* context */
 unsigned char *input;                                /* input block */
 unsigned int inputLen;                     /* length of input block */
@@ -165,7 +165,7 @@ unsigned int inputLen;                     /* length of input block */
 /* MD5 finalization. Ends an MD5 message-digest operation, writing the
   the message digest and zeroizing the context.
  */
-void MD5Final (digest, context)
+static void MD5Final (digest, context)
 unsigned char digest[16];                         /* message digest */
 MD5_CTX *context;                                       /* context */
 {
index c8bba74..5744cd2 100644 (file)
@@ -79,7 +79,7 @@ void pairfree(VALUE_PAIR *pair)
 
 
 /*
- *     Find the pair with the mathing attribute
+ *     Find the pair with the matching attribute
  */
 VALUE_PAIR * pairfind(VALUE_PAIR *first, int attr)
 {
@@ -90,7 +90,7 @@ VALUE_PAIR * pairfind(VALUE_PAIR *first, int attr)
 
 
 /*
- *     Delete the pair(s) with the mathing attribute
+ *     Delete the pair(s) with the matching attribute
  */
 void pairdelete(VALUE_PAIR **first, int attr)
 {