diff options
| author | jsing <> | 2014-10-22 13:54:03 +0000 |
|---|---|---|
| committer | jsing <> | 2014-10-22 13:54:03 +0000 |
| commit | 5e608739d7bf88c892bfd6731e5aa80b77ce8371 (patch) | |
| tree | 5182be1e2bb99eb4ec60a5c42f2f953b4c1cadf1 /src/usr.bin/openssl/openssl.c | |
| parent | 52a58602e3937304d1798cc129d61e4048e04bd7 (diff) | |
| download | openbsd-5e608739d7bf88c892bfd6731e5aa80b77ce8371.tar.gz openbsd-5e608739d7bf88c892bfd6731e5aa80b77ce8371.tar.bz2 openbsd-5e608739d7bf88c892bfd6731e5aa80b77ce8371.zip | |
Use arc4random_buf() instead of RAND(_pseudo)?_bytes().
ok bcook@
Diffstat (limited to '')
| -rw-r--r-- | src/usr.bin/openssl/openssl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/usr.bin/openssl/openssl.c b/src/usr.bin/openssl/openssl.c index bcb9b56b74..76e1644f59 100644 --- a/src/usr.bin/openssl/openssl.c +++ b/src/usr.bin/openssl/openssl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: openssl.c,v 1.1 2014/08/26 17:47:25 jsing Exp $ */ | 1 | /* $OpenBSD: openssl.c,v 1.2 2014/10/22 13:54:03 jsing Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -123,7 +123,6 @@ | |||
| 123 | #include <openssl/err.h> | 123 | #include <openssl/err.h> |
| 124 | #include <openssl/lhash.h> | 124 | #include <openssl/lhash.h> |
| 125 | #include <openssl/pem.h> | 125 | #include <openssl/pem.h> |
| 126 | #include <openssl/rand.h> | ||
| 127 | #include <openssl/ssl.h> | 126 | #include <openssl/ssl.h> |
| 128 | #include <openssl/x509.h> | 127 | #include <openssl/x509.h> |
| 129 | 128 | ||
| @@ -233,7 +232,6 @@ openssl_shutdown(void) | |||
| 233 | 232 | ||
| 234 | CRYPTO_cleanup_all_ex_data(); | 233 | CRYPTO_cleanup_all_ex_data(); |
| 235 | ERR_remove_thread_state(NULL); | 234 | ERR_remove_thread_state(NULL); |
| 236 | RAND_cleanup(); | ||
| 237 | ERR_free_strings(); | 235 | ERR_free_strings(); |
| 238 | } | 236 | } |
| 239 | 237 | ||
