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