forked from pool/libgcrypt
Pedro Monreal Gonzalez
d57c784f09
This fixes bsc#1133808. Hope it doesn't break anything else. Enjoy! OBS-URL: https://build.opensuse.org/request/show/712076 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libgcrypt?expand=0&rev=128
33 lines
846 B
Diff
33 lines
846 B
Diff
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
|