diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/md2/md2.h (renamed from src/lib/libssl/src/crypto/md2/md2.org) | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/src/lib/libssl/src/crypto/md2/md2.org b/src/lib/libcrypto/md2/md2.h index 9f39933790..0d3592506c 100644 --- a/src/lib/libssl/src/crypto/md2/md2.org +++ b/src/lib/libcrypto/md2/md2.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* crypto/md/md2.org */ | 1 | /* crypto/md/md2.h */ |
| 2 | /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -56,15 +56,6 @@ | |||
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | /* WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING | ||
| 60 | * | ||
| 61 | * Always modify md2.org since md2.h is automatically generated from | ||
| 62 | * it during SSLeay configuration. | ||
| 63 | * | ||
| 64 | * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING | ||
| 65 | */ | ||
| 66 | |||
| 67 | |||
| 68 | #ifndef HEADER_MD2_H | 59 | #ifndef HEADER_MD2_H |
| 69 | #define HEADER_MD2_H | 60 | #define HEADER_MD2_H |
| 70 | 61 | ||
| @@ -72,10 +63,13 @@ | |||
| 72 | extern "C" { | 63 | extern "C" { |
| 73 | #endif | 64 | #endif |
| 74 | 65 | ||
| 66 | #ifdef NO_MD2 | ||
| 67 | #error MD2 is disabled. | ||
| 68 | #endif | ||
| 69 | |||
| 75 | #define MD2_DIGEST_LENGTH 16 | 70 | #define MD2_DIGEST_LENGTH 16 |
| 76 | #define MD2_BLOCK 16 | 71 | #define MD2_BLOCK 16 |
| 77 | 72 | #include <openssl/opensslconf.h> /* MD2_INT */ | |
| 78 | #define MD2_INT unsigned int | ||
| 79 | 73 | ||
| 80 | typedef struct MD2state_st | 74 | typedef struct MD2state_st |
| 81 | { | 75 | { |
| @@ -85,20 +79,11 @@ typedef struct MD2state_st | |||
| 85 | MD2_INT state[MD2_BLOCK]; | 79 | MD2_INT state[MD2_BLOCK]; |
| 86 | } MD2_CTX; | 80 | } MD2_CTX; |
| 87 | 81 | ||
| 88 | #ifndef NOPROTO | 82 | const char *MD2_options(void); |
| 89 | char *MD2_options(void); | ||
| 90 | void MD2_Init(MD2_CTX *c); | 83 | void MD2_Init(MD2_CTX *c); |
| 91 | void MD2_Update(MD2_CTX *c, register unsigned char *data, unsigned long len); | 84 | void MD2_Update(MD2_CTX *c, register unsigned char *data, unsigned long len); |
| 92 | void MD2_Final(unsigned char *md, MD2_CTX *c); | 85 | void MD2_Final(unsigned char *md, MD2_CTX *c); |
| 93 | unsigned char *MD2(unsigned char *d, unsigned long n,unsigned char *md); | 86 | unsigned char *MD2(unsigned char *d, unsigned long n,unsigned char *md); |
| 94 | #else | ||
| 95 | char *MD2_options(); | ||
| 96 | void MD2_Init(); | ||
| 97 | void MD2_Update(); | ||
| 98 | void MD2_Final(); | ||
| 99 | unsigned char *MD2(); | ||
| 100 | #endif | ||
| 101 | |||
| 102 | #ifdef __cplusplus | 87 | #ifdef __cplusplus |
| 103 | } | 88 | } |
| 104 | #endif | 89 | #endif |
