Skip to content

Commit 8507f0f

Browse files
danbevMylesBorins
authored andcommitted
deps: upgrade openssl sources to 1.0.2l
This replaces all sources of openssl-1.0.2l.tar.gz into deps/openssl/openssl Fixes: #13161 Backport-PR-URL: #13696 PR-URL: #13233 Reviewed-By: Shigeki Ohtsu <[email protected]> Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 9bfada8 commit 8507f0f

File tree

215 files changed

+1770
-39189
lines changed

Some content is hidden

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

215 files changed

+1770
-39189
lines changed

deps/openssl/openssl/CHANGES

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

5+
Changes between 1.0.2k and 1.0.2l [25 May 2017]
6+
7+
*) Have 'config' recognise 64-bit mingw and choose 'mingw64' as the target
8+
platform rather than 'mingw'.
9+
[Richard Levitte]
10+
511
Changes between 1.0.2j and 1.0.2k [26 Jan 2017]
612

713
*) Truncated packet could crash via OOB read

deps/openssl/openssl/Configure

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ my $usage="Usage: Configure [no-<cipher> ...] [enable-<cipher> ...] [experimenta
109109
# Minimum warning options... any contributions to OpenSSL should at least get
110110
# past these.
111111

112-
my $gcc_devteam_warn = "-Wall -pedantic -DPEDANTIC -Wno-long-long -Wsign-compare -Wmissing-prototypes -Wshadow -Wformat -Werror -DCRYPTO_MDEBUG_ALL -DCRYPTO_MDEBUG_ABORT -DREF_CHECK -DOPENSSL_NO_DEPRECATED";
112+
my $gcc_devteam_warn = "-Wall -pedantic -DPEDANTIC -Wno-long-long -Wsign-compare -Wmissing-prototypes -Wshadow -Wformat -Wundef -Werror -DCRYPTO_MDEBUG_ALL -DCRYPTO_MDEBUG_ABORT -DREF_CHECK -DOPENSSL_NO_DEPRECATED";
113113

114114
# TODO(openssl-team): fix problems and investigate if (at least) the following
115115
# warnings can also be enabled:
@@ -2041,12 +2041,13 @@ EOF
20412041
close(OUT);
20422042
} else {
20432043
my $make_command = "$make PERL=\'$perl\'";
2044-
my $make_targets = "";
2045-
$make_targets .= " links" if $symlink;
2046-
$make_targets .= " depend" if $depflags ne $default_depflags && $make_depend;
2047-
$make_targets .= " gentests" if $symlink;
2048-
(system $make_command.$make_targets) == 0 or exit $?
2049-
if $make_targets ne "";
2044+
my @make_targets = ();
2045+
push @make_targets, "links" if $symlink;
2046+
push @make_targets, "depend" if $depflags ne $default_depflags && $make_depend;
2047+
push @make_targets, "gentests" if $symlink;
2048+
foreach my $make_target (@make_targets) {
2049+
(system "$make_command $make_target") == 0 or exit $?;
2050+
}
20502051
if ( $perl =~ m@^/@) {
20512052
&dofile("tools/c_rehash",$perl,'^#!/', '#!%s','^my \$dir;$', 'my $dir = "' . $openssldir . '";', '^my \$prefix;$', 'my $prefix = "' . $prefix . '";');
20522053
&dofile("apps/CA.pl",$perl,'^#!/', '#!%s');
@@ -2056,8 +2057,8 @@ EOF
20562057
&dofile("apps/CA.pl",'/usr/local/bin/perl','^#!/', '#!%s');
20572058
}
20582059
if ($depflags ne $default_depflags && !$make_depend) {
2059-
$warn_make_depend++;
2060-
}
2060+
$warn_make_depend++;
2061+
}
20612062
}
20622063

20632064
# create the ms/version32.rc file if needed

deps/openssl/openssl/LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
LICENSE ISSUES
33
==============
44

5-
The OpenSSL toolkit stays under a dual license, i.e. both the conditions of
5+
The OpenSSL toolkit stays under a double license, i.e. both the conditions of
66
the OpenSSL License and the original SSLeay license apply to the toolkit.
77
See below for the actual license texts. Actually both licenses are BSD-style
88
Open Source licenses. In case of any license issues related to OpenSSL
@@ -12,7 +12,7 @@
1212
---------------
1313

1414
/* ====================================================================
15-
* Copyright (c) 1998-2016 The OpenSSL Project. All rights reserved.
15+
* Copyright (c) 1998-2017 The OpenSSL Project. All rights reserved.
1616
*
1717
* Redistribution and use in source and binary forms, with or without
1818
* modification, are permitted provided that the following conditions

deps/openssl/openssl/Makefile

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

7-
VERSION=1.0.2k
7+
VERSION=1.0.2l
88
MAJOR=1
99
MINOR=0.2
1010
SHLIB_VERSION_NUMBER=1.0.0
@@ -426,6 +426,14 @@ clean: libclean
426426
rm -fr $$i/*; \
427427
done
428428

429+
distclean: clean
430+
-$(RM) `find . -name .git -prune -o -type l -print`
431+
$(RM) apps/CA.pl
432+
$(RM) test/evptests.txt test/newkey.pem test/testkey.pem test/testreq.pem
433+
$(RM) tools/c_rehash
434+
$(RM) crypto/opensslconf.h
435+
$(RM) Makefile Makefile.bak
436+
429437
makefile.one: files
430438
$(PERL) util/mk1mf.pl >makefile.one; \
431439
sh util/do_ms.sh

deps/openssl/openssl/Makefile.bak

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

7-
VERSION=1.0.2k
7+
VERSION=1.0.2l
88
MAJOR=1
99
MINOR=0.2
1010
SHLIB_VERSION_NUMBER=1.0.0
@@ -426,6 +426,14 @@ clean: libclean
426426
rm -fr $$i/*; \
427427
done
428428

429+
distclean: clean
430+
-$(RM) `find . -name .git -prune -o -type l -print`
431+
$(RM) apps/CA.pl
432+
$(RM) test/evptests.txt test/newkey.pem test/testkey.pem test/testreq.pem
433+
$(RM) tools/c_rehash
434+
$(RM) crypto/opensslconf.h
435+
$(RM) Makefile Makefile.bak
436+
429437
makefile.one: files
430438
$(PERL) util/mk1mf.pl >makefile.one; \
431439
sh util/do_ms.sh

deps/openssl/openssl/Makefile.org

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,14 @@ clean: libclean
424424
rm -fr $$i/*; \
425425
done
426426

427+
distclean: clean
428+
-$(RM) `find . -name .git -prune -o -type l -print`
429+
$(RM) apps/CA.pl
430+
$(RM) test/evptests.txt test/newkey.pem test/testkey.pem test/testreq.pem
431+
$(RM) tools/c_rehash
432+
$(RM) crypto/opensslconf.h
433+
$(RM) Makefile Makefile.bak
434+
427435
makefile.one: files
428436
$(PERL) util/mk1mf.pl >makefile.one; \
429437
sh util/do_ms.sh

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.2k and OpenSSL 1.0.2l [25 May 2017]
9+
10+
o config now recognises 64-bit mingw and chooses mingw64 instead of mingw
11+
812
Major changes between OpenSSL 1.0.2j and OpenSSL 1.0.2k [26 Jan 2017]
913

1014
o Truncated packet could crash via OOB read (CVE-2017-3731)

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.2k 26 Jan 2017
2+
OpenSSL 1.0.2l 25 May 2017
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/ca.c

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2126,22 +2126,23 @@ static int do_body(X509 **xret, EVP_PKEY *pkey, X509 *x509,
21262126
goto err;
21272127
}
21282128

2129-
for (i = 0; i < DB_NUMBER; i++) {
2129+
for (i = 0; i < DB_NUMBER; i++)
21302130
irow[i] = row[i];
2131-
row[i] = NULL;
2132-
}
21332131
irow[DB_NUMBER] = NULL;
21342132

21352133
if (!TXT_DB_insert(db->db, irow)) {
21362134
BIO_printf(bio_err, "failed to update database\n");
21372135
BIO_printf(bio_err, "TXT_DB error number %ld\n", db->db->error);
21382136
goto err;
21392137
}
2138+
irow = NULL;
21402139
ok = 1;
21412140
err:
2142-
for (i = 0; i < DB_NUMBER; i++)
2143-
if (row[i] != NULL)
2141+
if (irow != NULL) {
2142+
for (i = 0; i < DB_NUMBER; i++)
21442143
OPENSSL_free(row[i]);
2144+
OPENSSL_free(irow);
2145+
}
21452146

21462147
if (CAname != NULL)
21472148
X509_NAME_free(CAname);
@@ -2396,18 +2397,20 @@ static int do_revoke(X509 *x509, CA_DB *db, int type, char *value)
23962397
goto err;
23972398
}
23982399

2399-
for (i = 0; i < DB_NUMBER; i++) {
2400+
for (i = 0; i < DB_NUMBER; i++)
24002401
irow[i] = row[i];
2401-
row[i] = NULL;
2402-
}
24032402
irow[DB_NUMBER] = NULL;
24042403

24052404
if (!TXT_DB_insert(db->db, irow)) {
24062405
BIO_printf(bio_err, "failed to update database\n");
24072406
BIO_printf(bio_err, "TXT_DB error number %ld\n", db->db->error);
2407+
OPENSSL_free(irow);
24082408
goto err;
24092409
}
24102410

2411+
for (i = 0; i < DB_NUMBER; i++)
2412+
row[i] = NULL;
2413+
24112414
/* Revoke Certificate */
24122415
if (type == -1)
24132416
ok = 1;

0 commit comments

Comments
 (0)