]> Pileus Git - ~andy/fetchmail/blobdiff - md5ify.c
Fix typo repsonsible -> responsible.
[~andy/fetchmail] / md5ify.c
index da4337be2a5653c0bce73a94c36758bc5848688d..41dd2e7ae35457cdea5ee3f1e8441937d40bb3fa 100644 (file)
--- a/md5ify.c
+++ b/md5ify.c
@@ -1,27 +1,24 @@
-/* Copyright 1993-95 by Carl Harris, Jr. Copyright 1996 by Eric S. Raymond
- * All rights reserved.
+/*
  * For license terms, see the file COPYING in this directory.
  */
 
 /***********************************************************************
   module:       md5ify.c
-  project:      popclient
+  project:      fetchmail
   programmer:   Carl Harris, ceharris@mal.com
   description:  Simple interface to MD5 module.
 
  ***********************************************************************/
 
 #include <stdio.h>
-
-#if defined(STDC_HEADERS)
 #include <string.h>
-#endif
+#include <string.h>
 
-#include "md5.h"
+#include "fetchmail.h"
+#include "fm_md5.h"
 
 char *
-MD5Digest (s)
-char *s;
+MD5Digest (unsigned const char *s)
 {
   int i;
   MD5_CTX context;
@@ -29,9 +26,9 @@ char *s;
   static char ascii_digest [33];
 
   MD5Init(&context);
-  MD5Update(&context, s, strlen(s));
+  MD5Update(&context, s, strlen((const char *)s));
   MD5Final(digest, &context);
-  
+
   for (i = 0;  i < 16;  i++) 
     sprintf(ascii_digest+2*i, "%02x", digest[i]);