mirror of https://github.com/moparisthebest/curl
runtests: Add mbedTLS to the SSL backends
.. and enable SSLpinning tests for mbedTLS, BoringSSL and LibreSSL.
This commit is contained in:
parent
bf93a1217c
commit
036c465e88
|
@ -238,7 +238,8 @@ my $has_axtls; # built with axTLS
|
||||||
my $has_winssl; # built with WinSSL (Secure Channel aka Schannel)
|
my $has_winssl; # built with WinSSL (Secure Channel aka Schannel)
|
||||||
my $has_darwinssl; # built with DarwinSSL (Secure Transport)
|
my $has_darwinssl; # built with DarwinSSL (Secure Transport)
|
||||||
my $has_boringssl; # built with BoringSSL
|
my $has_boringssl; # built with BoringSSL
|
||||||
my $has_libressl; # built with libressl
|
my $has_libressl; # built with libressl
|
||||||
|
my $has_mbedtls; # built with mbedTLS
|
||||||
|
|
||||||
my $has_sslpinning; # built with a TLS backend that supports pinning
|
my $has_sslpinning; # built with a TLS backend that supports pinning
|
||||||
|
|
||||||
|
@ -2369,12 +2370,19 @@ sub checksystem {
|
||||||
}
|
}
|
||||||
elsif ($libcurl =~ /BoringSSL/i) {
|
elsif ($libcurl =~ /BoringSSL/i) {
|
||||||
$has_boringssl=1;
|
$has_boringssl=1;
|
||||||
|
$has_sslpinning=1;
|
||||||
$ssllib="BoringSSL";
|
$ssllib="BoringSSL";
|
||||||
}
|
}
|
||||||
elsif ($libcurl =~ /libressl/i) {
|
elsif ($libcurl =~ /libressl/i) {
|
||||||
$has_libressl=1;
|
$has_libressl=1;
|
||||||
|
$has_sslpinning=1;
|
||||||
$ssllib="libressl";
|
$ssllib="libressl";
|
||||||
}
|
}
|
||||||
|
elsif ($libcurl =~ /mbedTLS/i) {
|
||||||
|
$has_mbedtls=1;
|
||||||
|
$has_sslpinning=1;
|
||||||
|
$ssllib="mbedTLS";
|
||||||
|
}
|
||||||
if ($libcurl =~ /ares/i) {
|
if ($libcurl =~ /ares/i) {
|
||||||
$has_cares=1;
|
$has_cares=1;
|
||||||
$resolver="c-ares";
|
$resolver="c-ares";
|
||||||
|
|
Loading…
Reference in New Issue