]> mj.ucw.cz Git - libucw.git/blobdiff - lib/md5hex.c
Cleaned up tracing levels. Array sorter now has its own control knob.
[libucw.git] / lib / md5hex.c
index 08ce0e8a33d9bfe1c5ec802250c4062cd54a968a..93987b00a13246de55581ded5dd415dae163b10a 100644 (file)
@@ -1,7 +1,10 @@
 /*
- *     Sherlock Library -- MD5 Binary <-> Hex Conversions
+ *     UCW Library -- MD5 Binary <-> Hex Conversions
  *
  *     (c) 1997 Martin Mares <mj@ucw.cz>
+ *
+ *     This software may be freely distributed and used according to the terms
+ *     of the GNU Lesser General Public License.
  */
 
 #include "lib/lib.h"
@@ -10,7 +13,7 @@
 #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++)
@@ -18,7 +21,7 @@ md5_to_hex(byte *s, byte *d)
 }
 
 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++)