summaryrefslogtreecommitdiff
path: root/lib/crypto-backend.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/crypto-backend.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/crypto-backend.h')
-rw-r--r--lib/crypto-backend.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/crypto-backend.h b/lib/crypto-backend.h
index 7f4e1b61c6..09a7d92c67 100644
--- a/lib/crypto-backend.h
+++ b/lib/crypto-backend.h
@@ -77,6 +77,7 @@ typedef struct {
typedef struct gnutls_crypto_rnd {
int (*init) (void **ctx);
+ int (*check) (void **ctx);
int (*rnd) (void *ctx, int level, void *data, size_t datasize);
void (*rnd_refresh) (void *ctx);
void (*deinit) (void *ctx);