From: Daniel Stenberg Date: Thu, 21 Mar 2024 14:46:32 +0000 (+0100) Subject: docs/libcurl: add TLS backend info for all TLS options X-Git-Tag: curl-8_7_0~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5775007d358c842b076acd3418d920a9060694e;p=thirdparty%2Fcurl.git docs/libcurl: add TLS backend info for all TLS options All man pages that are listed to be for TLS now must also specify exactly what TLS backends the option works for, or use All if they all work. cd2nroff makes sure this is done and that the listed backends exist. Closes #13168 --- diff --git a/docs/CURLDOWN.md b/docs/CURLDOWN.md index bcb5307630..d0305487ac 100644 --- a/docs/CURLDOWN.md +++ b/docs/CURLDOWN.md @@ -72,6 +72,8 @@ Each curldown starts with a header with meta-data: See-also: - CURLOPT_HEADEROPT (3) - CURLOPT_HTTPAUTH (3) + TLS-backend: + - [name] --- All curldown files *must* have all the headers present and at least one @@ -80,7 +82,21 @@ All curldown files *must* have all the headers present and at least one If the man page is for section 3 (library related). The `Protocol` list must contain at least one protocol, which can be `*` if the option is virtually for everything. If `*` is used, it must be the only listed protocol. Recognized -protocols are either URL schemes (in uppercase) or `TLS`. +protocols are either URL schemes (in uppercase), `TLS` or `TCP`. + +If the `Protocol` list contains `TLS`, then there must also be a `TLS-backend` +list, specifying `*` or a list of what TLS backends that work with this +option. The available TLS backends are: + +- `BearSSL` +- `GnuTLS` +- `mbedTLS` +- `OpenSSL` (also covers BoringSSL, libressl, quictls, AWS-LC and AmiSSL) +- `rustls` +- `Schannel` +- `Secure Transport` +- `wolfSSL` +- `All`: all TLS backends Following the header in the file, is the manual page using markdown-like syntax: diff --git a/docs/libcurl/curl_ws_recv.md b/docs/libcurl/curl_ws_recv.md index c6740b8771..38a8a2abc5 100644 --- a/docs/libcurl/curl_ws_recv.md +++ b/docs/libcurl/curl_ws_recv.md @@ -11,7 +11,7 @@ See-also: - curl_ws_send (3) - libcurl-ws (3) Protocol: - - Ws + - WS --- # NAME diff --git a/docs/libcurl/opts/CURLINFO_CAINFO.md b/docs/libcurl/opts/CURLINFO_CAINFO.md index c0f86bf9df..e9ba9d3432 100644 --- a/docs/libcurl/opts/CURLINFO_CAINFO.md +++ b/docs/libcurl/opts/CURLINFO_CAINFO.md @@ -10,6 +10,8 @@ See-also: - curl_easy_setopt (3) Protocol: - TLS +TLS-backend: + - All --- # NAME diff --git a/docs/libcurl/opts/CURLINFO_CAPATH.md b/docs/libcurl/opts/CURLINFO_CAPATH.md index 611ce2bfc2..0c9e21dee8 100644 --- a/docs/libcurl/opts/CURLINFO_CAPATH.md +++ b/docs/libcurl/opts/CURLINFO_CAPATH.md @@ -10,6 +10,11 @@ See-also: - curl_easy_setopt (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS + - mbedTLS + - wolfSSL --- # NAME diff --git a/docs/libcurl/opts/CURLINFO_CERTINFO.md b/docs/libcurl/opts/CURLINFO_CERTINFO.md index cedd57cfd7..507c946e64 100644 --- a/docs/libcurl/opts/CURLINFO_CERTINFO.md +++ b/docs/libcurl/opts/CURLINFO_CERTINFO.md @@ -10,6 +10,11 @@ See-also: - curl_easy_setopt (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS + - Schannel + - Secure Transport --- # NAME diff --git a/docs/libcurl/opts/CURLINFO_PROXY_SSL_VERIFYRESULT.md b/docs/libcurl/opts/CURLINFO_PROXY_SSL_VERIFYRESULT.md index 07bb011036..cf76cd2430 100644 --- a/docs/libcurl/opts/CURLINFO_PROXY_SSL_VERIFYRESULT.md +++ b/docs/libcurl/opts/CURLINFO_PROXY_SSL_VERIFYRESULT.md @@ -10,6 +10,9 @@ See-also: - curl_easy_setopt (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS --- # NAME diff --git a/docs/libcurl/opts/CURLINFO_SSL_ENGINES.md b/docs/libcurl/opts/CURLINFO_SSL_ENGINES.md index 107bbc4673..1035bd3b01 100644 --- a/docs/libcurl/opts/CURLINFO_SSL_ENGINES.md +++ b/docs/libcurl/opts/CURLINFO_SSL_ENGINES.md @@ -10,6 +10,8 @@ See-also: - curl_easy_setopt (3) Protocol: - TLS +TLS-backend: + - OpenSSL --- # NAME diff --git a/docs/libcurl/opts/CURLINFO_SSL_VERIFYRESULT.md b/docs/libcurl/opts/CURLINFO_SSL_VERIFYRESULT.md index 34fd445272..edee07e996 100644 --- a/docs/libcurl/opts/CURLINFO_SSL_VERIFYRESULT.md +++ b/docs/libcurl/opts/CURLINFO_SSL_VERIFYRESULT.md @@ -10,6 +10,9 @@ See-also: - curl_easy_setopt (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS --- # NAME diff --git a/docs/libcurl/opts/CURLINFO_TLS_SESSION.md b/docs/libcurl/opts/CURLINFO_TLS_SESSION.md index edeabae10b..ccdd1cc320 100644 --- a/docs/libcurl/opts/CURLINFO_TLS_SESSION.md +++ b/docs/libcurl/opts/CURLINFO_TLS_SESSION.md @@ -10,6 +10,9 @@ See-also: - curl_easy_setopt (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS --- # NAME diff --git a/docs/libcurl/opts/CURLINFO_TLS_SSL_PTR.md b/docs/libcurl/opts/CURLINFO_TLS_SSL_PTR.md index a4a45d0f3a..2ce6e232c4 100644 --- a/docs/libcurl/opts/CURLINFO_TLS_SSL_PTR.md +++ b/docs/libcurl/opts/CURLINFO_TLS_SSL_PTR.md @@ -10,6 +10,14 @@ See-also: - curl_easy_setopt (3) Protocol: - TLS +TLS-backend: + - BearSSL + - GnuTLS + - mbedTLS + - OpenSSL + - Schannel + - Secure Transport + - wolfSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_CAINFO.md b/docs/libcurl/opts/CURLOPT_CAINFO.md index 565e6c4274..38ef173ff8 100644 --- a/docs/libcurl/opts/CURLOPT_CAINFO.md +++ b/docs/libcurl/opts/CURLOPT_CAINFO.md @@ -13,6 +13,8 @@ See-also: - CURLOPT_SSL_VERIFYPEER (3) Protocol: - TLS +TLS-backend: + - All --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_CAINFO_BLOB.md b/docs/libcurl/opts/CURLOPT_CAINFO_BLOB.md index 21a0724e65..1707932154 100644 --- a/docs/libcurl/opts/CURLOPT_CAINFO_BLOB.md +++ b/docs/libcurl/opts/CURLOPT_CAINFO_BLOB.md @@ -11,6 +11,14 @@ See-also: - CURLOPT_CAPATH (3) - CURLOPT_SSL_VERIFYHOST (3) - CURLOPT_SSL_VERIFYPEER (3) +TLS-backend: + - BearSSL + - OpenSSL + - mbedTLS + - rustls + - wolfSSL + - Secure Transport + - Schannel --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_CAPATH.md b/docs/libcurl/opts/CURLOPT_CAPATH.md index 6c5d7e6194..212b487601 100644 --- a/docs/libcurl/opts/CURLOPT_CAPATH.md +++ b/docs/libcurl/opts/CURLOPT_CAPATH.md @@ -11,6 +11,11 @@ See-also: - CURLOPT_STDERR (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS + - mbedTLS + - wolfSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_CA_CACHE_TIMEOUT.md b/docs/libcurl/opts/CURLOPT_CA_CACHE_TIMEOUT.md index b7121fa4bd..d90b208e73 100644 --- a/docs/libcurl/opts/CURLOPT_CA_CACHE_TIMEOUT.md +++ b/docs/libcurl/opts/CURLOPT_CA_CACHE_TIMEOUT.md @@ -12,6 +12,8 @@ See-also: - CURLOPT_SSL_VERIFYPEER (3) Protocol: - TLS +TLS-backend: + - OpenSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_CERTINFO.md b/docs/libcurl/opts/CURLOPT_CERTINFO.md index f8ade065f9..7789b29881 100644 --- a/docs/libcurl/opts/CURLOPT_CERTINFO.md +++ b/docs/libcurl/opts/CURLOPT_CERTINFO.md @@ -12,6 +12,11 @@ See-also: - CURLOPT_SSL_VERIFYPEER (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS + - Schannel + - Secure Transport --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_CRLFILE.md b/docs/libcurl/opts/CURLOPT_CRLFILE.md index 3ab78c377f..fc11ad2581 100644 --- a/docs/libcurl/opts/CURLOPT_CRLFILE.md +++ b/docs/libcurl/opts/CURLOPT_CRLFILE.md @@ -10,6 +10,10 @@ See-also: - CURLOPT_SSL_VERIFYPEER (3) Protocol: - TLS +TLS-backend: + - GnuTLS + - mbedTLS + - OpenSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_DOH_SSL_VERIFYHOST.md b/docs/libcurl/opts/CURLOPT_DOH_SSL_VERIFYHOST.md index bdd0bc0f3a..21ac14d4db 100644 --- a/docs/libcurl/opts/CURLOPT_DOH_SSL_VERIFYHOST.md +++ b/docs/libcurl/opts/CURLOPT_DOH_SSL_VERIFYHOST.md @@ -12,6 +12,8 @@ See-also: - CURLOPT_SSL_VERIFYPEER (3) Protocol: - TLS +TLS-backend: + - All --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_DOH_SSL_VERIFYPEER.md b/docs/libcurl/opts/CURLOPT_DOH_SSL_VERIFYPEER.md index e272b2c1ff..ca45ce3cd8 100644 --- a/docs/libcurl/opts/CURLOPT_DOH_SSL_VERIFYPEER.md +++ b/docs/libcurl/opts/CURLOPT_DOH_SSL_VERIFYPEER.md @@ -14,6 +14,8 @@ See-also: - CURLOPT_SSL_VERIFYPEER (3) Protocol: - TLS +TLS-backend: + - All --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_DOH_SSL_VERIFYSTATUS.md b/docs/libcurl/opts/CURLOPT_DOH_SSL_VERIFYSTATUS.md index c51ff02fbb..4b5d5bfca7 100644 --- a/docs/libcurl/opts/CURLOPT_DOH_SSL_VERIFYSTATUS.md +++ b/docs/libcurl/opts/CURLOPT_DOH_SSL_VERIFYSTATUS.md @@ -10,6 +10,9 @@ See-also: - CURLOPT_SSL_VERIFYSTATUS (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_EGDSOCKET.md b/docs/libcurl/opts/CURLOPT_EGDSOCKET.md index e91a8800d8..8106fce630 100644 --- a/docs/libcurl/opts/CURLOPT_EGDSOCKET.md +++ b/docs/libcurl/opts/CURLOPT_EGDSOCKET.md @@ -8,6 +8,8 @@ See-also: - CURLOPT_RANDOM_FILE (3) Protocol: - TLS +TLS-backend: + - OpenSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_ISSUERCERT.md b/docs/libcurl/opts/CURLOPT_ISSUERCERT.md index 44fa216d68..559b8f224b 100644 --- a/docs/libcurl/opts/CURLOPT_ISSUERCERT.md +++ b/docs/libcurl/opts/CURLOPT_ISSUERCERT.md @@ -10,6 +10,9 @@ See-also: - CURLOPT_SSL_VERIFYPEER (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_ISSUERCERT_BLOB.md b/docs/libcurl/opts/CURLOPT_ISSUERCERT_BLOB.md index 4dba669943..51ed6a32e9 100644 --- a/docs/libcurl/opts/CURLOPT_ISSUERCERT_BLOB.md +++ b/docs/libcurl/opts/CURLOPT_ISSUERCERT_BLOB.md @@ -11,6 +11,8 @@ See-also: - CURLOPT_SSL_VERIFYPEER (3) Protocol: - TLS +TLS-backend: + - OpenSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_KEYPASSWD.md b/docs/libcurl/opts/CURLOPT_KEYPASSWD.md index 7043d3442c..a8bc4702ae 100644 --- a/docs/libcurl/opts/CURLOPT_KEYPASSWD.md +++ b/docs/libcurl/opts/CURLOPT_KEYPASSWD.md @@ -9,6 +9,11 @@ See-also: - CURLOPT_SSLKEY (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - mbedTLS + - Schannel + - wolfSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PINNEDPUBLICKEY.md b/docs/libcurl/opts/CURLOPT_PINNEDPUBLICKEY.md index eb6c05c83a..52ba595aef 100644 --- a/docs/libcurl/opts/CURLOPT_PINNEDPUBLICKEY.md +++ b/docs/libcurl/opts/CURLOPT_PINNEDPUBLICKEY.md @@ -11,6 +11,13 @@ See-also: - CURLOPT_SSL_VERIFYPEER (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS + - wolfSSL + - mbedTLS + - Secure Transport + - Schannel --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_CAINFO.md b/docs/libcurl/opts/CURLOPT_PROXY_CAINFO.md index 543f20d027..19214bd7e0 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_CAINFO.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_CAINFO.md @@ -16,6 +16,8 @@ See-also: - CURLOPT_SSL_VERIFYPEER (3) Protocol: - TLS +TLS-backend: + - All --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_CAINFO_BLOB.md b/docs/libcurl/opts/CURLOPT_PROXY_CAINFO_BLOB.md index 8022dff262..02d282abf7 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_CAINFO_BLOB.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_CAINFO_BLOB.md @@ -16,6 +16,11 @@ See-also: - CURLOPT_SSL_VERIFYPEER (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - rustls + - Secure Transport + - Schannel --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_CAPATH.md b/docs/libcurl/opts/CURLOPT_PROXY_CAPATH.md index 763214eecb..526f2d2610 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_CAPATH.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_CAPATH.md @@ -12,6 +12,10 @@ See-also: - CURLOPT_STDERR (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS + - mbedTLS --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_CRLFILE.md b/docs/libcurl/opts/CURLOPT_PROXY_CRLFILE.md index 47762dcac7..ffe28f9a77 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_CRLFILE.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_CRLFILE.md @@ -11,6 +11,10 @@ See-also: - CURLOPT_SSL_VERIFYPEER (3) Protocol: - TLS +TLS-backend: + - GnuTLS + - mbedTLS + - OpenSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_ISSUERCERT.md b/docs/libcurl/opts/CURLOPT_PROXY_ISSUERCERT.md index 3ffe995a6c..1ec2b02eb2 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_ISSUERCERT.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_ISSUERCERT.md @@ -12,6 +12,9 @@ See-also: - CURLOPT_SSL_VERIFYPEER (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS --- # NAME @@ -76,7 +79,7 @@ int main(void) # AVAILABILITY -Added in 7.71.0. This option is supported by the OpenSSL backends. +Added in 7.71.0. This option is supported by the OpenSSL and GnuTLS backends. # RETURN VALUE diff --git a/docs/libcurl/opts/CURLOPT_PROXY_ISSUERCERT_BLOB.md b/docs/libcurl/opts/CURLOPT_PROXY_ISSUERCERT_BLOB.md index 34eb8a9c50..38728e51ac 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_ISSUERCERT_BLOB.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_ISSUERCERT_BLOB.md @@ -12,6 +12,8 @@ See-also: - CURLOPT_SSL_VERIFYPEER (3) Protocol: - TLS +TLS-backend: + - OpenSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_KEYPASSWD.md b/docs/libcurl/opts/CURLOPT_PROXY_KEYPASSWD.md index b2c7255e0b..351af0134b 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_KEYPASSWD.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_KEYPASSWD.md @@ -11,6 +11,11 @@ See-also: - CURLOPT_SSLKEY (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - mbedTLS + - Schannel + - wolfSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_PINNEDPUBLICKEY.md b/docs/libcurl/opts/CURLOPT_PROXY_PINNEDPUBLICKEY.md index 8cfe5c3405..61594d146e 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_PINNEDPUBLICKEY.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_PINNEDPUBLICKEY.md @@ -12,6 +12,11 @@ See-also: - CURLOPT_PROXY_SSL_VERIFYPEER (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS + - mbedTLS + - wolfSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_SSLCERT.md b/docs/libcurl/opts/CURLOPT_PROXY_SSLCERT.md index 9b0182b68e..f3db4b9764 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_SSLCERT.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_SSLCERT.md @@ -10,6 +10,13 @@ See-also: - CURLOPT_SSLCERT (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS + - mbedTLS + - Schannel + - Secure Transport + - wolfSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_SSLCERTTYPE.md b/docs/libcurl/opts/CURLOPT_PROXY_SSLCERTTYPE.md index 8d1f10b4db..b9a8705e99 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_SSLCERTTYPE.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_SSLCERTTYPE.md @@ -10,6 +10,13 @@ See-also: - CURLOPT_SSLCERTTYPE (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS + - mbedTLS + - Schannel + - Secure Transport + - wolfSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_SSLCERT_BLOB.md b/docs/libcurl/opts/CURLOPT_PROXY_SSLCERT_BLOB.md index ca5e62119f..a1534d15fc 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_SSLCERT_BLOB.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_SSLCERT_BLOB.md @@ -11,6 +11,10 @@ See-also: - CURLOPT_SSLCERT_BLOB (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - Schannel + - Secure Transport --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_SSLKEY.md b/docs/libcurl/opts/CURLOPT_PROXY_SSLKEY.md index 450fcb66ff..2cbb24e728 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_SSLKEY.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_SSLKEY.md @@ -12,6 +12,11 @@ See-also: - CURLOPT_SSLKEYTYPE (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - mbedTLS + - Schannel + - wolfSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_SSLKEYTYPE.md b/docs/libcurl/opts/CURLOPT_PROXY_SSLKEYTYPE.md index ffd2e92d85..7132cecf89 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_SSLKEYTYPE.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_SSLKEYTYPE.md @@ -10,6 +10,10 @@ See-also: - CURLOPT_SSLKEYTYPE (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - BearSSL + - wolfSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_SSLKEY_BLOB.md b/docs/libcurl/opts/CURLOPT_PROXY_SSLKEY_BLOB.md index ae941d17ba..fe5d67d00d 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_SSLKEY_BLOB.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_SSLKEY_BLOB.md @@ -10,6 +10,8 @@ See-also: - CURLOPT_SSLKEY_BLOB (3) Protocol: - TLS +TLS-backend: + - OpenSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_SSLVERSION.md b/docs/libcurl/opts/CURLOPT_PROXY_SSLVERSION.md index ae9a8ab92f..91968e750d 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_SSLVERSION.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_SSLVERSION.md @@ -11,6 +11,8 @@ See-also: - CURLOPT_USE_SSL (3) Protocol: - TLS +TLS-backend: + - All --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_SSL_CIPHER_LIST.md b/docs/libcurl/opts/CURLOPT_PROXY_SSL_CIPHER_LIST.md index 4cb0778993..b33136d9a8 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_SSL_CIPHER_LIST.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_SSL_CIPHER_LIST.md @@ -12,6 +12,13 @@ See-also: - CURLOPT_TLS13_CIPHERS (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - BearSSL + - Schannel + - Secure Transport + - wolfSSL + - GnuTLS --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_SSL_OPTIONS.md b/docs/libcurl/opts/CURLOPT_PROXY_SSL_OPTIONS.md index b1fabdcd28..0734c14d33 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_SSL_OPTIONS.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_SSL_OPTIONS.md @@ -11,6 +11,8 @@ See-also: - CURLOPT_SSL_CIPHER_LIST (3) Protocol: - TLS +TLS-backend: + - All --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_SSL_VERIFYHOST.md b/docs/libcurl/opts/CURLOPT_PROXY_SSL_VERIFYHOST.md index eb7b0db048..f183697f92 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_SSL_VERIFYHOST.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_SSL_VERIFYHOST.md @@ -11,6 +11,8 @@ See-also: - CURLOPT_SSL_VERIFYPEER (3) Protocol: - TLS +TLS-backend: + - All --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_SSL_VERIFYPEER.md b/docs/libcurl/opts/CURLOPT_PROXY_SSL_VERIFYPEER.md index 0df8236a61..56527ce5ac 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_SSL_VERIFYPEER.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_SSL_VERIFYPEER.md @@ -10,6 +10,8 @@ See-also: - CURLOPT_SSL_VERIFYPEER (3) Protocol: - TLS +TLS-backend: + - All --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_TLS13_CIPHERS.md b/docs/libcurl/opts/CURLOPT_PROXY_TLS13_CIPHERS.md index a6c429caf7..a9ec3d1dd7 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_TLS13_CIPHERS.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_TLS13_CIPHERS.md @@ -12,6 +12,10 @@ See-also: - CURLOPT_TLS13_CIPHERS (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - rustls + - Schannel --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_TLSAUTH_PASSWORD.md b/docs/libcurl/opts/CURLOPT_PROXY_TLSAUTH_PASSWORD.md index 8cb79bfa4c..df8d25a24c 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_TLSAUTH_PASSWORD.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_TLSAUTH_PASSWORD.md @@ -11,6 +11,9 @@ See-also: - CURLOPT_TLSAUTH_USERNAME (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_TLSAUTH_TYPE.md b/docs/libcurl/opts/CURLOPT_PROXY_TLSAUTH_TYPE.md index 03b4a2bae1..ec5773b969 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_TLSAUTH_TYPE.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_TLSAUTH_TYPE.md @@ -11,6 +11,9 @@ See-also: - CURLOPT_TLSAUTH_USERNAME (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_PROXY_TLSAUTH_USERNAME.md b/docs/libcurl/opts/CURLOPT_PROXY_TLSAUTH_USERNAME.md index 5965022788..edc70942f2 100644 --- a/docs/libcurl/opts/CURLOPT_PROXY_TLSAUTH_USERNAME.md +++ b/docs/libcurl/opts/CURLOPT_PROXY_TLSAUTH_USERNAME.md @@ -11,6 +11,9 @@ See-also: - CURLOPT_TLSAUTH_TYPE (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_RANDOM_FILE.md b/docs/libcurl/opts/CURLOPT_RANDOM_FILE.md index c00bf38efa..f2a7e8d210 100644 --- a/docs/libcurl/opts/CURLOPT_RANDOM_FILE.md +++ b/docs/libcurl/opts/CURLOPT_RANDOM_FILE.md @@ -8,6 +8,8 @@ See-also: - CURLOPT_EGDSOCKET (3) Protocol: - TLS +TLS-backend: + - OpenSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSH_AUTH_TYPES.md b/docs/libcurl/opts/CURLOPT_SSH_AUTH_TYPES.md index 027a5129cb..669bd70a16 100644 --- a/docs/libcurl/opts/CURLOPT_SSH_AUTH_TYPES.md +++ b/docs/libcurl/opts/CURLOPT_SSH_AUTH_TYPES.md @@ -9,7 +9,7 @@ See-also: - CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256 (3) - CURLOPT_SSH_PUBLIC_KEYFILE (3) Protocol: - - SFP + - SFTP - SCP --- diff --git a/docs/libcurl/opts/CURLOPT_SSH_KEYDATA.md b/docs/libcurl/opts/CURLOPT_SSH_KEYDATA.md index 5a0838cc28..fda68d5f09 100644 --- a/docs/libcurl/opts/CURLOPT_SSH_KEYDATA.md +++ b/docs/libcurl/opts/CURLOPT_SSH_KEYDATA.md @@ -8,7 +8,8 @@ See-also: - CURLOPT_SSH_KEYDATA (3) - CURLOPT_SSH_KNOWNHOSTS (3) Protocol: - - TLS + - SFTP + - SCP --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSLCERT.md b/docs/libcurl/opts/CURLOPT_SSLCERT.md index 69d28672ba..8161698820 100644 --- a/docs/libcurl/opts/CURLOPT_SSLCERT.md +++ b/docs/libcurl/opts/CURLOPT_SSLCERT.md @@ -10,6 +10,13 @@ See-also: - CURLOPT_SSLKEY (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS + - mbedTLS + - Schannel + - Secure Transport + - wolfSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSLCERTTYPE.md b/docs/libcurl/opts/CURLOPT_SSLCERTTYPE.md index a8c7c589b4..5ec33af1d9 100644 --- a/docs/libcurl/opts/CURLOPT_SSLCERTTYPE.md +++ b/docs/libcurl/opts/CURLOPT_SSLCERTTYPE.md @@ -9,6 +9,13 @@ See-also: - CURLOPT_SSLKEY (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS + - mbedTLS + - Schannel + - Secure Transport + - wolfSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSLCERT_BLOB.md b/docs/libcurl/opts/CURLOPT_SSLCERT_BLOB.md index ec37a14539..5e4b0c956c 100644 --- a/docs/libcurl/opts/CURLOPT_SSLCERT_BLOB.md +++ b/docs/libcurl/opts/CURLOPT_SSLCERT_BLOB.md @@ -10,6 +10,11 @@ See-also: - CURLOPT_SSLKEY (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - Secure Transport + - Schannel + - mbedTLS --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSLENGINE.md b/docs/libcurl/opts/CURLOPT_SSLENGINE.md index 96fe05b568..1ec5258078 100644 --- a/docs/libcurl/opts/CURLOPT_SSLENGINE.md +++ b/docs/libcurl/opts/CURLOPT_SSLENGINE.md @@ -10,6 +10,8 @@ See-also: - CURLOPT_SSLKEY (3) Protocol: - TLS +TLS-backend: + - OpenSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSLENGINE_DEFAULT.md b/docs/libcurl/opts/CURLOPT_SSLENGINE_DEFAULT.md index dc1851533f..05f22d8962 100644 --- a/docs/libcurl/opts/CURLOPT_SSLENGINE_DEFAULT.md +++ b/docs/libcurl/opts/CURLOPT_SSLENGINE_DEFAULT.md @@ -9,6 +9,8 @@ See-also: - CURLOPT_SSLENGINE (3) Protocol: - TLS +TLS-backend: + - OpenSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSLKEY.md b/docs/libcurl/opts/CURLOPT_SSLKEY.md index f6777bbc1a..7ec6aa9cdd 100644 --- a/docs/libcurl/opts/CURLOPT_SSLKEY.md +++ b/docs/libcurl/opts/CURLOPT_SSLKEY.md @@ -10,6 +10,11 @@ See-also: - CURLOPT_SSLKEY_BLOB (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - mbedTLS + - Schannel + - wolfSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSLKEYTYPE.md b/docs/libcurl/opts/CURLOPT_SSLKEYTYPE.md index 27cfb37a54..453d8908dc 100644 --- a/docs/libcurl/opts/CURLOPT_SSLKEYTYPE.md +++ b/docs/libcurl/opts/CURLOPT_SSLKEYTYPE.md @@ -10,6 +10,10 @@ See-also: - CURLOPT_SSLKEY (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - BearSSL + - wolfSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSLKEY_BLOB.md b/docs/libcurl/opts/CURLOPT_SSLKEY_BLOB.md index 833a94a07b..6aabd3fa33 100644 --- a/docs/libcurl/opts/CURLOPT_SSLKEY_BLOB.md +++ b/docs/libcurl/opts/CURLOPT_SSLKEY_BLOB.md @@ -9,6 +9,8 @@ See-also: - CURLOPT_SSLKEYTYPE (3) Protocol: - TLS +TLS-backend: + - OpenSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSLVERSION.md b/docs/libcurl/opts/CURLOPT_SSLVERSION.md index 5978cd3071..073fc74471 100644 --- a/docs/libcurl/opts/CURLOPT_SSLVERSION.md +++ b/docs/libcurl/opts/CURLOPT_SSLVERSION.md @@ -11,6 +11,8 @@ See-also: - CURLOPT_USE_SSL (3) Protocol: - TLS +TLS-backend: + - All --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSL_CIPHER_LIST.md b/docs/libcurl/opts/CURLOPT_SSL_CIPHER_LIST.md index f337200be8..0143c8dfb0 100644 --- a/docs/libcurl/opts/CURLOPT_SSL_CIPHER_LIST.md +++ b/docs/libcurl/opts/CURLOPT_SSL_CIPHER_LIST.md @@ -12,6 +12,13 @@ See-also: - CURLOPT_USE_SSL (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - BearSSL + - Schannel + - Secure Transport + - wolfSSL + - GnuTLS --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSL_CTX_DATA.md b/docs/libcurl/opts/CURLOPT_SSL_CTX_DATA.md index 76483f41c5..be7307f8a7 100644 --- a/docs/libcurl/opts/CURLOPT_SSL_CTX_DATA.md +++ b/docs/libcurl/opts/CURLOPT_SSL_CTX_DATA.md @@ -9,6 +9,11 @@ See-also: - CURLOPT_SSL_CTX_FUNCTION (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - wolfSSL + - mbedTLS + - BearSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSL_CTX_FUNCTION.md b/docs/libcurl/opts/CURLOPT_SSL_CTX_FUNCTION.md index 995f7295ea..76e2403ff8 100644 --- a/docs/libcurl/opts/CURLOPT_SSL_CTX_FUNCTION.md +++ b/docs/libcurl/opts/CURLOPT_SSL_CTX_FUNCTION.md @@ -10,6 +10,11 @@ See-also: - CURLOPT_CAINFO (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - wolfSSL + - mbedTLS + - BearSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSL_EC_CURVES.md b/docs/libcurl/opts/CURLOPT_SSL_EC_CURVES.md index 9b22633263..17b2e846a2 100644 --- a/docs/libcurl/opts/CURLOPT_SSL_EC_CURVES.md +++ b/docs/libcurl/opts/CURLOPT_SSL_EC_CURVES.md @@ -10,6 +10,9 @@ See-also: - CURLOPT_TLS13_CIPHERS (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - wolfSSL --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSL_ENABLE_ALPN.md b/docs/libcurl/opts/CURLOPT_SSL_ENABLE_ALPN.md index 8ed88b6b37..49796496d8 100644 --- a/docs/libcurl/opts/CURLOPT_SSL_ENABLE_ALPN.md +++ b/docs/libcurl/opts/CURLOPT_SSL_ENABLE_ALPN.md @@ -9,6 +9,8 @@ See-also: - CURLOPT_SSL_OPTIONS (3) Protocol: - TLS +TLS-backend: + - All --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSL_ENABLE_NPN.md b/docs/libcurl/opts/CURLOPT_SSL_ENABLE_NPN.md index 869c70678e..a0a68c6af3 100644 --- a/docs/libcurl/opts/CURLOPT_SSL_ENABLE_NPN.md +++ b/docs/libcurl/opts/CURLOPT_SSL_ENABLE_NPN.md @@ -9,6 +9,8 @@ See-also: - CURLOPT_SSL_OPTIONS (3) Protocol: - TLS +TLS-backend: + - All --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSL_FALSESTART.md b/docs/libcurl/opts/CURLOPT_SSL_FALSESTART.md index 754c26fdde..106b6efc07 100644 --- a/docs/libcurl/opts/CURLOPT_SSL_FALSESTART.md +++ b/docs/libcurl/opts/CURLOPT_SSL_FALSESTART.md @@ -8,6 +8,8 @@ See-also: - CURLOPT_TCP_FASTOPEN (3) Protocol: - TLS +TLS-backend: + - Secure Transport --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSL_OPTIONS.md b/docs/libcurl/opts/CURLOPT_SSL_OPTIONS.md index 8fcc721fec..4e33aac1ed 100644 --- a/docs/libcurl/opts/CURLOPT_SSL_OPTIONS.md +++ b/docs/libcurl/opts/CURLOPT_SSL_OPTIONS.md @@ -10,6 +10,8 @@ See-also: - CURLOPT_SSL_CIPHER_LIST (3) Protocol: - TLS +TLS-backend: + - All --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSL_SESSIONID_CACHE.md b/docs/libcurl/opts/CURLOPT_SSL_SESSIONID_CACHE.md index 677ef6ca27..63eab60848 100644 --- a/docs/libcurl/opts/CURLOPT_SSL_SESSIONID_CACHE.md +++ b/docs/libcurl/opts/CURLOPT_SSL_SESSIONID_CACHE.md @@ -11,6 +11,8 @@ See-also: - CURLOPT_SSLVERSION (3) Protocol: - TLS +TLS-backend: + - All --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSL_VERIFYHOST.md b/docs/libcurl/opts/CURLOPT_SSL_VERIFYHOST.md index e96e4be530..4cee06f25a 100644 --- a/docs/libcurl/opts/CURLOPT_SSL_VERIFYHOST.md +++ b/docs/libcurl/opts/CURLOPT_SSL_VERIFYHOST.md @@ -10,6 +10,8 @@ See-also: - CURLOPT_SSL_VERIFYPEER (3) Protocol: - TLS +TLS-backend: + - All --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSL_VERIFYPEER.md b/docs/libcurl/opts/CURLOPT_SSL_VERIFYPEER.md index e636b16616..53c81c79aa 100644 --- a/docs/libcurl/opts/CURLOPT_SSL_VERIFYPEER.md +++ b/docs/libcurl/opts/CURLOPT_SSL_VERIFYPEER.md @@ -13,6 +13,8 @@ See-also: - CURLOPT_SSL_VERIFYHOST (3) Protocol: - TLS +TLS-backend: + - All --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_SSL_VERIFYSTATUS.md b/docs/libcurl/opts/CURLOPT_SSL_VERIFYSTATUS.md index 392fc2f678..dc051ef4af 100644 --- a/docs/libcurl/opts/CURLOPT_SSL_VERIFYSTATUS.md +++ b/docs/libcurl/opts/CURLOPT_SSL_VERIFYSTATUS.md @@ -10,6 +10,9 @@ See-also: - CURLOPT_SSL_VERIFYPEER (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_TLS13_CIPHERS.md b/docs/libcurl/opts/CURLOPT_TLS13_CIPHERS.md index 3b9eee82d4..5a65b43370 100644 --- a/docs/libcurl/opts/CURLOPT_TLS13_CIPHERS.md +++ b/docs/libcurl/opts/CURLOPT_TLS13_CIPHERS.md @@ -13,6 +13,10 @@ See-also: - CURLOPT_USE_SSL (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - rustls + - Schannel --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_TLSAUTH_PASSWORD.md b/docs/libcurl/opts/CURLOPT_TLSAUTH_PASSWORD.md index f2670815dd..8871526c23 100644 --- a/docs/libcurl/opts/CURLOPT_TLSAUTH_PASSWORD.md +++ b/docs/libcurl/opts/CURLOPT_TLSAUTH_PASSWORD.md @@ -10,6 +10,9 @@ See-also: - CURLOPT_TLSAUTH_USERNAME (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_TLSAUTH_TYPE.md b/docs/libcurl/opts/CURLOPT_TLSAUTH_TYPE.md index fe7cdcd2fe..111b82d7cc 100644 --- a/docs/libcurl/opts/CURLOPT_TLSAUTH_TYPE.md +++ b/docs/libcurl/opts/CURLOPT_TLSAUTH_TYPE.md @@ -9,6 +9,9 @@ See-also: - CURLOPT_TLSAUTH_USERNAME (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS --- # NAME diff --git a/docs/libcurl/opts/CURLOPT_TLSAUTH_USERNAME.md b/docs/libcurl/opts/CURLOPT_TLSAUTH_USERNAME.md index b091ebfac4..80ea1a2a02 100644 --- a/docs/libcurl/opts/CURLOPT_TLSAUTH_USERNAME.md +++ b/docs/libcurl/opts/CURLOPT_TLSAUTH_USERNAME.md @@ -9,6 +9,9 @@ See-also: - CURLOPT_TLSAUTH_TYPE (3) Protocol: - TLS +TLS-backend: + - OpenSSL + - GnuTLS --- # NAME diff --git a/scripts/cd2nroff b/scripts/cd2nroff index 35baa450f0..6356c9de9c 100755 --- a/scripts/cd2nroff +++ b/scripts/cd2nroff @@ -96,17 +96,64 @@ sub outseealso { return @o; } +my %knownprotos = ( + 'DICT' => 1, + 'FILE' => 1, + 'FTP' => 1, + 'FTPS' => 1, + 'GOPHER' => 1, + 'GOPHERS' => 1, + 'HTTP' => 1, + 'HTTPS' => 1, + 'IMAP' => 1, + 'IMAPS' => 1, + 'LDAP' => 1, + 'LDAPS' => 1, + 'MQTT' => 1, + 'POP3' => 1, + 'POP3S' => 1, + 'RTMP' => 1, + 'RTMPS' => 1, + 'RTSP' => 1, + 'SCP' => 1, + 'SFTP' => 1, + 'SMB' => 1, + 'SMBS' => 1, + 'SMTP' => 1, + 'SMTPS' => 1, + 'TELNET' => 1, + 'TFTP' => 1, + 'WS' => 1, + 'WSS' => 1, + 'TLS' => 1, + 'TCP' => 1, + '*' => 1 + ); + +my %knowntls = ( + 'BearSSL' => 1, + 'GnuTLS' => 1, + 'mbedTLS' => 1, + 'OpenSSL' => 1, + 'rustls' => 1, + 'Schannel' => 1, + 'Secure Transport' => 1, + 'wolfSSL' => 1, + 'All' => 1, + ); + sub single { my @seealso; my @proto; + my @tls; my $d; my ($f)=@_; my $copyright; my $errors = 0; my $fh; my $line; - my $salist; - my $protolist; + my $list; + my $tlslist; my $section; my $source; my $spdx; @@ -143,7 +190,7 @@ sub single { $source=$1; } elsif(/^See-also: +(.*)/i) { - $salist = 0; + $list = 1; # 1 for see-also push @seealso, $1; } elsif(/^See-also: */i) { @@ -151,21 +198,25 @@ sub single { print STDERR "$f:$line:1:ERROR: bad See-Also, needs list\n"; return 2; } - $salist = 1; - $protolist = 0; + $list = 1; # 1 for see-also } elsif(/^Protocol:/i) { - $salist = 0; - $protolist = 1; + $list = 2; # 2 for protocol + } + elsif(/^TLS-backend:/i) { + $list = 3; # 3 for TLS backend } elsif(/^ +- (.*)/i) { # the only lists we support are see-also and protocol - if($salist) { + if($list == 1) { push @seealso, $1; } - elsif($protolist) { + elsif($list == 2) { push @proto, $1; } + elsif($list == 3) { + push @tls, $1; + } else { print STDERR "$f:$line:1:ERROR: list item without owner?\n"; return 2; @@ -201,9 +252,34 @@ sub single { print STDERR "$f:$line:1:ERROR: no 'SPDX-License-Identifier:' field present\n"; return 2; } - if(!$proto[0] && ($section == 3)) { - printf STDERR "$f:$line:1:ERROR: missing Protocol:\n"; - exit 2; + if($section == 3) { + if(!$proto[0]) { + printf STDERR "$f:$line:1:ERROR: missing Protocol:\n"; + exit 2; + } + my $tls = 0; + for my $p (@proto) { + if($p eq "TLS") { + $tls = 1; + } + if(!$knownprotos{$p}) { + printf STDERR "$f:$line:1:ERROR: invalid protocol used: $p:\n"; + exit 2; + } + } + # This is for TLS, require TLS-backend: + if($tls) { + if(!$tls[0]) { + printf STDERR "$f:$line:1:ERROR: missing TLS-backend:\n"; + exit 2; + } + for my $t (@tls) { + if(!$knowntls{$t}) { + printf STDERR "$f:$line:1:ERROR: invalid TLS backend: $t:\n"; + exit 2; + } + } + } } last; }