From 445aab4b7339494e7abce394b4c5cd788df31634 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 4 Nov 2014 23:02:09 +0100 Subject: tests: add new feature 'SSLpinning' ... and make test 2034 and 2035 require it, and have it set when built with OpenSSL or GnuTLS. --- tests/runtests.pl | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/runtests.pl') diff --git a/tests/runtests.pl b/tests/runtests.pl index f52678c49..8802c0c98 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -224,6 +224,8 @@ my $has_axtls; # built with axTLS my $has_winssl; # built with WinSSL (Secure Channel aka Schannel) my $has_darwinssl;# build with DarwinSSL (Secure Transport) +my $has_sslpinning; # built with a TLS backend that supports pinning + my $has_shared = "unknown"; # built shared my $resolver; # string to hold the resolver backend @@ -2299,10 +2301,12 @@ sub checksystem { } elsif ($libcurl =~ /openssl/i) { $has_openssl=1; + $has_sslpinning=1; $ssllib="OpenSSL"; } elsif ($libcurl =~ /gnutls/i) { $has_gnutls=1; + $has_sslpinning=1; $ssllib="GnuTLS"; } elsif ($libcurl =~ /nss/i) { @@ -2758,6 +2762,11 @@ sub singletest { next; } } + elsif($1 eq "SSLpinning") { + if($has_sslpinning) { + next; + } + } elsif($1 eq "OpenSSL") { if($has_openssl) { next; -- cgit v1.2.3