forked from pool/libgcrypt
31afb2af23
- libgcrypt-fix-rng.patch: make drbg work again in FIPS mode. - libgcrypt-1.6.1-use-fipscheck.patch: library to test is libgcrypt.so.20 and not libgcrypt.so.11 - libgcrypt-init-at-elf-load-fips.patch: initialize globally on ELF DSO loading to meet FIPS requirements. OBS-URL: https://build.opensuse.org/request/show/235418 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libgcrypt?expand=0&rev=57
14 lines
493 B
Diff
14 lines
493 B
Diff
Index: libgcrypt-1.6.1/src/global.c
|
|
===================================================================
|
|
--- libgcrypt-1.6.1.orig/src/global.c
|
|
+++ libgcrypt-1.6.1/src/global.c
|
|
@@ -76,7 +76,7 @@ static gpg_err_code_t external_lock_test
|
|
likely to be called at startup. The suggested way for an
|
|
application to make sure that this has been called is by using
|
|
gcry_check_version. */
|
|
-static void
|
|
+static void __attribute__((constructor))
|
|
global_init (void)
|
|
{
|
|
gcry_error_t err = 0;
|