Blame SOURCES/gnutls-3.3.8-padlock-disable.patch

519d7d
diff --git a/lib/accelerated/x86/x86-common.c b/lib/accelerated/x86/x86-common.c
519d7d
index cc67b08..e730ba0 100644
519d7d
--- a/lib/accelerated/x86/x86-common.c
519d7d
+++ b/lib/accelerated/x86/x86-common.c
519d7d
@@ -37,6 +37,7 @@
519d7d
 # include <sha-padlock.h>
519d7d
 #endif
519d7d
 #include <aes-padlock.h>
519d7d
+#include <fips.h>
519d7d
 
519d7d
 /* ebx, ecx, edx 
519d7d
  * This is a format compatible with openssl's CPUID detection.
519d7d
@@ -581,7 +582,8 @@ void register_x86_crypto(void)
519d7d
 	
519d7d
 	register_x86_intel_crypto(capabilities);
519d7d
 #ifdef ENABLE_PADLOCK
519d7d
-	register_x86_padlock_crypto(capabilities);
519d7d
+	if (_gnutls_fips_mode_enabled() != 1)
519d7d
+		register_x86_padlock_crypto(capabilities);
519d7d
 #endif
519d7d
 }
519d7d