mirror of
https://github.com/curl/curl.git
synced 2026-07-26 07:47:33 +03:00
CURL-DISABLE: initial docs for the CURL_DISABLE_* defines
The disable-scan script used in test 1165 is extended to also verify that the docs cover all used defines and all defines offered by configure. Reported-by: SLDiggie on github Fixes #4545 Closes #4587
This commit is contained in:
parent
13182b33f7
commit
cbaaae44fe
4 changed files with 150 additions and 14 deletions
110
docs/CURL-DISABLE.md
Normal file
110
docs/CURL-DISABLE.md
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
# Code defines to disable features and protocols
|
||||
|
||||
## CURL_DISABLE_COOKIES
|
||||
|
||||
Disable support for HTTP cookies.
|
||||
|
||||
## CURL_DISABLE_CRYPTO_AUTH
|
||||
|
||||
Disable support for authentication methods using crypto.
|
||||
|
||||
## CURL_DISABLE_DICT
|
||||
|
||||
Disable the DICT protocol
|
||||
|
||||
## CURL_DISABLE_DOH
|
||||
|
||||
Disable DNS-over-HTTPS
|
||||
|
||||
## CURL_DISABLE_FILE
|
||||
|
||||
Disable the FILE protocol
|
||||
|
||||
## CURL_DISABLE_FTP
|
||||
|
||||
Disable the FTP (and FTPS) protocol
|
||||
|
||||
## CURL_DISABLE_GOPHER
|
||||
|
||||
Disable the GOPHER protocol.
|
||||
|
||||
## CURL_DISABLE_HTTP
|
||||
|
||||
Disable the HTTP(S) protocols. Note that this then also disable HTTP proxy
|
||||
support.
|
||||
|
||||
## CURL_DISABLE_HTTP_AUTH
|
||||
|
||||
Disable suppotr for all HTTP authentication methods.
|
||||
|
||||
## CURL_DISABLE_IMAP
|
||||
|
||||
Disable the IMAP(S) protocols.
|
||||
|
||||
## CURL_DISABLE_LDAP
|
||||
|
||||
Disable the LDAP(S) protocols.
|
||||
|
||||
## CURL_DISABLE_LDAPS
|
||||
|
||||
Disable the LDAPS protocol.
|
||||
|
||||
## CURL_DISABLE_LIBCURL_OPTION
|
||||
|
||||
Disable the --libcurl option from the curl tool.
|
||||
|
||||
## CURL_DISABLE_MIME
|
||||
|
||||
Disable MIME support.
|
||||
|
||||
## CURL_DISABLE_NETRC
|
||||
|
||||
Disable the netrc parser.
|
||||
|
||||
## CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG
|
||||
|
||||
Disable the auto load config support in the OpenSSL backend.
|
||||
|
||||
## CURL_DISABLE_PARSEDATE
|
||||
|
||||
Disable date parsing
|
||||
|
||||
## CURL_DISABLE_POP
|
||||
|
||||
Disable the POP(S) protocols
|
||||
|
||||
## CURL_DISABLE_PROGRESS_METER
|
||||
|
||||
Disable the built-in progress meter
|
||||
|
||||
## CURL_DISABLE_PROXY
|
||||
|
||||
Disable support for proxies
|
||||
|
||||
## CURL_DISABLE_RTSP
|
||||
|
||||
Disable the RTSP protocol.
|
||||
|
||||
## CURL_DISABLE_SHUFFLE_DNS
|
||||
|
||||
Disable the shuffle DNS feature
|
||||
|
||||
## CURL_DISABLE_SMB
|
||||
|
||||
Disable the SMB(S) protocols
|
||||
|
||||
## CURL_DISABLE_SMTP
|
||||
|
||||
Disable the SMTP(S) protocols
|
||||
|
||||
## CURL_DISABLE_TELNET
|
||||
|
||||
Disable the TELNET protocol
|
||||
|
||||
## CURL_DISABLE_TFTP
|
||||
|
||||
Disable the TFTP protocol
|
||||
|
||||
## CURL_DISABLE_VERBOSE_STRINGS
|
||||
|
||||
Disable verbose strings and error messages.
|
||||
|
|
@ -195,20 +195,8 @@ The configure utility, unfortunately, is not available for the Windows
|
|||
environment, therefore, you cannot use the various disable-protocol options of
|
||||
the configure utility on this platform.
|
||||
|
||||
However, you can use the following defines to disable specific
|
||||
protocols:
|
||||
|
||||
- `HTTP_ONLY` disables all protocols except HTTP
|
||||
- `CURL_DISABLE_FTP` disables FTP
|
||||
- `CURL_DISABLE_LDAP` disables LDAP
|
||||
- `CURL_DISABLE_TELNET` disables TELNET
|
||||
- `CURL_DISABLE_DICT` disables DICT
|
||||
- `CURL_DISABLE_FILE` disables FILE
|
||||
- `CURL_DISABLE_TFTP` disables TFTP
|
||||
- `CURL_DISABLE_HTTP` disables HTTP
|
||||
- `CURL_DISABLE_IMAP` disables IMAP
|
||||
- `CURL_DISABLE_POP3` disables POP3
|
||||
- `CURL_DISABLE_SMTP` disables SMTP
|
||||
You can use specific defines to disable specific protocols and features. See
|
||||
[CURL-DISABLE.md](CURL-DISABLE-md) for the full list.
|
||||
|
||||
If you want to set any of these defines you have the following options:
|
||||
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ EXTRA_DIST = \
|
|||
CODE_OF_CONDUCT.md \
|
||||
CODE_STYLE.md \
|
||||
CONTRIBUTE.md \
|
||||
CURL-DISABLE.md \
|
||||
DEPRECATE.md \
|
||||
ESNI.md \
|
||||
EXPERIMENTAL.md \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue