gcrypt: Explicitly initialize RNG backend to allocate static data
authorMartin Willi <martin@revosec.ch>
Mon, 13 Apr 2015 15:12:49 +0000 (17:12 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 15 Apr 2015 12:38:42 +0000 (14:38 +0200)
commit13a5a906e941b147d9b214a91d03d9ee356d723e
tree27da8ae1c4feff47ba0d3b4bc198d6d08be24092
parentd72817491d4d9bbbe95f95092b9b235dd42a3fd8
gcrypt: Explicitly initialize RNG backend to allocate static data

The libgcrypt RNG implementation uses static buffer allocation which it does
not free. There is no symbol we can catch in leak-detective, hence we explicitly
initialize the RNG during the whitelisted gcrypt_plugin_create() function.
src/libstrongswan/plugins/gcrypt/gcrypt_plugin.c