From b48b2e861120060f92c4197bc5410babfa76e5fa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Thu, 13 Oct 2005 06:19:26 +0000 Subject: [PATCH] http://cvs.openssl.org/chngview?cn=14514 http://www.mail-archive.com/openssl-users@openssl.org/msg41869.html Changed files: openssl-bin-compat.patch -> 1.1 --- openssl-bin-compat.patch | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 openssl-bin-compat.patch diff --git a/openssl-bin-compat.patch b/openssl-bin-compat.patch new file mode 100644 index 0000000..65eb0b0 --- /dev/null +++ b/openssl-bin-compat.patch @@ -0,0 +1,31 @@ +diff -urbB openssl-0.9.7h.org/crypto/evp/evp.h openssl-0.9.7h/crypto/evp/evp.h +--- openssl-0.9.7h.org/crypto/evp/evp.h 2005-05-17 21:48:42.000000000 +0200 ++++ openssl-0.9.7h/crypto/evp/evp.h 2005-10-13 08:18:24.145355808 +0200 +@@ -132,7 +132,11 @@ + #define EVP_CAST5_KEY_SIZE 16 + #define EVP_RC5_32_12_16_KEY_SIZE 16 + */ ++#ifdef OPENSSL_FIPS + #define EVP_MAX_MD_SIZE 64 /* longest known SHA512 */ ++#else ++#define EXP_MAX_MD_SIZE (16+20) /* The SSLv3 md5+sha1 type */ ++#endif + #define EVP_MAX_KEY_LENGTH 32 + #define EVP_MAX_IV_LENGTH 16 + #define EVP_MAX_BLOCK_LENGTH 32 +diff -urbB openssl-0.9.7h.org/crypto/hmac/hmac.h openssl-0.9.7h/crypto/hmac/hmac.h +--- openssl-0.9.7h.org/crypto/hmac/hmac.h 2005-05-07 19:21:29.000000000 +0200 ++++ openssl-0.9.7h/crypto/hmac/hmac.h 2005-10-13 08:18:56.523433592 +0200 +@@ -64,7 +64,11 @@ + + #include + ++#ifdef OPENSSL_FIPS + #define HMAC_MAX_MD_CBLOCK 128 ++#else ++#define HMAC_MAX_MD_CBLOCK 64 ++#endif + + #ifdef __cplusplus + extern "C" { + -- 2.44.0