Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[openssl] update to version 1.0.2o Fixes MER#1898
- Loading branch information
Nokius
committed
Jun 29, 2018
1 parent
67f3453
commit 99c8b91
Showing
71 changed files
with
1,363 additions
and
750 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "openssl"] | ||
path = openssl | ||
url = https://github.com/openssl/openssl.git |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff -up openssl-1.0.2i/engines/e_chil.c.chil openssl-1.0.2i/engines/e_chil.c | ||
--- openssl-1.0.2i/engines/e_chil.c.chil 2016-09-22 12:23:06.000000000 +0200 | ||
+++ openssl-1.0.2i/engines/e_chil.c 2016-09-22 13:49:32.532017102 +0200 | ||
@@ -1274,6 +1274,11 @@ static int hwcrhk_insert_card(const char | ||
UI *ui; | ||
void *callback_data = NULL; | ||
UI_METHOD *ui_method = NULL; | ||
+ /* Despite what the documentation says prompt_info can be | ||
+ * an empty string. | ||
+ */ | ||
+ if (prompt_info && !*prompt_info) | ||
+ prompt_info = NULL; | ||
|
||
if (cactx) { | ||
if (cactx->ui_method) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
diff -up openssl-1.0.2i/crypto/evp/bio_enc.c.enc-fail openssl-1.0.2i/crypto/evp/bio_enc.c | ||
--- openssl-1.0.2i/crypto/evp/bio_enc.c.enc-fail 2016-09-22 12:23:06.000000000 +0200 | ||
+++ openssl-1.0.2i/crypto/evp/bio_enc.c 2016-09-22 13:58:24.592381002 +0200 | ||
@@ -307,8 +307,9 @@ static long enc_ctrl(BIO *b, int cmd, lo | ||
case BIO_CTRL_RESET: | ||
ctx->ok = 1; | ||
ctx->finished = 0; | ||
- EVP_CipherInit_ex(&(ctx->cipher), NULL, NULL, NULL, NULL, | ||
- ctx->cipher.encrypt); | ||
+ if (!EVP_CipherInit_ex(&(ctx->cipher), NULL, NULL, NULL, NULL, | ||
+ ctx->cipher.encrypt)) | ||
+ ctx->ok = 0; | ||
ret = BIO_ctrl(b->next_bio, cmd, num, ptr); | ||
break; | ||
case BIO_CTRL_EOF: /* More to read */ | ||
@@ -430,7 +431,8 @@ void BIO_set_cipher(BIO *b, const EVP_CI | ||
|
||
b->init = 1; | ||
ctx = (BIO_ENC_CTX *)b->ptr; | ||
- EVP_CipherInit_ex(&(ctx->cipher), c, NULL, k, i, e); | ||
+ if (!EVP_CipherInit_ex(&(ctx->cipher), c, NULL, k, i, e)) | ||
+ ctx->ok = 0; | ||
|
||
if (b->callback != NULL) | ||
b->callback(b, BIO_CB_CTRL, (const char *)c, BIO_CTRL_SET, e, 1L); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
diff --git a/Configure b/Configure | ||
index c39f71a..7f3d905 100755 | ||
--- a/Configure | ||
+++ b/Configure | ||
@@ -727,6 +727,7 @@ my $idx_multilib = $idx++; | ||
my $prefix=""; | ||
my $libdir=""; | ||
my $openssldir=""; | ||
+my $enginesdir=""; | ||
my $exe_ext=""; | ||
my $install_prefix= "$ENV{'INSTALL_PREFIX'}"; | ||
my $cross_compile_prefix=""; | ||
@@ -956,6 +957,10 @@ PROCESS_ARGS: | ||
{ | ||
$openssldir=$1; | ||
} | ||
+ elsif (/^--enginesdir=(.*)$/) | ||
+ { | ||
+ $enginesdir=$1; | ||
+ } | ||
elsif (/^--install.prefix=(.*)$/) | ||
{ | ||
$install_prefix=$1; | ||
@@ -1207,7 +1212,7 @@ chop $prefix if $prefix =~ /.\/$/; | ||
|
||
$openssldir=$prefix . "/ssl" if $openssldir eq ""; | ||
$openssldir=$prefix . "/" . $openssldir if $openssldir !~ /(^\/|^[a-zA-Z]:[\\\/])/; | ||
- | ||
+$enginesdir="$prefix/lib/engines" if $enginesdir eq ""; | ||
|
||
print "IsMK1MF=$IsMK1MF\n"; | ||
|
||
@@ -1709,6 +1714,7 @@ while (<IN>) | ||
s/^INSTALLTOP=.*$/INSTALLTOP=$prefix/; | ||
s/^MULTILIB=.*$/MULTILIB=$multilib/; | ||
s/^OPENSSLDIR=.*$/OPENSSLDIR=$openssldir/; | ||
+ s/^ENGINESDIR=.*$/ENGINESDIR=$enginesdir/; | ||
s/^LIBDIR=.*$/LIBDIR=$libdir/; | ||
s/^INSTALL_PREFIX=.*$/INSTALL_PREFIX=$install_prefix/; | ||
s/^PLATFORM=.*$/PLATFORM=$target/; | ||
@@ -1915,7 +1921,7 @@ while (<IN>) | ||
} | ||
elsif (/^#define\s+ENGINESDIR/) | ||
{ | ||
- my $foo = "$prefix/$libdir/engines"; | ||
+ my $foo = "$enginesdir"; | ||
$foo =~ s/\\/\\\\/g; | ||
print OUT "#define ENGINESDIR \"$foo\"\n"; | ||
} | ||
diff --git a/Makefile.org b/Makefile.org | ||
index 2377f50..fe8d54c 100644 | ||
--- a/Makefile.org | ||
+++ b/Makefile.org | ||
@@ -28,6 +28,7 @@ INSTALLTOP=/usr/local/ssl | ||
|
||
# Do not edit this manually. Use Configure --openssldir=DIR do change this! | ||
OPENSSLDIR=/usr/local/ssl | ||
+ENGINESDIR=$${libdir}/engines | ||
|
||
# NO_IDEA - Define to build without the IDEA algorithm | ||
# NO_RC4 - Define to build without the RC4 algorithm | ||
@@ -368,7 +369,7 @@ libcrypto.pc: Makefile | ||
echo 'exec_prefix=$${prefix}'; \ | ||
echo 'libdir=$${exec_prefix}/$(LIBDIR)'; \ | ||
echo 'includedir=$${prefix}/include'; \ | ||
- echo 'enginesdir=$${libdir}/engines'; \ | ||
+ echo 'enginesdir=$(ENGINESDIR)'; \ | ||
echo ''; \ | ||
echo 'Name: OpenSSL-libcrypto'; \ | ||
echo 'Description: OpenSSL cryptography library'; \ | ||
diff --git a/engines/Makefile b/engines/Makefile | ||
index 2058ff4..a2c407b 100644 | ||
--- a/engines/Makefile | ||
+++ b/engines/Makefile | ||
@@ -124,7 +124,7 @@ install: | ||
esac; \ | ||
cp $$pfx$$l$$sfx $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \ | ||
fi; \ | ||
- chmod 555 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \ | ||
+ chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new; \ | ||
mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx.new $(INSTALL_PREFIX)$(INSTALLTOP)/$(LIBDIR)/engines/$$pfx$$l$$sfx ); \ | ||
done; \ | ||
fi |
Oops, something went wrong.