diff options
Diffstat (limited to 'src/lib/libssl/s23_clnt.c')
-rw-r--r-- | src/lib/libssl/s23_clnt.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/libssl/s23_clnt.c b/src/lib/libssl/s23_clnt.c index 81683e5949..7967344e2a 100644 --- a/src/lib/libssl/s23_clnt.c +++ b/src/lib/libssl/s23_clnt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s23_clnt.c,v 1.32 2014/08/10 14:42:56 jsing Exp $ */ | 1 | /* $OpenBSD: s23_clnt.c,v 1.33 2014/10/18 16:13:16 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 | * |
@@ -112,7 +112,6 @@ | |||
112 | #include <stdio.h> | 112 | #include <stdio.h> |
113 | #include "ssl_locl.h" | 113 | #include "ssl_locl.h" |
114 | #include <openssl/buffer.h> | 114 | #include <openssl/buffer.h> |
115 | #include <openssl/rand.h> | ||
116 | #include <openssl/objects.h> | 115 | #include <openssl/objects.h> |
117 | #include <openssl/evp.h> | 116 | #include <openssl/evp.h> |
118 | 117 | ||
@@ -317,8 +316,7 @@ ssl23_client_hello(SSL *s) | |||
317 | 316 | ||
318 | buf = (unsigned char *)s->init_buf->data; | 317 | buf = (unsigned char *)s->init_buf->data; |
319 | if (s->state == SSL23_ST_CW_CLNT_HELLO_A) { | 318 | if (s->state == SSL23_ST_CW_CLNT_HELLO_A) { |
320 | p = s->s3->client_random; | 319 | arc4random_buf(s->s3->client_random, SSL3_RANDOM_SIZE); |
321 | RAND_pseudo_bytes(p, SSL3_RANDOM_SIZE); | ||
322 | 320 | ||
323 | if (version == TLS1_2_VERSION) { | 321 | if (version == TLS1_2_VERSION) { |
324 | version_major = TLS1_2_VERSION_MAJOR; | 322 | version_major = TLS1_2_VERSION_MAJOR; |