summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-01-09 11:59:10 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-01-09 16:06:19 +0100
commit1fefa1a85689b306443f42e7e50b0c86edcc4e7d (patch)
tree895c70e793bf90e7ee7dbc9fadc3ae0423ca4185
parenta6f227252cfc80c7c44be395f5a6952221313b74 (diff)
downloadcurl-1fefa1a85689b306443f42e7e50b0c86edcc4e7d.tar.gz
runtests: make 'rustls' a testable feature
-rw-r--r--tests/FILEFORMAT.md1
-rwxr-xr-xtests/runtests.pl5
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/FILEFORMAT.md b/tests/FILEFORMAT.md
index 6053b523f..655c648fc 100644
--- a/tests/FILEFORMAT.md
+++ b/tests/FILEFORMAT.md
@@ -402,6 +402,7 @@ Features testable here are:
- `parsedate`
- `proxy`
- `PSL`
+- `rustls`
- `Schannel`
- `sectransp`
- `shuffle-dns`
diff --git a/tests/runtests.pl b/tests/runtests.pl
index ca82d09b2..e6546631b 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -277,6 +277,7 @@ my $has_unicode; # set if libcurl is built with Unicode support
# this version is decided by the particular nghttp2 library that is being used
my $h2cver = "h2c";
+my $has_rustls; # built with rustls
my $has_openssl; # built with a lib using an OpenSSL-like API
my $has_gnutls; # built with GnuTLS
my $has_nss; # built with NSS
@@ -2880,6 +2881,7 @@ sub setupfeatures {
$feature{"libz"} = $has_libz;
$feature{"libssh2"} = $has_libssh2;
$feature{"libssh"} = $has_libssh;
+ $feature{"rustls"} = $has_rustls;
$feature{"wolfssh"} = $has_wolfssh;
$feature{"manual"} = $has_manual;
$feature{"MinGW"} = $has_mingw;
@@ -2999,6 +3001,9 @@ sub checksystem {
$has_gnutls=1;
$has_sslpinning=1;
}
+ elsif ($libcurl =~ /rustls-ffi/i) {
+ $has_rustls=1;
+ }
elsif ($libcurl =~ /nss/i) {
$has_nss=1;
$has_sslpinning=1;