OpenIndiana and Solaris port

This commit is contained in:
Ulrich Wilkens
2014-10-28 19:46:43 +01:00
committed by Jon Trulson
parent 42e891d9e7
commit 01d6c363fa
296 changed files with 1049 additions and 1091 deletions

View File

@@ -230,7 +230,7 @@ char bytes[64];
* the OS's random number device.
*/
#if defined(linux) || defined(CSRG_BASED)
#if defined(linux) || defined(CSRG_BASED) || defined(sun)
#define READ_LIMIT (sizeof (long) * 2)
static sumFile (char *name, long sum[2])
@@ -447,7 +447,7 @@ InitCryptoKey( void )
#if defined(linux)
/* non-blocking */
char *key_file = "/dev/urandom";
#elif defined(CSRG_BASED)
#elif defined(CSRG_BASED) || defined(sun)
/* non-blocking */
char *key_file = "/dev/random";
#else