Blame SOURCES/gnupg-2.1.1-fips-algo.patch

e4fdbb
diff -up gnupg-2.1.1/g10/mainproc.c.fips gnupg-2.1.1/g10/mainproc.c
e4fdbb
--- gnupg-2.1.1/g10/mainproc.c.fips	2015-01-29 17:19:49.266031504 +0100
e4fdbb
+++ gnupg-2.1.1/g10/mainproc.c	2015-01-29 17:27:13.938088122 +0100
e4fdbb
@@ -719,7 +719,8 @@ proc_plaintext( CTX c, PACKET *pkt )
e4fdbb
          according to 2440, so hopefully it won't come up that often.
e4fdbb
          There is no good way to specify what algorithms to use in
e4fdbb
          that case, so these there are the historical answer. */
e4fdbb
-	gcry_md_enable (c->mfx.md, DIGEST_ALGO_RMD160);
e4fdbb
+	if (!gcry_fips_mode_active())
e4fdbb
+            gcry_md_enable (c->mfx.md, DIGEST_ALGO_RMD160);
e4fdbb
 	gcry_md_enable (c->mfx.md, DIGEST_ALGO_SHA1);
e4fdbb
     }
e4fdbb
   if (DBG_HASHING)