Source code cleanups: Use void * rather than char * in lhash,
[openssl.git] / crypto / md5 / md5_dgst.c
index 830e04d02a13345304e7e1859a7ba26830699709..9ff9f938ccf8fe6cecef68e14215597c81f2765e 100644 (file)
@@ -60,7 +60,7 @@
 #include "md5_locl.h"
 #include <openssl/opensslv.h>
 
-char *MD5_version="MD5" OPENSSL_VERSION_PTEXT;
+const char *MD5_version="MD5" OPENSSL_VERSION_PTEXT;
 
 /* Implemented from RFC1321 The MD5 Message-Digest Algorithm
  */
@@ -82,8 +82,9 @@ void MD5_Init(MD5_CTX *c)
        }
 
 #ifndef md5_block_host_order
-void md5_block_host_order (MD5_CTX *c, const MD5_LONG *X, int num)
+void md5_block_host_order (MD5_CTX *c, const void *data, int num)
        {
+       const MD5_LONG *X=data;
        register unsigned long A,B,C,D;
        /*
         * In case you wonder why A-D are declared as long and not
@@ -185,8 +186,9 @@ void md5_block_host_order (MD5_CTX *c, const MD5_LONG *X, int num)
 #endif
 
 #ifndef md5_block_data_order
-void md5_block_data_order (MD5_CTX *c, const unsigned char *data, int num)
+void md5_block_data_order (MD5_CTX *c, const void *data_, int num)
        {
+       const unsigned char *data=data_;
        register unsigned long A,B,C,D,l;
        /*
         * In case you wonder why A-D are declared as long and not