diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/md2/md2.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/libcrypto/md2/md2.h b/src/lib/libcrypto/md2/md2.h index 0d3592506c..ad9241455c 100644 --- a/src/lib/libcrypto/md2/md2.h +++ b/src/lib/libcrypto/md2/md2.h | |||
| @@ -59,11 +59,7 @@ | |||
| 59 | #ifndef HEADER_MD2_H | 59 | #ifndef HEADER_MD2_H |
| 60 | #define HEADER_MD2_H | 60 | #define HEADER_MD2_H |
| 61 | 61 | ||
| 62 | #ifdef __cplusplus | 62 | #ifdef OPENSSL_NO_MD2 |
| 63 | extern "C" { | ||
| 64 | #endif | ||
| 65 | |||
| 66 | #ifdef NO_MD2 | ||
| 67 | #error MD2 is disabled. | 63 | #error MD2 is disabled. |
| 68 | #endif | 64 | #endif |
| 69 | 65 | ||
| @@ -71,6 +67,10 @@ extern "C" { | |||
| 71 | #define MD2_BLOCK 16 | 67 | #define MD2_BLOCK 16 |
| 72 | #include <openssl/opensslconf.h> /* MD2_INT */ | 68 | #include <openssl/opensslconf.h> /* MD2_INT */ |
| 73 | 69 | ||
| 70 | #ifdef __cplusplus | ||
| 71 | extern "C" { | ||
| 72 | #endif | ||
| 73 | |||
| 74 | typedef struct MD2state_st | 74 | typedef struct MD2state_st |
| 75 | { | 75 | { |
| 76 | int num; | 76 | int num; |
| @@ -80,10 +80,10 @@ typedef struct MD2state_st | |||
| 80 | } MD2_CTX; | 80 | } MD2_CTX; |
| 81 | 81 | ||
| 82 | const char *MD2_options(void); | 82 | const char *MD2_options(void); |
| 83 | void MD2_Init(MD2_CTX *c); | 83 | int MD2_Init(MD2_CTX *c); |
| 84 | void MD2_Update(MD2_CTX *c, register unsigned char *data, unsigned long len); | 84 | int MD2_Update(MD2_CTX *c, const unsigned char *data, unsigned long len); |
| 85 | void MD2_Final(unsigned char *md, MD2_CTX *c); | 85 | int MD2_Final(unsigned char *md, MD2_CTX *c); |
| 86 | unsigned char *MD2(unsigned char *d, unsigned long n,unsigned char *md); | 86 | unsigned char *MD2(const unsigned char *d, unsigned long n,unsigned char *md); |
| 87 | #ifdef __cplusplus | 87 | #ifdef __cplusplus |
| 88 | } | 88 | } |
| 89 | #endif | 89 | #endif |
