random: Add finalizer for rndjent.
authorNIIBE Yutaka <gniibe@fsij.org>
Wed, 19 Dec 2018 01:28:32 +0000 (10:28 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Wed, 19 Dec 2018 01:28:32 +0000 (10:28 +0900)
commit3028a221d39c1b593ea0c1bcbfccd33959769692
tree16281859eadcc8a53a993077bec8e9d4be316cb4
parent876f7280e8604bc99ddda0526339ec5ec6b23c4b
random: Add finalizer for rndjent.

* random/rand-internal.h (_gcry_rndjent_fini): New.
* random/rndjent.c (_gcry_rndjent_fini): New.
* random/rndlinux.c (_gcry_rndlinux_gather_random): Call the finalizer
when GCRYCTL_CLOSE_RANDOM_DEVICE.

--

GnuPG-bug-id: 3731
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
random/rand-internal.h
random/rndjent.c
random/rndlinux.c