diff options
author | Ben Laurie <ben@openssl.org> | 1999-05-15 18:03:26 +0200 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-05-15 18:03:26 +0200 |
commit | ac7d07851c1dbbf42496ab1177a5c19a0e6693d8 (patch) | |
tree | 09a0b84636bae0fa9121629b0168d813cfecb06a /crypto/md5 | |
parent | Add actual testing to bntest... (diff) | |
download | openssl-ac7d07851c1dbbf42496ab1177a5c19a0e6693d8.tar.xz openssl-ac7d07851c1dbbf42496ab1177a5c19a0e6693d8.zip |
Get rid of casts.
Diffstat (limited to 'crypto/md5')
-rw-r--r-- | crypto/md5/md5.h | 2 | ||||
-rw-r--r-- | crypto/md5/md5_dgst.c | 5 | ||||
-rw-r--r-- | crypto/md5/md5_locl.h | 6 |
3 files changed, 7 insertions, 6 deletions
diff --git a/crypto/md5/md5.h b/crypto/md5/md5.h index 148fb963d4..bdab6d45e8 100644 --- a/crypto/md5/md5.h +++ b/crypto/md5/md5.h @@ -106,7 +106,7 @@ void MD5_Init(MD5_CTX *c); void MD5_Update(MD5_CTX *c, const unsigned char *data, unsigned long len); void MD5_Final(unsigned char *md, MD5_CTX *c); unsigned char *MD5(unsigned char *d, unsigned long n, unsigned char *md); -void MD5_Transform(MD5_CTX *c, unsigned char *b); +void MD5_Transform(MD5_CTX *c, const unsigned char *b); #ifdef __cplusplus } #endif diff --git a/crypto/md5/md5_dgst.c b/crypto/md5/md5_dgst.c index 830e04d02a..bab309b3fb 100644 --- a/crypto/md5/md5_dgst.c +++ b/crypto/md5/md5_dgst.c @@ -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,7 +186,7 @@ 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) { register unsigned long A,B,C,D,l; /* diff --git a/crypto/md5/md5_locl.h b/crypto/md5/md5_locl.h index 1647683069..510e5735e1 100644 --- a/crypto/md5/md5_locl.h +++ b/crypto/md5/md5_locl.h @@ -73,8 +73,8 @@ # endif #endif -void md5_block_host_order (MD5_CTX *c, const MD5_LONG *p,int num); -void md5_block_data_order (MD5_CTX *c, const unsigned char *p,int num); +void md5_block_host_order (MD5_CTX *c, const void *p,int num); +void md5_block_data_order (MD5_CTX *c, const void *p,int num); #if defined(__i386) /* @@ -98,7 +98,7 @@ void md5_block_data_order (MD5_CTX *c, const unsigned char *p,int num); * * <appro@fy.chalmers.se> */ -#define md5_block_data_order(c,p,num) md5_block_host_order((c),(const MD5_LONG *)(p),(num)) +#define md5_block_data_order md5_block_host_order #endif #define DATA_ORDER_IS_LITTLE_ENDIAN |