Hi,

Attached is a patch that fixes OpenSSL 1.0.1a build problems on a non x86 
platform (Sparc).

-- 
   Leena Heino              University of Tampere / Computer Centre
   ( liinu at uta.fi )      ( http://www.uta.fi/laitokset/tkk )
diff -Naur openssl-1.0.1a.orig/crypto/evp/e_rc4_hmac_md5.c 
openssl-1.0.1a/crypto/evp/e_rc4_hmac_md5.c

--- openssl-1.0.1a.orig/crypto/evp/e_rc4_hmac_md5.c     2012-04-18 
20:51:33.000000000 +0300

+++ openssl-1.0.1a/crypto/evp/e_rc4_hmac_md5.c  2012-04-19 17:27:26.974380650 
+0300

@@ -289,8 +289,14 @@

 

 const EVP_CIPHER *EVP_rc4_hmac_md5(void)

        {

+#if    defined(__i386)   || defined(__i386__)   || defined(_M_IX86) || \

+       defined(__INTEL__) || \

+       defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || 
defined(_M_X64)

        extern unsigned int OPENSSL_ia32cap_P[];

        /* RC4_CHAR flag ------------vvvvv */

        return(OPENSSL_ia32cap_P[0]&(1<<20) ? NULL : &r4_hmac_md5_cipher);

+#else

+       return(&r4_hmac_md5_cipher);

+#endif

        }

 #endif

Reply via email to