diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-11 18:50:20 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-11 18:50:20 +0000 |
commit | b2dafc441c44b6d8cc774c6ef23501da4e0a4182 (patch) | |
tree | 630070f342aaa1823593c5ffc178d6bad1cc1bd2 /src/util/crypto_random.c | |
parent | 4a063d658b38b41d2b48a276ef8d3523beb9b7b0 (diff) | |
download | gnunet-b2dafc441c44b6d8cc774c6ef23501da4e0a4182.tar.gz gnunet-b2dafc441c44b6d8cc774c6ef23501da4e0a4182.zip |
-close /dev/random on shutdown
Diffstat (limited to 'src/util/crypto_random.c')
-rw-r--r-- | src/util/crypto_random.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/crypto_random.c b/src/util/crypto_random.c index 8168b061c..57f922eaa 100644 --- a/src/util/crypto_random.c +++ b/src/util/crypto_random.c | |||
@@ -378,6 +378,9 @@ void __attribute__ ((destructor)) | |||
378 | GNUNET_CRYPTO_random_fini () | 378 | GNUNET_CRYPTO_random_fini () |
379 | { | 379 | { |
380 | gcry_set_progress_handler (NULL, NULL); | 380 | gcry_set_progress_handler (NULL, NULL); |
381 | #ifdef GCRYCTL_CLOSE_RANDOM_DEVICE | ||
382 | (void) gcry_control (GCRYCTL_CLOSE_RANDOM_DEVICE, 0); | ||
383 | #endif | ||
381 | } | 384 | } |
382 | 385 | ||
383 | 386 | ||