]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: make 'rustls' a testable feature
authorDaniel Stenberg <daniel@haxx.se>
Sun, 9 Jan 2022 10:59:10 +0000 (11:59 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 9 Jan 2022 15:06:19 +0000 (16:06 +0100)
tests/FILEFORMAT.md
tests/runtests.pl

index 6053b523fc7082409557f7d90df0af999e0f4dcc..655c648fcc07ce99bc443db6c1aa37db97430acd 100644 (file)
@@ -402,6 +402,7 @@ Features testable here are:
 - `parsedate`
 - `proxy`
 - `PSL`
+- `rustls`
 - `Schannel`
 - `sectransp`
 - `shuffle-dns`
index ca82d09b2ed5081cc923afb77e8dfefa1c57366e..e6546631b3416bd7170e422f5efada581aff5254 100755 (executable)
@@ -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;