diff options
Diffstat (limited to 'src/lib/libcrypto/md2/md2_dgst.c')
| -rw-r--r-- | src/lib/libcrypto/md2/md2_dgst.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lib/libcrypto/md2/md2_dgst.c b/src/lib/libcrypto/md2/md2_dgst.c index cc4eeaf7a7..c57b3da288 100644 --- a/src/lib/libcrypto/md2/md2_dgst.c +++ b/src/lib/libcrypto/md2/md2_dgst.c | |||
| @@ -62,11 +62,6 @@ | |||
| 62 | #include <openssl/md2.h> | 62 | #include <openssl/md2.h> |
| 63 | #include <openssl/opensslv.h> | 63 | #include <openssl/opensslv.h> |
| 64 | #include <openssl/crypto.h> | 64 | #include <openssl/crypto.h> |
| 65 | #ifdef OPENSSL_FIPS | ||
| 66 | #include <openssl/fips.h> | ||
| 67 | #endif | ||
| 68 | |||
| 69 | #include <openssl/err.h> | ||
| 70 | 65 | ||
| 71 | const char MD2_version[]="MD2" OPENSSL_VERSION_PTEXT; | 66 | const char MD2_version[]="MD2" OPENSSL_VERSION_PTEXT; |
| 72 | 67 | ||
| @@ -78,7 +73,7 @@ const char MD2_version[]="MD2" OPENSSL_VERSION_PTEXT; | |||
| 78 | static void md2_block(MD2_CTX *c, const unsigned char *d); | 73 | static void md2_block(MD2_CTX *c, const unsigned char *d); |
| 79 | /* The magic S table - I have converted it to hex since it is | 74 | /* The magic S table - I have converted it to hex since it is |
| 80 | * basically just a random byte string. */ | 75 | * basically just a random byte string. */ |
| 81 | static MD2_INT S[256]={ | 76 | static const MD2_INT S[256]={ |
| 82 | 0x29, 0x2E, 0x43, 0xC9, 0xA2, 0xD8, 0x7C, 0x01, | 77 | 0x29, 0x2E, 0x43, 0xC9, 0xA2, 0xD8, 0x7C, 0x01, |
| 83 | 0x3D, 0x36, 0x54, 0xA1, 0xEC, 0xF0, 0x06, 0x13, | 78 | 0x3D, 0x36, 0x54, 0xA1, 0xEC, 0xF0, 0x06, 0x13, |
| 84 | 0x62, 0xA7, 0x05, 0xF3, 0xC0, 0xC7, 0x73, 0x8C, | 79 | 0x62, 0xA7, 0x05, 0xF3, 0xC0, 0xC7, 0x73, 0x8C, |
| @@ -121,7 +116,7 @@ const char *MD2_options(void) | |||
| 121 | return("md2(int)"); | 116 | return("md2(int)"); |
| 122 | } | 117 | } |
| 123 | 118 | ||
| 124 | FIPS_NON_FIPS_MD_Init(MD2) | 119 | int MD2_Init(MD2_CTX *c) |
| 125 | { | 120 | { |
| 126 | c->num=0; | 121 | c->num=0; |
| 127 | memset(c->state,0,sizeof c->state); | 122 | memset(c->state,0,sizeof c->state); |
