summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-05-29 21:25:16 +0000
committertedu <tedu@openbsd.org>2014-05-29 21:25:16 +0000
commitbbfe2e684ec6a98555d7b90535a989c86279b802 (patch)
treeed74391f0005a6cf66a4574afe7557cfbb0bbe09 /lib/libssl/src
parentwe no longer care that these aren't used for ssl2 (diff)
downloadwireguard-openbsd-bbfe2e684ec6a98555d7b90535a989c86279b802.tar.xz
wireguard-openbsd-bbfe2e684ec6a98555d7b90535a989c86279b802.zip
the comment says RAND_pseudo_bytes should be RAND_bytes. make it so.
ok deraadt
Diffstat (limited to 'lib/libssl/src')
-rw-r--r--lib/libssl/src/ssl/s3_srvr.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/libssl/src/ssl/s3_srvr.c b/lib/libssl/src/ssl/s3_srvr.c
index b53f27a47d8..481cf37bef6 100644
--- a/lib/libssl/src/ssl/s3_srvr.c
+++ b/lib/libssl/src/ssl/s3_srvr.c
@@ -2137,12 +2137,7 @@ ssl3_get_client_key_exchange(SSL *s)
i = SSL_MAX_MASTER_KEY_LENGTH;
p[0] = s->client_version >> 8;
p[1] = s->client_version & 0xff;
- /*
- * Should be RAND_bytes, but we cannot work around a
- * failure.
- */
- if (RAND_pseudo_bytes(p+2, i-2) <= 0)
- goto err;
+ RAND_bytes(p+2, i-2);
}
s->session->master_key_length =