]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: add 'bearssl' as testable feature
authorDaniel Stenberg <daniel@haxx.se>
Thu, 7 Apr 2022 06:36:27 +0000 (08:36 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 7 Apr 2022 06:36:27 +0000 (08:36 +0200)
Closes #8684

tests/FILEFORMAT.md
tests/runtests.pl

index 003df8ea63d27db319ea0215d0da48305eb586fc..3de59c23e21ff207494703f50beb4dea695a935a 100644 (file)
@@ -376,6 +376,7 @@ SKIPPED.
 Features testable here are:
 
 - `alt-svc`
+- `bearssl`
 - `c-ares`
 - `cookies`
 - `crypto`
index 8afdf8f4bf0999cb5d3bad79bd96f907e0e263ae..1bacda1f55287a9a214e1b527d3eb92b88e60eda 100755 (executable)
@@ -284,6 +284,7 @@ my $has_openssl;    # built with a lib using an OpenSSL-like API
 my $has_gnutls;     # built with GnuTLS
 my $has_nss;        # built with NSS
 my $has_wolfssl;    # built with wolfSSL
+my $has_bearssl;    # built with BearSSL
 my $has_schannel;   # built with Schannel
 my $has_sectransp;  # built with Secure Transport
 my $has_boringssl;  # built with BoringSSL
@@ -2866,6 +2867,7 @@ sub compare {
 
 sub setupfeatures {
     $feature{"alt-svc"} = $has_altsvc;
+    $feature{"bearssl"} = $has_bearssl;
     $feature{"brotli"} = $has_brotli;
     $feature{"c-ares"} = $has_cares;
     $feature{"crypto"} = $has_crypto;
@@ -3020,6 +3022,9 @@ sub checksystem {
                $has_wolfssl=1;
                $has_sslpinning=1;
            }
+           elsif ($libcurl =~ /bearssl/i) {
+               $has_bearssl=1;
+           }
            elsif ($libcurl =~ /securetransport/i) {
                $has_sectransp=1;
                $has_sslpinning=1;