File intel-0.9.8-switch.diff of Package compat-openssl098.1339

Index: openssl-0.9.8h/crypto/cryptlib.c
===================================================================
--- openssl-0.9.8h.orig/crypto/cryptlib.c
+++ openssl-0.9.8h/crypto/cryptlib.c
@@ -579,6 +579,10 @@ void OPENSSL_cpuid_setup(void)
 #endif
     else
 	vec = OPENSSL_ia32_cpuid()|(1<<10);
+
+    if (getenv("OPENSSL_DISABLE_AESNI"))
+        vec &= ~(((IA32CAP)0x2000000)<<32); /* AES-NI 57-bit */
+
     /*
      * |(1<<10) sets a reserved bit to signal that variable
      * was initialized already... This is to avoid interference