Fix configuration short name in key-exchanges.pl

This is testing with $kex, not without $kex, so use $kex, not "-$kex".

In test-ref-configs.pl, use $conf rather than "$conf". This is purely
a matter of Perl coding style.
This commit is contained in:
Gilles Peskine 2019-09-18 18:45:35 +02:00
parent 7a020f3d10
commit a9478bab08
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ for my $kex (@kexes) {
print "\n******************************************\n";
print "* Testing with key exchange: $kex\n";
print "******************************************\n";
$ENV{MBEDTLS_TEST_CONFIGURATION} = "-$kex";
$ENV{MBEDTLS_TEST_CONFIGURATION} = $kex;
# full config with all key exchanges disabled except one
system( "scripts/config.pl full" ) and abort "Failed config full\n";

View File

@ -65,7 +65,7 @@ while( my ($conf, $data) = each %configs ) {
print "\n******************************************\n";
print "* Testing configuration: $conf\n";
print "******************************************\n";
$ENV{MBEDTLS_TEST_CONFIGURATION} = "$conf";
$ENV{MBEDTLS_TEST_CONFIGURATION} = $conf;
system( "cp configs/$conf $config_h" )
and abort "Failed to activate $conf\n";