]> mj.ucw.cz Git - libucw.git/blobdiff - lib/md5hex.c
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
[libucw.git] / lib / md5hex.c
index af284fa1d02926b7f5d24855ba7041d0a7cc58a4..93987b00a13246de55581ded5dd415dae163b10a 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- *     Sherlock Library -- MD5 Binary <-> Hex Conversions
+ *     UCW Library -- MD5 Binary <-> Hex Conversions
  *
  *     (c) 1997 Martin Mares <mj@ucw.cz>
  *
  *
  *     (c) 1997 Martin Mares <mj@ucw.cz>
  *
@@ -13,7 +13,7 @@
 #include <stdio.h>
 
 void
 #include <stdio.h>
 
 void
-md5_to_hex(byte *s, byte *d)
+md5_to_hex(const byte *s, char *d)
 {
   int i;
   for(i=0; i<MD5_SIZE; i++)
 {
   int i;
   for(i=0; i<MD5_SIZE; i++)
@@ -21,7 +21,7 @@ md5_to_hex(byte *s, byte *d)
 }
 
 void
 }
 
 void
-hex_to_md5(byte *s, byte *d)
+hex_to_md5(const char *s, byte *d)
 {
   uns i, j;
   for(i=0; i<MD5_SIZE; i++)
 {
   uns i, j;
   for(i=0; i<MD5_SIZE; i++)