diff options
author | Lutz Jänicke <jaenicke@openssl.org> | 2001-01-09 16:44:59 +0000 |
---|---|---|
committer | Lutz Jänicke <jaenicke@openssl.org> | 2001-01-09 16:44:59 +0000 |
commit | 599c03530ae1b63df396d35b9227d239d451e8fd (patch) | |
tree | 81518ae1c99cdf7de23dfd4eaf8d50ae0ea7a5b8 /e_os.h | |
parent | 56a67adb6486df1ab417217e9855a1acc07b40ba (diff) | |
download | openssl-new-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.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |