Skip to content

Commit 0c74e2a

Browse files
shigekirvagg
authored andcommitted
deps: upgrade openssl sources to 1.0.2j
This replaces all sources of openssl-1.0.2j.tar.gz into deps/openssl/openssl PR-URL: #8786 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
1 parent c7a601c commit 0c74e2a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+309
-38454
lines changed

deps/openssl/openssl/CHANGES

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22
OpenSSL CHANGES
33
_______________
44

5+
Changes between 1.0.2i and 1.0.2j [26 Sep 2016]
6+
7+
*) Missing CRL sanity check
8+
9+
A bug fix which included a CRL sanity check was added to OpenSSL 1.1.0
10+
but was omitted from OpenSSL 1.0.2i. As a result any attempt to use
11+
CRLs in OpenSSL 1.0.2i will crash with a null pointer exception.
12+
13+
This issue only affects the OpenSSL 1.0.2i
14+
(CVE-2016-7052)
15+
[Matt Caswell]
16+
517
Changes between 1.0.2h and 1.0.2i [22 Sep 2016]
618

719
*) OCSP Status Request extension unbounded memory growth

deps/openssl/openssl/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Makefile for OpenSSL
55
##
66

7-
VERSION=1.0.2i
7+
VERSION=1.0.2j
88
MAJOR=1
99
MINOR=0.2
1010
SHLIB_VERSION_NUMBER=1.0.0

deps/openssl/openssl/Makefile.bak

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Makefile for OpenSSL
55
##
66

7-
VERSION=1.0.2i
7+
VERSION=1.0.2j
88
MAJOR=1
99
MINOR=0.2
1010
SHLIB_VERSION_NUMBER=1.0.0

deps/openssl/openssl/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
This file gives a brief overview of the major changes between each OpenSSL
66
release. For more details please read the CHANGES file.
77

8+
Major changes between OpenSSL 1.0.2i and OpenSSL 1.0.2j [26 Sep 2016]
9+
10+
o Fix Use After Free for large message sizes (CVE-2016-6309)
11+
812
Major changes between OpenSSL 1.0.2h and OpenSSL 1.0.2i [22 Sep 2016]
913

1014
o OCSP Status Request extension unbounded memory growth (CVE-2016-6304)

deps/openssl/openssl/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
OpenSSL 1.0.2i 22 Sep 2016
2+
OpenSSL 1.0.2j 26 Sep 2016
33

44
Copyright (c) 1998-2015 The OpenSSL Project
55
Copyright (c) 1995-1998 Eric A. Young, Tim J. Hudson

deps/openssl/openssl/apps/app_rand.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,7 @@ int app_RAND_load_file(const char *file, BIO *bio_e, int dont_warn)
124124
char buffer[200];
125125

126126
#ifdef OPENSSL_SYS_WINDOWS
127-
/*
128-
* allocate 2 to dont_warn not to use RAND_screen() via
129-
* -no_rand_screen option in s_client
130-
*/
131-
if (dont_warn != 2) {
132-
BIO_printf(bio_e, "Loading 'screen' into random state -");
133-
BIO_flush(bio_e);
134-
RAND_screen();
135-
BIO_printf(bio_e, " done\n");
136-
}
127+
RAND_screen();
137128
#endif
138129

139130
if (file == NULL)

deps/openssl/openssl/apps/s_client.c

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,6 @@ typedef unsigned int u_int;
180180
# include <fcntl.h>
181181
#endif
182182

183-
/* Use Windows API with STD_INPUT_HANDLE when checking for input?
184-
Don't look at OPENSSL_SYS_MSDOS for this, since it is always defined if
185-
OPENSSL_SYS_WINDOWS is defined */
186-
#if defined(OPENSSL_SYS_WINDOWS) && !defined(OPENSSL_SYS_WINCE) && defined(STD_INPUT_HANDLE)
187-
#define OPENSSL_USE_STD_INPUT_HANDLE
188-
#endif
189-
190183
#undef PROG
191184
#define PROG s_client_main
192185

@@ -236,7 +229,6 @@ static BIO *bio_c_msg = NULL;
236229
static int c_quiet = 0;
237230
static int c_ign_eof = 0;
238231
static int c_brief = 0;
239-
static int c_no_rand_screen = 0;
240232

241233
#ifndef OPENSSL_NO_PSK
242234
/* Default PSK identity and key */
@@ -452,10 +444,6 @@ static void sc_usage(void)
452444
" -keymatexport label - Export keying material using label\n");
453445
BIO_printf(bio_err,
454446
" -keymatexportlen len - Export len bytes of keying material (default 20)\n");
455-
#ifdef OPENSSL_SYS_WINDOWS
456-
BIO_printf(bio_err,
457-
" -no_rand_screen - Do not use RAND_screen() to initialize random state\n");
458-
#endif
459447
}
460448

461449
#ifndef OPENSSL_NO_TLSEXT
@@ -1148,10 +1136,6 @@ int MAIN(int argc, char **argv)
11481136
keymatexportlen = atoi(*(++argv));
11491137
if (keymatexportlen == 0)
11501138
goto bad;
1151-
#ifdef OPENSSL_SYS_WINDOWS
1152-
} else if (strcmp(*argv, "-no_rand_screen") == 0) {
1153-
c_no_rand_screen = 1;
1154-
#endif
11551139
} else {
11561140
BIO_printf(bio_err, "unknown option %s\n", *argv);
11571141
badop = 1;
@@ -1268,7 +1252,7 @@ int MAIN(int argc, char **argv)
12681252
if (!load_excert(&exc, bio_err))
12691253
goto end;
12701254
1271-
if (!app_RAND_load_file(NULL, bio_err, ++c_no_rand_screen) && inrand == NULL
1255+
if (!app_RAND_load_file(NULL, bio_err, 1) && inrand == NULL
12721256
&& !RAND_status()) {
12731257
BIO_printf(bio_err,
12741258
"warning, not much extra random data, consider using the -rand option\n");
@@ -1806,16 +1790,17 @@ int MAIN(int argc, char **argv)
18061790
tv.tv_usec = 0;
18071791
i = select(width, (void *)&readfds, (void *)&writefds,
18081792
NULL, &tv);
1809-
#if defined(OPENSSL_USE_STD_INPUT_HANDLE)
1793+
# if defined(OPENSSL_SYS_WINCE) || defined(OPENSSL_SYS_MSDOS)
1794+
if (!i && (!_kbhit() || !read_tty))
1795+
continue;
1796+
# else
18101797
if (!i && (!((_kbhit())
18111798
|| (WAIT_OBJECT_0 ==
18121799
WaitForSingleObject(GetStdHandle
18131800
(STD_INPUT_HANDLE),
18141801
0)))
18151802
|| !read_tty))
18161803
continue;
1817-
#else
1818-
if(!i && (!_kbhit() || !read_tty) ) continue;
18191804
# endif
18201805
} else
18211806
i = select(width, (void *)&readfds, (void *)&writefds,
@@ -2017,12 +2002,12 @@ int MAIN(int argc, char **argv)
20172002
}
20182003
}
20192004
#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_MSDOS)
2020-
#if defined(OPENSSL_USE_STD_INPUT_HANDLE)
2005+
# if defined(OPENSSL_SYS_WINCE) || defined(OPENSSL_SYS_MSDOS)
2006+
else if (_kbhit())
2007+
# else
20212008
else if ((_kbhit())
20222009
|| (WAIT_OBJECT_0 ==
20232010
WaitForSingleObject(GetStdHandle(STD_INPUT_HANDLE), 0)))
2024-
#else
2025-
else if (_kbhit())
20262011
# endif
20272012
#elif defined (OPENSSL_SYS_NETWARE)
20282013
else if (_kbhit())

deps/openssl/openssl/crypto/engine/eng_cryptodev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ static int cryptodev_digest_copy(EVP_MD_CTX *to, const EVP_MD_CTX *from)
939939
if (fstate->mac_len != 0) {
940940
if (fstate->mac_data != NULL) {
941941
dstate->mac_data = OPENSSL_malloc(fstate->mac_len);
942-
if (dstate->ac_data == NULL) {
942+
if (dstate->mac_data == NULL) {
943943
printf("cryptodev_digest_init: malloc failed\n");
944944
return 0;
945945
}

0 commit comments

Comments
 (0)