diff options
author | jsing <> | 2014-10-22 13:54:03 +0000 |
---|---|---|
committer | jsing <> | 2014-10-22 13:54:03 +0000 |
commit | 85b016137f0bd9cf3b15129668f9d794a71c6d34 (patch) | |
tree | 5182be1e2bb99eb4ec60a5c42f2f953b4c1cadf1 /src/usr.bin/openssl/openssl.c | |
parent | e931cb809e30a11ec87c1f47536227dc2f58dbdb (diff) | |
download | openbsd-85b016137f0bd9cf3b15129668f9d794a71c6d34.tar.gz openbsd-85b016137f0bd9cf3b15129668f9d794a71c6d34.tar.bz2 openbsd-85b016137f0bd9cf3b15129668f9d794a71c6d34.zip |
Use arc4random_buf() instead of RAND(_pseudo)?_bytes().
ok bcook@
Diffstat (limited to 'src/usr.bin/openssl/openssl.c')
-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 | ||