diff options
author | Richard Levitte <levitte@openssl.org> | 2001-01-08 11:59:26 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-01-08 11:59:26 +0100 |
commit | 0c61e299b35a0789d5de7c1972b15a82dff2f122 (patch) | |
tree | 548e4119f07dea7f70436003d196dbaca8f7830a /e_os.h | |
parent | Add set of OCSP client functions. All experimental (diff) | |
download | openssl-0c61e299b35a0789d5de7c1972b15a82dff2f122.tar.xz openssl-0c61e299b35a0789d5de7c1972b15a82dff2f122.zip |
Change RAND_poll for Unix to try a number of devices and only read
them for a short period of time (actually, poll them with select(),
then read() whatever is there), which is about 10ms (hard-coded value)
each.
Separate Windows and Unixly code, and start on a VMS variant that
currently just returns 0.
Diffstat (limited to 'e_os.h')
-rw-r--r-- | e_os.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -77,9 +77,9 @@ extern "C" { #endif #ifndef DEVRANDOM -/* set this to your 'random' device if you have one. - * My default, we will try to read this file */ -#define DEVRANDOM "/dev/urandom" +/* set this to a comma-separated list of 'random' device files to try out. + * My default, we will try to read at least one of these files */ +#define DEVRANDOM "/dev/random","/dev/srandom","/dev/urandom" #endif #if defined(__MWERKS__) && defined(macintosh) @@ -245,6 +245,8 @@ extern "C" { # define RFILE ".rnd" # define LIST_SEPARATOR_CHAR ',' # define NUL_DEV "NLA0:" + /* We don't have any well-defined random devices on VMS, yet... */ +# undef DEVRANDOM /* We need to do this since VMS has the following coding on status codes: Bits 0-2: status type: 0 = warning, 1 = success, 2 = error, 3 = info ... |