diff options
Diffstat (limited to 'src/lib/libcrypto/md5/md5.h')
-rw-r--r-- | src/lib/libcrypto/md5/md5.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/lib/libcrypto/md5/md5.h b/src/lib/libcrypto/md5/md5.h index c663dd1816..dbdc0e1abc 100644 --- a/src/lib/libcrypto/md5/md5.h +++ b/src/lib/libcrypto/md5/md5.h | |||
@@ -60,6 +60,7 @@ | |||
60 | #define HEADER_MD5_H | 60 | #define HEADER_MD5_H |
61 | 61 | ||
62 | #include <openssl/e_os2.h> | 62 | #include <openssl/e_os2.h> |
63 | #include <stddef.h> | ||
63 | 64 | ||
64 | #ifdef __cplusplus | 65 | #ifdef __cplusplus |
65 | extern "C" { | 66 | extern "C" { |
@@ -101,16 +102,13 @@ typedef struct MD5state_st | |||
101 | MD5_LONG A,B,C,D; | 102 | MD5_LONG A,B,C,D; |
102 | MD5_LONG Nl,Nh; | 103 | MD5_LONG Nl,Nh; |
103 | MD5_LONG data[MD5_LBLOCK]; | 104 | MD5_LONG data[MD5_LBLOCK]; |
104 | int num; | 105 | unsigned int num; |
105 | } MD5_CTX; | 106 | } MD5_CTX; |
106 | 107 | ||
107 | #ifdef OPENSSL_FIPS | ||
108 | int private_MD5_Init(MD5_CTX *c); | ||
109 | #endif | ||
110 | int MD5_Init(MD5_CTX *c); | 108 | int MD5_Init(MD5_CTX *c); |
111 | int MD5_Update(MD5_CTX *c, const void *data, unsigned long len); | 109 | int MD5_Update(MD5_CTX *c, const void *data, size_t len); |
112 | int MD5_Final(unsigned char *md, MD5_CTX *c); | 110 | int MD5_Final(unsigned char *md, MD5_CTX *c); |
113 | unsigned char *MD5(const unsigned char *d, unsigned long n, unsigned char *md); | 111 | unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); |
114 | void MD5_Transform(MD5_CTX *c, const unsigned char *b); | 112 | void MD5_Transform(MD5_CTX *c, const unsigned char *b); |
115 | #ifdef __cplusplus | 113 | #ifdef __cplusplus |
116 | } | 114 | } |