tests: make sure gnuserv-tls has SRP support before using it
Reported-by: fundawang on github Fixes #10522 Closes #10524
This commit is contained in:
parent
f1d09231ad
commit
2fdc1d816e
@ -5382,7 +5382,7 @@ sub startservers {
|
|||||||
elsif($what eq "httptls") {
|
elsif($what eq "httptls") {
|
||||||
if(!$httptlssrv) {
|
if(!$httptlssrv) {
|
||||||
# for now, we can't run http TLS-EXT tests without gnutls-serv
|
# for now, we can't run http TLS-EXT tests without gnutls-serv
|
||||||
return "no gnutls-serv";
|
return "no gnutls-serv (with SRP support)";
|
||||||
}
|
}
|
||||||
if($torture && $run{'httptls'} &&
|
if($torture && $run{'httptls'} &&
|
||||||
!responsive_httptls_server($verbose, "IPv4")) {
|
!responsive_httptls_server($verbose, "IPv4")) {
|
||||||
|
|||||||
@ -408,7 +408,16 @@ sub find_sshkeygen {
|
|||||||
# Find httptlssrv (gnutls-serv) and return canonical filename
|
# Find httptlssrv (gnutls-serv) and return canonical filename
|
||||||
#
|
#
|
||||||
sub find_httptlssrv {
|
sub find_httptlssrv {
|
||||||
return find_exe_file_hpath($httptlssrvexe);
|
my $p = find_exe_file_hpath($httptlssrvexe);
|
||||||
|
my @o = `$p -l`;
|
||||||
|
my $found;
|
||||||
|
for(@o) {
|
||||||
|
if(/Key exchange: SRP/) {
|
||||||
|
$found = 1;
|
||||||
|
last;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $p if($found);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user