summaryrefslogtreecommitdiff
path: root/lib/fips.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-11-30 19:08:38 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-11-30 19:11:45 +0100
commitd5d302e278c3a813994f3fe3026f3990fd6a23d9 (patch)
tree283bcfa8a0e50e9622cf70b47e577b0e51db3537 /lib/fips.c
parent9eef3d6263171009523d11938e340ef90d32fd39 (diff)
downloadgnutls-d5d302e278c3a813994f3fe3026f3990fd6a23d9.tar.gz
constructor and destructors were moved outside the FIPS140 mode.
Diffstat (limited to 'lib/fips.c')
-rw-r--r--lib/fips.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/fips.c b/lib/fips.c
index 6fb29835f4..1833a5db26 100644
--- a/lib/fips.c
+++ b/lib/fips.c
@@ -325,21 +325,6 @@ error:
return GNUTLS_E_SELF_TEST_ERROR;
}
-
-__attribute__((constructor))
-static void lib_init(void)
-{
- if (gnutls_global_init2(GNUTLS_GLOBAL_INIT_MINIMAL|GNUTLS_GLOBAL_INIT_CRYPTO) < 0) {
- fprintf(stderr, "Error in GnuTLS initialization");
- abort();
- }
-}
-
-__attribute__((destructor))
-static void lib_deinit(void)
-{
- gnutls_global_deinit();
-}
#endif
/**