summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/crypto/des/enc_writ.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2016-09-22 15:55:27 +0000
committerjkim <jkim@FreeBSD.org>2016-09-22 15:55:27 +0000
commit3599587ae793583e28ee9f173cd8fd9a871306f3 (patch)
treec5dc8fe4f348f5db5683bbe8d4f3413a7440b924 /crypto/openssl/crypto/des/enc_writ.c
parent73e9e3e293d8e68ffafc5d04f0cc74a824c84185 (diff)
downloadFreeBSD-src-3599587ae793583e28ee9f173cd8fd9a871306f3.zip
FreeBSD-src-3599587ae793583e28ee9f173cd8fd9a871306f3.tar.gz
MFS: r306195
Merge OpenSSL 1.0.2i. Approved by: re (gjb, implicit), so (delphij)
Diffstat (limited to 'crypto/openssl/crypto/des/enc_writ.c')
-rw-r--r--crypto/openssl/crypto/des/enc_writ.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssl/crypto/des/enc_writ.c b/crypto/openssl/crypto/des/enc_writ.c
index bfaabde..c2aaa8e 100644
--- a/crypto/openssl/crypto/des/enc_writ.c
+++ b/crypto/openssl/crypto/des/enc_writ.c
@@ -135,7 +135,7 @@ int DES_enc_write(int fd, const void *_buf, int len,
if (len < 8) {
cp = shortbuf;
memcpy(shortbuf, buf, len);
- if (RAND_pseudo_bytes(shortbuf + len, 8 - len) < 0) {
+ if (RAND_bytes(shortbuf + len, 8 - len) <= 0) {
return -1;
}
rnum = 8;
OpenPOWER on IntegriCloud