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 ec09d74603..a776e52243 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> |
@@ -215,7 +215,7 @@ int RAND_poll(void) | |||
215 | if (n > 0) | 215 | if (n > 0) |
216 | { | 216 | { |
217 | RAND_add(tmpbuf,sizeof tmpbuf,n); | 217 | RAND_add(tmpbuf,sizeof tmpbuf,n); |
218 | memset(tmpbuf,0,n); | 218 | OPENSSL_cleanse(tmpbuf,n); |
219 | } | 219 | } |
220 | #endif | 220 | #endif |
221 | 221 | ||
@@ -236,3 +236,10 @@ int RAND_poll(void) | |||
236 | } | 236 | } |
237 | 237 | ||
238 | #endif | 238 | #endif |
239 | |||
240 | #if defined(OPENSSL_SYS_VXWORKS) | ||
241 | int RAND_poll(void) | ||
242 | { | ||
243 | return 0; | ||
244 | } | ||
245 | #endif | ||