]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Remove engine-related tests
authorMilan Broz <gmazyland@gmail.com>
Tue, 25 Nov 2025 16:18:46 +0000 (17:18 +0100)
committerNeil Horman <nhorman@openssl.org>
Thu, 4 Dec 2025 12:32:18 +0000 (07:32 -0500)
As engines are no longer included in test, these configuration
options make no longer sense.

All other test should be already enabled.

Fixes openssl/project#1376

Signed-off-by: Milan Broz <gmazyland@gmail.com>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29305)

Configurations/10-main.conf
Configure
INSTALL.md

index bef0ab3d887e0d9613f9569c3615e613e97253f2..92b3923e40fcc24d14f6ea6e7d256fd5a83b50c3 100644 (file)
@@ -2046,7 +2046,7 @@ my %targets = (
         asflags          => sub { vms_info()->{asflags} },
         perlasm_scheme   => sub { vms_info()->{perlasm_scheme} },
 
-        disable          => add('pinshared', 'loadereng'),
+        disable          => add('pinshared'),
 
     },
 
index adbd3230c1f46d1a9c13b1876740265b989ffd19..901f20be7b53cdb8a707049611527d0a4a8b8f49 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -24,14 +24,6 @@ use OpenSSL::config;
 
 # see INSTALL.md for instructions.
 
-# Set this variable to 1 if you want to skip all the Engine related tests
-# Re-enable with 0. (and you also should add back 'afalgeng' in
-# Configurations/10-main.conf to the enable array at (possible) line 697
-# (targets/linux_generic32)
-# This is needed for engine removal process, because we can't do it in one big
-# bulk and otherwise there will be failing tests and we want the CI to be happy.
-my $disable_engine_removal = 1;
-
 my $orig_death_handler = $SIG{__DIE__};
 $SIG{__DIE__} = \&death_handler;
 
@@ -430,7 +422,6 @@ my @dtls = qw(dtls1 dtls1_2);
 
 my @disablables = (
     "acvp-tests",
-    "afalgeng",
     "apps",
     "argon2",
     "aria",
@@ -449,7 +440,6 @@ my @disablables = (
     "bulk",
     "cached-fetch",
     "camellia",
-    "capieng",
     "winstore",
     "cast",
     "chacha",
@@ -466,7 +456,6 @@ my @disablables = (
     "hqinterop",
     "deprecated",
     "des",
-    "devcryptoeng",
     "dgram",
     "dh",
     "docs",
@@ -498,7 +487,6 @@ my @disablables = (
     "ktls",
     "legacy",
     "lms",
-    "loadereng",
     "makedepend",
     "md2",
     "md4",
@@ -511,7 +499,6 @@ my @disablables = (
     "nextprotoneg",
     "ocb",
     "ocsp",
-    "padlockeng",
     "pic",
     "pie",
     "pinshared",
@@ -591,8 +578,8 @@ my %deprecated_disablables = (
     "ssl2" => undef,
     "buf-freelists" => undef,
     "crypto-mdebug-backtrace" => undef,
-    "hw" => "hw",               # causes cascade, but no macro
-    "hw-padlock" => "padlockeng",
+    "hw" => undef,
+    "hw-padlock" => undef,
     "ripemd" => "rmd160",
     "ui" => "ui-console",
     "heartbeats" => undef,
@@ -696,12 +683,11 @@ my @disable_cascades = (
     "pic"               => [ "shared", "module" ],
 
     "engine"            => [ grep(/eng$/, @disablables) ],
-    "hw"                => [ "padlockeng" ],
 
     # no-autoalginit is only useful when building non-shared
     "autoalginit"       => [ "shared", "apps", "fips" ],
 
-    "stdio"             => [ "apps", "capieng", "egd" ],
+    "stdio"             => [ "apps", "egd" ],
     "apps"              => [ "tests" ],
     "tests"             => [ "external-tests" ],
     "comp"              => [ "zlib", "brotli", "zstd" ],
@@ -1817,38 +1803,6 @@ $config{CFLAGS} = [ map { $_ eq '--ossl-strict-warnings'
                               : ( $_ ) }
                     @{$config{CFLAGS}} ];
 
-if ($disable_engine_removal == 1) {
-    disable("engine-removal", "engine");
-    disable("engine-removal", "afalgeng");
-    disable("engine-removal", "capieng");
-    disable("engine-removal", "loadereng");
-    disable("engine-removal", "padlockeng");
-}
-
-unless ($disabled{afalgeng}) {
-    $config{afalgeng}="";
-    if (grep { $_ eq 'afalgeng' } @{$target{enable}}) {
-        push @{$config{engdirs}}, "afalg";
-    } else {
-        disable('not-linux', 'afalgeng');
-    }
-}
-
-unless ($disabled{devcryptoeng}) {
-    if ($target =~ m/^BSD/) {
-        my $maxver = 5*100 + 7;
-        my $sysstr = `uname -s`;
-        my $verstr = `uname -r`;
-        $sysstr =~ s|\R$||;
-        $verstr =~ s|\R$||;
-        my ($ma, $mi, @rest) = split m|\.|, $verstr;
-        my $ver = $ma*100 + $mi;
-        if ($sysstr eq 'OpenBSD' && $ver >= $maxver) {
-            disable('too-new-kernel', 'devcryptoeng');
-        }
-    }
-}
-
 unless ($disabled{ktls}) {
     $config{ktls}="";
     my $cc = $config{CROSS_COMPILE}.$config{CC};
index f90b937cef682e9b71fbb8906da917c5b041f9cb..364d153215b64f698f17c461f5438b470f2182ea 100644 (file)
@@ -584,12 +584,6 @@ In the following list, always the non-default variant is documented: if
 feature `xxxx` is disabled by default then `enable-xxxx` is documented and
 if feature `xxxx` is enabled by default then `no-xxxx` is documented.
 
-### no-afalgeng
-
-Don't build the AFALG engine.
-
-This option will be forced on a platform that does not support AFALG.
-
 ### enable-ktls
 
 Build with Kernel TLS support.
@@ -715,12 +709,6 @@ this option will reduce run-time memory usage but it also introduces a
 significant performance penalty.  This option is primarily designed to help
 with detecting incorrect reference counting.
 
-### no-capieng
-
-Don't build the CAPI engine.
-
-This option will be forced if on a platform that does not support CAPI.
-
 ### no-cmp
 
 Don't build support for Certificate Management Protocol (CMP)
@@ -773,13 +761,6 @@ Don't build and install documentation, i.e. manual pages in various forms.
 
 Don't build support for loading Dynamic Shared Objects (DSO)
 
-### enable-devcryptoeng
-
-Build the `/dev/crypto` engine.
-
-This option is automatically selected on the BSD platform, in which case it can
-be disabled with `no-devcryptoeng`.
-
 ### no-dynamic-engine
 
 Don't build the dynamically loaded engines.
@@ -940,14 +921,6 @@ Don't build support for the Next Protocol Negotiation (NPN) TLS extension.
 
 Don't build support for Online Certificate Status Protocol (OCSP).
 
-### no-padlockeng
-
-Don't build the padlock engine.
-
-### no-hw-padlock
-
-As synonym for `no-padlockeng`.  Deprecated and should not be used.
-
 ### no-pic
 
 Don't build with support for Position Independent Code.