diff options
Diffstat (limited to 'src/lib/libcrypto/md2/md2.h')
-rw-r--r-- | src/lib/libcrypto/md2/md2.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/lib/libcrypto/md2/md2.h b/src/lib/libcrypto/md2/md2.h index d0ef9da08e..a46120e7d4 100644 --- a/src/lib/libcrypto/md2/md2.h +++ b/src/lib/libcrypto/md2/md2.h | |||
@@ -59,13 +59,14 @@ | |||
59 | #ifndef HEADER_MD2_H | 59 | #ifndef HEADER_MD2_H |
60 | #define HEADER_MD2_H | 60 | #define HEADER_MD2_H |
61 | 61 | ||
62 | #include <openssl/opensslconf.h> /* OPENSSL_NO_MD2, MD2_INT */ | ||
62 | #ifdef OPENSSL_NO_MD2 | 63 | #ifdef OPENSSL_NO_MD2 |
63 | #error MD2 is disabled. | 64 | #error MD2 is disabled. |
64 | #endif | 65 | #endif |
66 | #include <stddef.h> | ||
65 | 67 | ||
66 | #define MD2_DIGEST_LENGTH 16 | 68 | #define MD2_DIGEST_LENGTH 16 |
67 | #define MD2_BLOCK 16 | 69 | #define MD2_BLOCK 16 |
68 | #include <openssl/opensslconf.h> /* MD2_INT */ | ||
69 | 70 | ||
70 | #ifdef __cplusplus | 71 | #ifdef __cplusplus |
71 | extern "C" { | 72 | extern "C" { |
@@ -73,20 +74,17 @@ extern "C" { | |||
73 | 74 | ||
74 | typedef struct MD2state_st | 75 | typedef struct MD2state_st |
75 | { | 76 | { |
76 | int num; | 77 | unsigned int num; |
77 | unsigned char data[MD2_BLOCK]; | 78 | unsigned char data[MD2_BLOCK]; |
78 | MD2_INT cksm[MD2_BLOCK]; | 79 | MD2_INT cksm[MD2_BLOCK]; |
79 | MD2_INT state[MD2_BLOCK]; | 80 | MD2_INT state[MD2_BLOCK]; |
80 | } MD2_CTX; | 81 | } MD2_CTX; |
81 | 82 | ||
82 | const char *MD2_options(void); | 83 | const char *MD2_options(void); |
83 | #ifdef OPENSSL_FIPS | ||
84 | int private_MD2_Init(MD2_CTX *c); | ||
85 | #endif | ||
86 | int MD2_Init(MD2_CTX *c); | 84 | int MD2_Init(MD2_CTX *c); |
87 | int MD2_Update(MD2_CTX *c, const unsigned char *data, unsigned long len); | 85 | int MD2_Update(MD2_CTX *c, const unsigned char *data, size_t len); |
88 | int MD2_Final(unsigned char *md, MD2_CTX *c); | 86 | int MD2_Final(unsigned char *md, MD2_CTX *c); |
89 | unsigned char *MD2(const unsigned char *d, unsigned long n,unsigned char *md); | 87 | unsigned char *MD2(const unsigned char *d, size_t n,unsigned char *md); |
90 | #ifdef __cplusplus | 88 | #ifdef __cplusplus |
91 | } | 89 | } |
92 | #endif | 90 | #endif |