summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5899493)
raw | patch | inline | side by side (parent: 5899493)
author | Florian Forster <octo@huhu.verplant.org> | |
Mon, 31 Aug 2009 18:30:23 +0000 (20:30 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Mon, 31 Aug 2009 18:30:23 +0000 (20:30 +0200) |
src/network.c | patch | blob | history |
diff --git a/src/network.c b/src/network.c
index 791c1993f72b75f0079a287e6e27087a908f00b6..cf67c2bd20c5e9bd2b58938eb1565be2476402ad 100644 (file)
--- a/src/network.c
+++ b/src/network.c
if (cache_flush_last != 0)
return (0);
+#if HAVE_LIBGCRYPT
+ gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
+ gcry_control (GCRYCTL_INIT_SECMEM, 32768, 0);
+ gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
+#endif
+
plugin_register_shutdown ("network", network_shutdown);
network_init_buffer ();
void module_register (void)
{
-#if HAVE_LIBGCRYPT
- gcry_control (GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
- gcry_control (GCRYCTL_INIT_SECMEM, 32768, 0);
- gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
-#endif
-
plugin_register_complex_config ("network", network_config);
plugin_register_init ("network", network_init);
plugin_register_flush ("network", network_flush,