[collectd-changes] collectd, the system statistics collection daemon: Changes to 'collectd-4.7'
Florian Forster
octo at verplant.org
Mon Aug 31 20:30:45 CEST 2009
src/network.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
New commits:
commit 9b6e4d828a52bd8c11eeead1a39e7b9375abe4eb
Author: Florian Forster <octo at huhu.verplant.org>
Date: Mon Aug 31 20:30:23 2009 +0200
network plugin: Move the gcrypt initialization into ânetwork_initâ.
commit 5899493b4434ba40638f8a5ffe4cb2e58bead3d4
Author: Luke Heberling <collectd at c-ware.com>
Date: Mon Aug 31 10:31:30 2009 -0700
network plugin: Fix initialization of the gcrypt library.
Subject: Ohhhh jeeee, libgcrypt 1.4.1 + collectd 4.7.2
On Monday 31 August 2009 09:03:37 Sebastian Harl wrote:
> Hrm ⦠from a quick look at the libcrypt documentation I suppose we need
> to call gcry_control() using the 'GCRYCTL_INIT_SECMEM' command to
> explicitly initialize the secure memory. Sounds like this was required
> in libgcrypt 1.4.1 but is handled automatically in later versions.
>
also looks like there's some special initialization necessary for threads. I
doubt that this is handled by the new default behavior in 1.4.4. Don't know
that it's truly necessary if the network plugin is the only plugin using
gcrypt.
Here's a patch that works for me with 1.4.1.
I followed an example for pthread initialization and initialized gcry to 32k,
only since that's apparently the default that's used in 1.4.3. I did it in
network.c's module_register function. Kind of an abuse, I know.
Luke Heberling
Signed-off-by: Florian Forster <octo at huhu.verplant.org>
More information about the collectd-changes
mailing list