diff options
author | Richard Levitte <levitte@openssl.org> | 2002-10-14 09:44:51 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-10-14 09:44:51 +0000 |
commit | 2d2ca3aab15539fd6b14bcd3555112b48ac63433 (patch) | |
tree | ee8f13812af197795769caaf0a9b7dc6ce89a169 /crypto/rand | |
parent | cfc76205724a1fd400dd453314caaf4710b8b9aa (diff) |
Complete the VxWorks fix by implementing a NULL RAND_poll() for it.
PR: 253
Diffstat (limited to 'crypto/rand')
-rw-r--r-- | crypto/rand/rand_egd.c | 2 | ||||
-rw-r--r-- | crypto/rand/rand_unix.c | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/crypto/rand/rand_egd.c b/crypto/rand/rand_egd.c index d7dad3efd0..53a726e1aa 100644 --- a/crypto/rand/rand_egd.c +++ b/crypto/rand/rand_egd.c @@ -94,7 +94,7 @@ * RAND_egd() is a wrapper for RAND_egd_bytes() with numbytes=255. */ -#if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_MSDOS) +#if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_VXWORKS) int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes) { return(-1); diff --git a/crypto/rand/rand_unix.c b/crypto/rand/rand_unix.c index 7de21d37d0..4175576fcc 100644 --- a/crypto/rand/rand_unix.c +++ b/crypto/rand/rand_unix.c @@ -236,3 +236,10 @@ int RAND_poll(void) } #endif + +#if defined(OPENSSL_SYS_VXWORKS) +int RAND_poll(void) +{ + return 0; +} +#endif |