aboutsummaryrefslogtreecommitdiffstats
path: root/e_os.h
diff options
context:
space:
mode:
authorLutz Jänicke <jaenicke@openssl.org>2001-01-09 16:44:59 +0000
committerLutz Jänicke <jaenicke@openssl.org>2001-01-09 16:44:59 +0000
commit599c03530ae1b63df396d35b9227d239d451e8fd (patch)
tree81518ae1c99cdf7de23dfd4eaf8d50ae0ea7a5b8 /e_os.h
parent56a67adb6486df1ab417217e9855a1acc07b40ba (diff)
downloadopenssl-599c03530ae1b63df396d35b9227d239d451e8fd.tar.gz
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 'e_os.h')
-rw-r--r--e_os.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/e_os.h b/e_os.h
index d658191987..e23e254454 100644
--- a/e_os.h
+++ b/e_os.h
@@ -81,6 +81,12 @@ extern "C" {
* My default, we will try to read at least one of these files */
#define DEVRANDOM "/dev/urandom","/dev/random","/dev/srandom"
#endif
+#ifndef DEVRANDOM_EGD
+/* set this to a comma-seperated list of 'egd' sockets to try out. These
+ * sockets will be tried in the order listed in case accessing the device files
+ * listed in DEVRANDOM did not return enough entropy. */
+#define DEVRANDOM_EGD "/etc/entropy","/var/run/egd-pool"
+#endif
#if defined(__MWERKS__) && defined(macintosh)
# if macintosh==1