]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - crypto/testmgr.c
Merge git://git.infradead.org/mtd-2.6
[net-next-2.6.git] / crypto / testmgr.c
index 5c8aaa0cb0b96c7bf582650418461d279ae43a1c..fa8c8f78c8d4c1838d121e6131b05162858b2802 100644 (file)
 #include <crypto/rng.h>
 
 #include "internal.h"
+
+#ifdef CONFIG_CRYPTO_MANAGER_DISABLE_TESTS
+
+/* a perfect nop */
+int alg_test(const char *driver, const char *alg, u32 type, u32 mask)
+{
+       return 0;
+}
+
+#else
+
 #include "testmgr.h"
 
 /*
@@ -2530,4 +2541,7 @@ notest:
 non_fips_alg:
        return -EINVAL;
 }
+
+#endif /* CONFIG_CRYPTO_MANAGER_DISABLE_TESTS */
+
 EXPORT_SYMBOL_GPL(alg_test);