summaryrefslogtreecommitdiff
path: root/lib/gnutls_global.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@crystal.(none)>2008-06-28 01:25:02 +0300
committerNikos Mavrogiannopoulos <nmav@crystal.(none)>2008-06-28 01:25:02 +0300
commit95c55c0eb57484533f4dd72c10481c66a66a53f2 (patch)
tree3bc580f54abd1775b28415ae8e20aab4fe2baade /lib/gnutls_global.c
parent0def0a1d7c28de6fd49995755de7b915cf701225 (diff)
downloadgnutls-95c55c0eb57484533f4dd72c10481c66a66a53f2.tar.gz
Initial merge attempt with gnutls_with_ext_mpi
Diffstat (limited to 'lib/gnutls_global.c')
-rw-r--r--lib/gnutls_global.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/lib/gnutls_global.c b/lib/gnutls_global.c
index d54e836d51..d1afe66edd 100644
--- a/lib/gnutls_global.c
+++ b/lib/gnutls_global.c
@@ -27,6 +27,7 @@
#include <libtasn1.h>
#include <gnutls_dh.h>
#include <random.h>
+#include <gcrypt.h>
#ifdef HAVE_WINSOCK
# include <winsock2.h>
@@ -264,17 +265,6 @@ gnutls_global_init (void)
#endif
}
- if (gc_init () != GC_OK)
- {
- gnutls_assert ();
- _gnutls_debug_log ("Initializing crypto backend failed\n");
- return GNUTLS_E_INCOMPATIBLE_CRYPTO_LIBRARY;
- }
-
- /* for gcrypt in order to be able to allocate memory */
- gc_set_allocators (gnutls_malloc, gnutls_secure_malloc,
- _gnutls_is_secure_memory, gnutls_realloc, gnutls_free);
-
#ifdef DEBUG
gnutls_global_set_log_function (dlog);
#endif
@@ -339,7 +329,6 @@ gnutls_global_deinit (void)
asn1_delete_structure (&_gnutls_gnutls_asn);
asn1_delete_structure (&_gnutls_pkix1_asn);
_gnutls_crypto_deregister();
- gc_done ();
}
_gnutls_init--;
}