File libgcrypt-1.8.4-fips_ctor_skip_integrity_check.patch of Package libgcrypt.15118

Index: libgcrypt-1.8.4/src/global.c
===================================================================
--- libgcrypt-1.8.4.orig/src/global.c
+++ libgcrypt-1.8.4/src/global.c
@@ -141,27 +141,10 @@ global_init (void)
 }
 
 
-#ifndef FIPS_MODULE_PATH
-#define FIPS_MODULE_PATH "/etc/system-fips"
-#endif
-
 void __attribute__ ((constructor)) _gcry_global_constructor (void)
 {
-  int rv;
-
   /* We always need the FSM lock to be functional. */
   _gcry_initialize_fsm_lock ();
-
-  rv = access (FIPS_MODULE_PATH, F_OK);
-  if (rv < 0 && errno != ENOENT)
-    rv = 0;
-
-  if (!rv)
-    {
-      /* We run the integrity check at this point. The remaining
-         selftests are run before use of the library by application. */
-      _gcry_fips_run_selftests (0);
-    }
 }
 
 /* This function is called by the macro fips_is_operational and makes
openSUSE Build Service is sponsored by