Add checks for IPv4 and IPv6 in OpenSSL::Test::Utils and use them
This uilds on the same way of checking for availability as we do in TLSProxy. We use all IP factories we know of, starting with those who know both IPv6 and IPv4 and ending with the one that only knows IPv4 and cache their possible success as foundation for checking the available of each IP domain. 80-test_ssl.t has bigger chances of working on platforms that do not run both IP domains. Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
@@ -431,12 +431,20 @@ sub testssl {
|
||||
ok(run(test([@ssltest, "-bio_pair", "-server_auth", "-client_auth", "-app_verify", @CA, @extra])),
|
||||
'test sslv2/sslv3 with both client and server authentication via BIO pair and app verify');
|
||||
|
||||
ok(run(test([@ssltest, "-ipv4", @extra])),
|
||||
'test TLS via IPv4');
|
||||
ok(run(test([@ssltest, "-ipv6", @extra])),
|
||||
'test TLS via IPv6');
|
||||
|
||||
}
|
||||
SKIP: {
|
||||
skip "No IPv4 available on this machine", 1
|
||||
unless have_IPv4();
|
||||
ok(run(test([@ssltest, "-ipv4", @extra])),
|
||||
'test TLS via IPv4');
|
||||
}
|
||||
|
||||
SKIP: {
|
||||
skip "No IPv6 available on this machine", 1
|
||||
unless have_IPv6();
|
||||
ok(run(test([@ssltest, "-ipv6", @extra])),
|
||||
'test TLS via IPv6');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
subtest "Testing ciphersuites" => sub {
|
||||
|
||||
Reference in New Issue
Block a user