diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/asn_mime.c')
-rw-r--r-- | src/lib/libcrypto/asn1/asn_mime.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/asn_mime.c b/src/lib/libcrypto/asn1/asn_mime.c index c153deca1e..afa0abd696 100644 --- a/src/lib/libcrypto/asn1/asn_mime.c +++ b/src/lib/libcrypto/asn1/asn_mime.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: asn_mime.c,v 1.22 2014/07/13 16:03:09 beck Exp $ */ | 1 | /* $OpenBSD: asn_mime.c,v 1.23 2014/10/22 13:02:03 jsing Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project. | 3 | * project. |
4 | */ | 4 | */ |
@@ -54,12 +54,12 @@ | |||
54 | 54 | ||
55 | #include <ctype.h> | 55 | #include <ctype.h> |
56 | #include <stdio.h> | 56 | #include <stdio.h> |
57 | #include <stdlib.h> | ||
57 | #include <string.h> | 58 | #include <string.h> |
58 | 59 | ||
59 | #include <openssl/asn1.h> | 60 | #include <openssl/asn1.h> |
60 | #include <openssl/asn1t.h> | 61 | #include <openssl/asn1t.h> |
61 | #include <openssl/err.h> | 62 | #include <openssl/err.h> |
62 | #include <openssl/rand.h> | ||
63 | #include <openssl/x509.h> | 63 | #include <openssl/x509.h> |
64 | 64 | ||
65 | #include "asn1_locl.h" | 65 | #include "asn1_locl.h" |
@@ -298,7 +298,7 @@ SMIME_write_ASN1(BIO *bio, ASN1_VALUE *val, BIO *data, int flags, | |||
298 | if ((flags & SMIME_DETACHED) && data) { | 298 | if ((flags & SMIME_DETACHED) && data) { |
299 | /* We want multipart/signed */ | 299 | /* We want multipart/signed */ |
300 | /* Generate a random boundary */ | 300 | /* Generate a random boundary */ |
301 | RAND_pseudo_bytes((unsigned char *)bound, 32); | 301 | arc4random_buf(bound, 32); |
302 | for (i = 0; i < 32; i++) { | 302 | for (i = 0; i < 32; i++) { |
303 | c = bound[i] & 0xf; | 303 | c = bound[i] & 0xf; |
304 | if (c < 10) | 304 | if (c < 10) |