diff options
Diffstat (limited to 'src/lib/libcrypto/rand/rand_unix.c')
| -rw-r--r-- | src/lib/libcrypto/rand/rand_unix.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/libcrypto/rand/rand_unix.c b/src/lib/libcrypto/rand/rand_unix.c index fa2bab57c6..0599719dd1 100644 --- a/src/lib/libcrypto/rand/rand_unix.c +++ b/src/lib/libcrypto/rand/rand_unix.c | |||
| @@ -115,7 +115,7 @@ | |||
| 115 | #include <openssl/rand.h> | 115 | #include <openssl/rand.h> |
| 116 | #include "rand_lcl.h" | 116 | #include "rand_lcl.h" |
| 117 | 117 | ||
| 118 | #if !(defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_OS2)) | 118 | #if !(defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_OS2) || defined(OPENSSL_SYS_VXWORKS)) |
| 119 | 119 | ||
| 120 | #include <sys/types.h> | 120 | #include <sys/types.h> |
| 121 | #include <sys/time.h> | 121 | #include <sys/time.h> |
| @@ -233,7 +233,7 @@ int RAND_poll(void) | |||
| 233 | if (n > 0) | 233 | if (n > 0) |
| 234 | { | 234 | { |
| 235 | RAND_add(tmpbuf,sizeof tmpbuf,n); | 235 | RAND_add(tmpbuf,sizeof tmpbuf,n); |
| 236 | memset(tmpbuf,0,n); | 236 | OPENSSL_cleanse(tmpbuf,n); |
| 237 | } | 237 | } |
| 238 | #endif | 238 | #endif |
| 239 | 239 | ||
| @@ -255,3 +255,10 @@ int RAND_poll(void) | |||
| 255 | 255 | ||
| 256 | #endif | 256 | #endif |
| 257 | #endif | 257 | #endif |
| 258 | |||
| 259 | #if defined(OPENSSL_SYS_VXWORKS) | ||
| 260 | int RAND_poll(void) | ||
| 261 | { | ||
| 262 | return 0; | ||
| 263 | } | ||
| 264 | #endif | ||
