[libgcrypt] Fix forward port of the patch.

Tomáš Mráz tmraz at fedoraproject.org
Wed Feb 25 15:33:59 UTC 2015


commit da1d9089b57175d73948674286f714e2ac79534b
Author: Tomas Mraz <tmraz at fedoraproject.org>
Date:   Wed Feb 25 16:33:37 2015 +0100

    Fix forward port of the patch.

 libgcrypt-1.6.2-fips-ctor.patch | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/libgcrypt-1.6.2-fips-ctor.patch b/libgcrypt-1.6.2-fips-ctor.patch
index a1b5501..c53847d 100644
--- a/libgcrypt-1.6.2-fips-ctor.patch
+++ b/libgcrypt-1.6.2-fips-ctor.patch
@@ -51,18 +51,16 @@ diff -up libgcrypt-1.6.2/src/global.c.fips-ctor libgcrypt-1.6.2/src/global.c
  /* This function is called by the macro fips_is_operational and makes
     sure that the minimal initialization has been done.  This is far
     from a perfect solution and hides problems with an improper
-@@ -542,9 +570,8 @@ _gcry_vcontrol (enum gcry_ctl_cmds cmd,
+@@ -542,8 +570,7 @@ _gcry_vcontrol (enum gcry_ctl_cmds cmd,
  
      case GCRYCTL_FIPS_MODE_P:
        if (fips_mode ()
 -          && !_gcry_is_fips_mode_inactive ()
 -          && !no_secure_memory)
--	rc = GPG_ERR_GENERAL; /* Used as TRUE value */
 +          && !_gcry_is_fips_mode_inactive ())
-+	err = GPG_ERR_GENERAL; /* Used as TRUE value */
+ 	rc = GPG_ERR_GENERAL; /* Used as TRUE value */
        break;
  
-     case GCRYCTL_FORCE_FIPS_MODE:
 @@ -635,7 +662,7 @@ _gcry_vcontrol (enum gcry_ctl_cmds cmd,
        break;
  


More information about the scm-commits mailing list