summaryrefslogtreecommitdiffstats
path: root/e_os.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2001-01-08 11:59:26 +0100
committerRichard Levitte <levitte@openssl.org>2001-01-08 11:59:26 +0100
commit0c61e299b35a0789d5de7c1972b15a82dff2f122 (patch)
tree548e4119f07dea7f70436003d196dbaca8f7830a /e_os.h
parentAdd set of OCSP client functions. All experimental (diff)
downloadopenssl-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.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/e_os.h b/e_os.h
index f44f39300c..ba53b18b9c 100644
--- a/e_os.h
+++ b/e_os.h
@@ -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 ...