X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnetwork.c;h=791c1993f72b75f0079a287e6e27087a908f00b6;hb=5899493b4434ba40638f8a5ffe4cb2e58bead3d4;hp=0e246c20eda53e5dd69ada996fd91522564d5baa;hpb=8f40e8dacad2bfcb9d659e12740aa3ebc15ada65;p=collectd.git diff --git a/src/network.c b/src/network.c index 0e246c20..791c1993 100644 --- a/src/network.c +++ b/src/network.c @@ -51,6 +51,7 @@ #if HAVE_LIBGCRYPT # include +GCRY_THREAD_OPTION_PTHREAD_IMPL; #endif /* 1500 - 40 - 8 = Ethernet packet - IPv6 header - UDP header */ @@ -3028,6 +3029,12 @@ static int network_flush (int timeout, 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,