- binary compatability patch

PR:		87419
Submitted by:	Phil Oleson
This commit is contained in:
Dirk Meyer
2005-10-14 05:41:48 +00:00
parent 7603f5c8a7
commit d00a42c5af
3 changed files with 29 additions and 1 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ PORTREVISION!= date -v-1d +%Y%m%d
.else
.if !defined(WITH_OPENSSL_BETA) && defined(WITH_OPENSSL_097)
PORTVERSION= 0.9.7h
PORTREVISION?= 0
PORTREVISION?= 1
.else
PORTVERSION= 0.9.8a
PORTREVISION?= 0
+14
View File
@@ -0,0 +1,14 @@
--- crypto/evp/evp.h.orig Thu Oct 13 17:24:41 2005
+++ crypto/evp/evp.h Thu Oct 13 17:26:32 2005
@@ -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 EVP_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
+14
View File
@@ -0,0 +1,14 @@
--- crypto/hmac/hmac.h.orig Thu Oct 13 17:27:32 2005
+++ crypto/hmac/hmac.h Thu Oct 13 17:28:43 2005
@@ -64,7 +64,11 @@
#include <openssl/evp.h>
+#ifdef OPENSSL_FIPS
#define HMAC_MAX_MD_CBLOCK 128
+#else
+#define HMAC_MAX_MD_CBLOCK 64
+#endif
#ifdef __cplusplus
extern "C" {