summaryrefslogtreecommitdiffstats
path: root/crypto/rand/rand.h
diff options
context:
space:
mode:
authorLutz Jänicke <jaenicke@openssl.org>2001-01-09 17:44:59 +0100
committerLutz Jänicke <jaenicke@openssl.org>2001-01-09 17:44:59 +0100
commit599c03530ae1b63df396d35b9227d239d451e8fd (patch)
tree81518ae1c99cdf7de23dfd4eaf8d50ae0ea7a5b8 /crypto/rand/rand.h
parentIt was correctly pointed out to me that my CHANGES entry was a little thin (diff)
downloadopenssl-599c03530ae1b63df396d35b9227d239d451e8fd.tar.xz
openssl-599c03530ae1b63df396d35b9227d239d451e8fd.zip
Add automatic query of EGD sockets to RAND_poll(). The EGD sockets are
only queried when the /dev/[u]random devices did not return enough entropy. Only the amount of entropy missing to reach the required minimum is queried, as EGD may be drained. Queried locations are: /etc/entropy, /var/run/egd-pool
Diffstat (limited to 'crypto/rand/rand.h')
-rw-r--r--crypto/rand/rand.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/rand/rand.h b/crypto/rand/rand.h
index eb9c8c034d..1331db99db 100644
--- a/crypto/rand/rand.h
+++ b/crypto/rand/rand.h
@@ -91,6 +91,7 @@ int RAND_load_file(const char *file,long max_bytes);
int RAND_write_file(const char *file);
const char *RAND_file_name(char *file,int num);
int RAND_status(void);
+int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes);
int RAND_egd(const char *path);
int RAND_egd_bytes(const char *path,int bytes);
void ERR_load_RAND_strings(void);