openssl: bump to 1.1.1d
[openwrt/openwrt.git] / package / libs / openssl / patches / 100-Configure-afalg-support.patch
1 From 559fbff13af9ce2fbc0b9bc5727a7323e1db6217 Mon Sep 17 00:00:00 2001
2 From: Eneas U de Queiroz <cote2004-github@yahoo.com>
3 Date: Thu, 27 Sep 2018 08:29:21 -0300
4 Subject: Do not use host kernel version to disable AFALG
5
6 This patch prevents the Configure script from using the host kernel
7 version to disable building the AFALG engine on openwrt targets.
8
9 Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
10
11 diff --git a/Configure b/Configure
12 index 5a699836f3..74d057c219 100755
13 --- a/Configure
14 +++ b/Configure
15 @@ -1532,7 +1532,9 @@ unless ($disabled{"crypto-mdebug-backtrace"})
16
17 unless ($disabled{afalgeng}) {
18 $config{afalgeng}="";
19 - if (grep { $_ eq 'afalgeng' } @{$target{enable}}) {
20 + if ($target =~ m/openwrt$/) {
21 + push @{$config{engdirs}}, "afalg";
22 + } elsif (grep { $_ eq 'afalgeng' } @{$target{enable}}) {
23 my $minver = 4*10000 + 1*100 + 0;
24 if ($config{CROSS_COMPILE} eq "") {
25 my $verstr = `uname -r`;