From: Neil Horman Date: Thu, 4 Sep 2025 18:04:55 +0000 (-0400) Subject: Convert TLSProxy to use new provider X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ccf6a2303eea2e1457ce0e55ee1a98f2f6c89ec4;p=thirdparty%2Fopenssl.git Convert TLSProxy to use new provider replace use of ossltest engine with provider in TLSProxy and update all dependent tests Reviewed-by: Matt Caswell Reviewed-by: Shane Lontis Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/28461) --- diff --git a/test/recipes/70-test_certtypeext.t b/test/recipes/70-test_certtypeext.t index 963468a0521..cdfc5ae7cc1 100644 --- a/test/recipes/70-test_certtypeext.t +++ b/test/recipes/70-test_certtypeext.t @@ -10,15 +10,18 @@ use strict; use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; use OpenSSL::Test::Utils; use TLSProxy::Proxy; +use Cwd qw(abs_path); my $test_name = "test_certtypeext"; setup($test_name); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); diff --git a/test/recipes/70-test_comp.t b/test/recipes/70-test_comp.t index b2cb7b0bd7f..2e4b288e51e 100644 --- a/test/recipes/70-test_comp.t +++ b/test/recipes/70-test_comp.t @@ -11,15 +11,18 @@ use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file srctop_dir bldtop_dir/; use OpenSSL::Test::Utils; use File::Temp qw(tempfile); use TLSProxy::Proxy; +use Cwd qw(abs_path); my $test_name = "test_comp"; setup($test_name); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); diff --git a/test/recipes/70-test_key_share.t b/test/recipes/70-test_key_share.t index 998ae5d830d..5964d778ffc 100644 --- a/test/recipes/70-test_key_share.t +++ b/test/recipes/70-test_key_share.t @@ -11,6 +11,7 @@ use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; use OpenSSL::Test::Utils; use TLSProxy::Proxy; use File::Temp qw(tempfile); +use Cwd qw(abs_path); use constant { LOOK_ONLY => 0, @@ -49,11 +50,13 @@ my $selectedgroupid; my $test_name = "test_key_share"; setup($test_name); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); diff --git a/test/recipes/70-test_npn.t b/test/recipes/70-test_npn.t index f82e71af6ac..e1d058dbb63 100644 --- a/test/recipes/70-test_npn.t +++ b/test/recipes/70-test_npn.t @@ -7,19 +7,21 @@ # https://www.openssl.org/source/license.html use strict; -use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file/; +use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; use OpenSSL::Test::Utils; - +use Cwd qw(abs_path); use TLSProxy::Proxy; my $test_name = "test_npn"; setup($test_name); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); diff --git a/test/recipes/70-test_renegotiation.t b/test/recipes/70-test_renegotiation.t index 6faf6a727d5..54d2cf922ef 100644 --- a/test/recipes/70-test_renegotiation.t +++ b/test/recipes/70-test_renegotiation.t @@ -11,15 +11,18 @@ use List::Util 'first'; use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; use OpenSSL::Test::Utils; use TLSProxy::Proxy; +use Cwd qw(abs_path); my $test_name = "test_renegotiation"; setup($test_name); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); diff --git a/test/recipes/70-test_sslcbcpadding.t b/test/recipes/70-test_sslcbcpadding.t index 66281926180..83fc8ab91cd 100644 --- a/test/recipes/70-test_sslcbcpadding.t +++ b/test/recipes/70-test_sslcbcpadding.t @@ -12,15 +12,18 @@ use feature 'state'; use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; use OpenSSL::Test::Utils; use TLSProxy::Proxy; +use Cwd qw(abs_path); my $test_name = "test_sslcbcpadding"; setup($test_name); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); diff --git a/test/recipes/70-test_sslcertstatus.t b/test/recipes/70-test_sslcertstatus.t index 44b3839b956..c6aca567f71 100644 --- a/test/recipes/70-test_sslcertstatus.t +++ b/test/recipes/70-test_sslcertstatus.t @@ -10,15 +10,18 @@ use strict; use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; use OpenSSL::Test::Utils; use TLSProxy::Proxy; +use Cwd qw(abs_path); my $test_name = "test_sslcertstatus"; setup($test_name); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); diff --git a/test/recipes/70-test_sslextension.t b/test/recipes/70-test_sslextension.t index 07cef05b216..31e494134a8 100644 --- a/test/recipes/70-test_sslextension.t +++ b/test/recipes/70-test_sslextension.t @@ -12,15 +12,18 @@ use feature 'state'; use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; use OpenSSL::Test::Utils; use TLSProxy::Proxy; +use Cwd qw(abs_path); my $test_name = "test_sslextension"; setup($test_name); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); diff --git a/test/recipes/70-test_sslmessages.t b/test/recipes/70-test_sslmessages.t index ac984351a63..bb1789710c4 100644 --- a/test/recipes/70-test_sslmessages.t +++ b/test/recipes/70-test_sslmessages.t @@ -12,15 +12,18 @@ use OpenSSL::Test::Utils; use File::Temp qw(tempfile); use TLSProxy::Proxy; use checkhandshake qw(checkhandshake @handmessages @extensions); +use Cwd qw(abs_path); my $test_name = "test_sslmessages"; setup($test_name); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); diff --git a/test/recipes/70-test_sslrecords.t b/test/recipes/70-test_sslrecords.t index 299ecb60bea..fe26564d506 100644 --- a/test/recipes/70-test_sslrecords.t +++ b/test/recipes/70-test_sslrecords.t @@ -13,15 +13,18 @@ use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; use OpenSSL::Test::Utils; use TLSProxy::Proxy; use TLSProxy::Message; +use Cwd qw(abs_path); my $test_name = "test_sslrecords"; setup($test_name); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); diff --git a/test/recipes/70-test_sslsessiontick.t b/test/recipes/70-test_sslsessiontick.t index 10ebe8cf339..5dcdea8bc2c 100644 --- a/test/recipes/70-test_sslsessiontick.t +++ b/test/recipes/70-test_sslsessiontick.t @@ -11,15 +11,18 @@ use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; use OpenSSL::Test::Utils; use TLSProxy::Proxy; use File::Temp qw(tempfile); +use Cwd qw(abs_path); my $test_name = "test_sslsessiontick"; setup($test_name); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); diff --git a/test/recipes/70-test_sslsigalgs.t b/test/recipes/70-test_sslsigalgs.t index 10e7cd1479f..018a3b3f631 100644 --- a/test/recipes/70-test_sslsigalgs.t +++ b/test/recipes/70-test_sslsigalgs.t @@ -10,15 +10,18 @@ use strict; use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; use OpenSSL::Test::Utils; use TLSProxy::Proxy; +use Cwd qw(abs_path); my $test_name = "test_sslsigalgs"; setup($test_name); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); diff --git a/test/recipes/70-test_sslsignature.t b/test/recipes/70-test_sslsignature.t index d27685bbec6..fdfa7f320cb 100644 --- a/test/recipes/70-test_sslsignature.t +++ b/test/recipes/70-test_sslsignature.t @@ -10,15 +10,18 @@ use strict; use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; use OpenSSL::Test::Utils; use TLSProxy::Proxy; +use Cwd qw(abs_path); my $test_name = "test_sslsignature"; setup($test_name); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); diff --git a/test/recipes/70-test_sslskewith0p.t b/test/recipes/70-test_sslskewith0p.t index c53925dcdd7..49f26c1cab9 100644 --- a/test/recipes/70-test_sslskewith0p.t +++ b/test/recipes/70-test_sslskewith0p.t @@ -10,15 +10,18 @@ use strict; use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; use OpenSSL::Test::Utils; use TLSProxy::Proxy; +use Cwd qw(abs_path); my $test_name = "test_sslskewith0p"; setup($test_name); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "dh is not supported by this OpenSSL build" if disabled("dh"); diff --git a/test/recipes/70-test_sslversions.t b/test/recipes/70-test_sslversions.t index 66b5606db5a..e9c2d4ff2cf 100644 --- a/test/recipes/70-test_sslversions.t +++ b/test/recipes/70-test_sslversions.t @@ -11,6 +11,7 @@ use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; use OpenSSL::Test::Utils; use TLSProxy::Proxy; use File::Temp qw(tempfile); +use Cwd qw(abs_path); use constant { REVERSE_ORDER_VERSIONS => 1, @@ -27,11 +28,13 @@ my $testtype; my $test_name = "test_sslversions"; setup($test_name); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); diff --git a/test/recipes/70-test_sslvertol.t b/test/recipes/70-test_sslvertol.t index 073df9ad84b..8a675bf7a78 100644 --- a/test/recipes/70-test_sslvertol.t +++ b/test/recipes/70-test_sslvertol.t @@ -10,15 +10,18 @@ use strict; use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; use OpenSSL::Test::Utils; use TLSProxy::Proxy; +use Cwd qw(abs_path); my $test_name = "test_sslvertol"; setup($test_name); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); diff --git a/test/recipes/70-test_tls13alerts.t b/test/recipes/70-test_tls13alerts.t index 152e6cc130d..1858a8d4f2c 100644 --- a/test/recipes/70-test_tls13alerts.t +++ b/test/recipes/70-test_tls13alerts.t @@ -10,15 +10,18 @@ use strict; use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; use OpenSSL::Test::Utils; use TLSProxy::Proxy; +use Cwd qw(abs_path); my $test_name = "test_tls13alerts"; setup($test_name); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); diff --git a/test/recipes/70-test_tls13certcomp.t b/test/recipes/70-test_tls13certcomp.t index 5424b128d1a..57712de7c75 100644 --- a/test/recipes/70-test_tls13certcomp.t +++ b/test/recipes/70-test_tls13certcomp.t @@ -12,15 +12,18 @@ use OpenSSL::Test::Utils; use File::Temp qw(tempfile); use TLSProxy::Proxy; use checkhandshake qw(checkhandshake @handmessages @extensions); +use Cwd qw(abs_path); my $test_name = "test_tls13certcomp"; setup($test_name); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); diff --git a/test/recipes/70-test_tls13cookie.t b/test/recipes/70-test_tls13cookie.t index 5790b869e8d..e1c65f2fa4d 100644 --- a/test/recipes/70-test_tls13cookie.t +++ b/test/recipes/70-test_tls13cookie.t @@ -10,15 +10,18 @@ use strict; use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; use OpenSSL::Test::Utils; use TLSProxy::Proxy; +use Cwd qw(abs_path); my $test_name = "test_tls13cookie"; setup($test_name); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); diff --git a/test/recipes/70-test_tls13downgrade.t b/test/recipes/70-test_tls13downgrade.t index 35a4beee069..6802fbc8ecf 100644 --- a/test/recipes/70-test_tls13downgrade.t +++ b/test/recipes/70-test_tls13downgrade.t @@ -10,6 +10,7 @@ use strict; use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; use OpenSSL::Test::Utils; use TLSProxy::Proxy; +use Cwd qw(abs_path); my $test_name = "test_tls13downgrade"; setup($test_name); @@ -17,8 +18,8 @@ setup($test_name); plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); @@ -27,6 +28,8 @@ plan skip_all => "$test_name needs TLS1.3 and TLS1.2 enabled" if disabled("tls1_3") || disabled("tls1_2") || (disabled("ec") && disabled("dh")); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + my $proxy = TLSProxy::Proxy->new( undef, cmdstr(app(["openssl"]), display => 1), diff --git a/test/recipes/70-test_tls13hrr.t b/test/recipes/70-test_tls13hrr.t index 4e146bcadfe..0ed006a167f 100644 --- a/test/recipes/70-test_tls13hrr.t +++ b/test/recipes/70-test_tls13hrr.t @@ -11,6 +11,7 @@ use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; use OpenSSL::Test::Utils; use TLSProxy::Proxy; use TLSProxy::Message; +use Cwd qw(abs_path); my $test_name = "test_tls13hrr"; setup($test_name); @@ -18,8 +19,8 @@ setup($test_name); plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); @@ -27,6 +28,8 @@ plan skip_all => "$test_name needs the sock feature enabled" plan skip_all => "$test_name needs TLS1.3 enabled" if disabled("tls1_3") || (disabled("ec") && disabled("dh")); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + my $proxy = TLSProxy::Proxy->new( undef, cmdstr(app(["openssl"]), display => 1), diff --git a/test/recipes/70-test_tls13kexmodes.t b/test/recipes/70-test_tls13kexmodes.t index b4ef6d1b191..cd71a313b85 100644 --- a/test/recipes/70-test_tls13kexmodes.t +++ b/test/recipes/70-test_tls13kexmodes.t @@ -12,6 +12,7 @@ use OpenSSL::Test::Utils; use File::Temp qw(tempfile); use TLSProxy::Proxy; use checkhandshake qw(checkhandshake @handmessages @extensions); +use Cwd qw(abs_path); my $test_name = "test_tls13kexmodes"; setup($test_name); @@ -19,8 +20,8 @@ setup($test_name); plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); @@ -184,6 +185,8 @@ use constant { BOTH_KEX_MODES => 5 }; +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + my $proxy = TLSProxy::Proxy->new( undef, cmdstr(app(["openssl"]), display => 1), diff --git a/test/recipes/70-test_tls13messages.t b/test/recipes/70-test_tls13messages.t index d02d2df2a5a..3a04cca334a 100644 --- a/test/recipes/70-test_tls13messages.t +++ b/test/recipes/70-test_tls13messages.t @@ -12,6 +12,7 @@ use OpenSSL::Test::Utils; use File::Temp qw(tempfile); use TLSProxy::Proxy; use checkhandshake qw(checkhandshake @handmessages @extensions); +use Cwd qw(abs_path); my $test_name = "test_tls13messages"; setup($test_name); @@ -19,8 +20,8 @@ setup($test_name); plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); @@ -199,6 +200,8 @@ plan skip_all => "$test_name needs EC enabled" [0,0,0,0] ); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + my $proxy = TLSProxy::Proxy->new( undef, cmdstr(app(["openssl"]), display => 1), diff --git a/test/recipes/70-test_tls13psk.t b/test/recipes/70-test_tls13psk.t index 5607dd604ca..3de688ec74f 100644 --- a/test/recipes/70-test_tls13psk.t +++ b/test/recipes/70-test_tls13psk.t @@ -11,6 +11,7 @@ use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file srctop_dir bldtop_dir/; use OpenSSL::Test::Utils; use File::Temp qw(tempfile); use TLSProxy::Proxy; +use Cwd qw(abs_path); my $test_name = "test_tls13psk"; setup($test_name); @@ -18,8 +19,8 @@ setup($test_name); plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); @@ -27,6 +28,8 @@ plan skip_all => "$test_name needs the sock feature enabled" plan skip_all => "$test_name needs TLSv1.3 enabled" if disabled("tls1_3") || (disabled("ec") && disabled("dh")); +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + my $proxy = TLSProxy::Proxy->new( undef, cmdstr(app(["openssl"]), display => 1), diff --git a/test/recipes/70-test_tlsextms.t b/test/recipes/70-test_tlsextms.t index a8b18c5f200..feccd5a8888 100644 --- a/test/recipes/70-test_tlsextms.t +++ b/test/recipes/70-test_tlsextms.t @@ -11,6 +11,7 @@ use OpenSSL::Test qw/:DEFAULT cmdstr srctop_file bldtop_dir/; use OpenSSL::Test::Utils; use TLSProxy::Proxy; use File::Temp qw(tempfile); +use Cwd qw(abs_path); my $test_name = "test_tlsextms"; setup($test_name); @@ -18,8 +19,8 @@ setup($test_name); plan skip_all => "TLSProxy isn't usable on $^O" if $^O =~ /^(VMS)$/; -plan skip_all => "$test_name needs the dynamic engine feature enabled" - if disabled("engine") || disabled("dynamic-engine"); +plan skip_all => "$test_name needs the module feature enabled" + if disabled("module"); plan skip_all => "$test_name needs the sock feature enabled" if disabled("sock"); @@ -37,6 +38,8 @@ my $cextms = 0; my $sextms = 0; my $fullhand = 0; +$ENV{OPENSSL_MODULES} = abs_path(bldtop_dir("test")); + my $proxy = TLSProxy::Proxy->new( \&extms_filter, cmdstr(app(["openssl"]), display => 1), diff --git a/util/perl/TLSProxy/Proxy.pm b/util/perl/TLSProxy/Proxy.pm index ccc4814f6fd..226a7d44b4e 100644 --- a/util/perl/TLSProxy/Proxy.pm +++ b/util/perl/TLSProxy/Proxy.pm @@ -318,7 +318,7 @@ sub start } my $execcmd = $self->execute - ." s_server -no_comp -engine ossltest -state" + ." s_server -no_comp -provider=p_ossltest -provider=default -propquery ?provider=p_ossltest -state" #In TLSv1.3 we issue two session tickets. The default session id #callback gets confused because the ossltest engine causes the same #session id to be created twice due to the changed random number @@ -423,7 +423,7 @@ sub clientstart if ($self->execute) { my $pid; my $execcmd = $self->execute - ." s_client -engine ossltest" + ." s_client -provider=p_ossltest -provider=default -propquery ?provider=p_ossltest" ." -connect $self->{proxy_addr}:$self->{proxy_port}"; if ($self->{isdtls}) { $execcmd .= " -dtls -max_protocol DTLSv1.2"