Blame SOURCES/libgcrypt-1.5.3-fips-test.patch

241384
diff -up libgcrypt-1.5.3/tests/basic.c.fips-test libgcrypt-1.5.3/tests/basic.c
241384
--- libgcrypt-1.5.3/tests/basic.c.fips-test	2014-09-26 17:36:41.620556071 +0200
241384
+++ libgcrypt-1.5.3/tests/basic.c	2014-09-26 17:36:43.317594382 +0200
241384
@@ -563,6 +563,14 @@ check_ctr_cipher (void)
241384
       if (!tv[i].algo)
241384
         continue;
241384
 
241384
+      if (gcry_cipher_test_algo (tv[i].algo) && in_fips_mode)
241384
+        {
241384
+          if (verbose)
241384
+            fprintf (stderr, "  algorithm %d not available in fips mode\n",
241384
+                     tv[i].algo);
241384
+          continue;
241384
+        }
241384
+
241384
       err = gcry_cipher_open (&hde, tv[i].algo, GCRY_CIPHER_MODE_CTR, 0);
241384
       if (!err)
241384
 	err = gcry_cipher_open (&hdd, tv[i].algo, GCRY_CIPHER_MODE_CTR, 0);