summaryrefslogtreecommitdiff
path: root/lib/random.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-10-31 09:32:16 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-10-31 09:32:16 +0100
commiteb77ac831c61c9aa646df7865d7fb7a7e856db0e (patch)
tree727cf356e1cf7f6a7be7283de1861baed7f126bb /lib/random.h
parent2b64138a70a031b8b6a122ea48ed460da94e45bb (diff)
downloadgnutls-eb77ac831c61c9aa646df7865d7fb7a7e856db0e.tar.gz
When gnutls_global_init() is called manually from the application check the urandom fd for validity
That addresses the issue where a server closes all open file descriptors and then calls gnutls_global_init().
Diffstat (limited to 'lib/random.h')
-rw-r--r--lib/random.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/random.h b/lib/random.h
index 8c755f8997..35857be357 100644
--- a/lib/random.h
+++ b/lib/random.h
@@ -47,6 +47,7 @@ inline static void _gnutls_rnd_refresh(void)
void _gnutls_rnd_deinit(void);
int _gnutls_rnd_init(void);
+int _gnutls_rnd_check(void);
#ifndef _WIN32
extern int _gnutls_urandom_fd;