diff options
| author | deraadt <> | 2014-06-07 22:23:12 +0000 |
|---|---|---|
| committer | deraadt <> | 2014-06-07 22:23:12 +0000 |
| commit | ae869ed69546fcf32da0a31d33209356522a6011 (patch) | |
| tree | 974be678316c95805c95e61416f75191d5b20bbe /src/lib/libssl/d1_clnt.c | |
| parent | 564fdd27b4a21a9081aaeb1516603ed9ba7a8652 (diff) | |
| download | openbsd-ae869ed69546fcf32da0a31d33209356522a6011.tar.gz openbsd-ae869ed69546fcf32da0a31d33209356522a6011.tar.bz2 openbsd-ae869ed69546fcf32da0a31d33209356522a6011.zip | |
http://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=2016265dfbab162ec30718b5e7480add42598158
Don't know the full story, but it looks like a "can't do random
perfectly, so do it god awful" problem was found in 2013, and
replaced with "only do it badly if a flag is set". New flags
(SSL_MODE_SEND_SERVERHELLO_TIME and SSL_MODE_SEND_SERVERHELLO_TIME)
were added [Ben Laurie?] to support the old scheme of "use time_t
for first 4 bytes of the random buffer".
Nothing uses these flags [ecosystem scan by sthen]
Fully discourage use of these flags in the future by removing
support & definition of them. The buflen < 4 check is also interesting,
because no entropy would be returned. No callers passed such small
buffers.
ok miod sthen
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/d1_clnt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/libssl/d1_clnt.c b/src/lib/libssl/d1_clnt.c index 8ff4d8e369..976b753a87 100644 --- a/src/lib/libssl/d1_clnt.c +++ b/src/lib/libssl/d1_clnt.c | |||
| @@ -791,8 +791,7 @@ dtls1_client_hello(SSL *s) | |||
| 791 | for (i = 0; p[i]=='\0' && i < sizeof(s->s3->client_random); i++) | 791 | for (i = 0; p[i]=='\0' && i < sizeof(s->s3->client_random); i++) |
| 792 | ; | 792 | ; |
| 793 | if (i == sizeof(s->s3->client_random)) | 793 | if (i == sizeof(s->s3->client_random)) |
| 794 | ssl_fill_hello_random(s, 0, p, | 794 | RAND_pseudo_bytes(p, sizeof(s->s3->client_random)); |
| 795 | sizeof(s->s3->client_random)); | ||
| 796 | 795 | ||
| 797 | /* Do the message type and length last */ | 796 | /* Do the message type and length last */ |
| 798 | d = p = &(buf[DTLS1_HM_HEADER_LENGTH]); | 797 | d = p = &(buf[DTLS1_HM_HEADER_LENGTH]); |
