2019-06-10 14:17:16 +08:00
|
|
|
/***************************************************************************
|
|
|
|
* _ _ ____ _
|
|
|
|
* Project ___| | | | _ \| |
|
|
|
|
* / __| | | | |_) | |
|
|
|
|
* | (__| |_| | _ <| |___
|
|
|
|
* \___|\___/|_| \_\_____|
|
|
|
|
*
|
2023-01-02 20:51:48 +08:00
|
|
|
* Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2019-06-10 14:17:16 +08:00
|
|
|
*
|
|
|
|
* This software is licensed as described in the file COPYING, which
|
|
|
|
* you should have received as part of this distribution. The terms
|
2020-11-04 21:02:01 +08:00
|
|
|
* are also available at https://curl.se/docs/copyright.html.
|
2019-06-10 14:17:16 +08:00
|
|
|
*
|
|
|
|
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
* copies of the Software, and permit persons to whom the Software is
|
|
|
|
* furnished to do so, under the terms of the COPYING file.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: curl
|
2022-05-17 17:16:50 +08:00
|
|
|
*
|
2019-06-10 14:17:16 +08:00
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* The purpose of this tool is to figure out which, if any, features that are
|
|
|
|
* disabled which should otherwise exist and work. These aren't visible in
|
|
|
|
* regular curl -V output.
|
|
|
|
*
|
|
|
|
* Disabled protocols are visible in curl_version_info() and are not included
|
|
|
|
* in this table.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "curl_setup.h"
|
2020-12-11 16:05:47 +08:00
|
|
|
#include "multihandle.h" /* for ENABLE_WAKEUP */
|
2022-10-19 17:40:11 +08:00
|
|
|
#include "tool_xattr.h" /* for USE_XATTR */
|
2024-02-08 06:07:07 +08:00
|
|
|
#include "curl_sha512_256.h" /* for CURL_HAVE_SHA512_256 */
|
2019-06-10 14:17:16 +08:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
static const char *disabled[]={
|
2023-08-17 20:36:30 +08:00
|
|
|
#ifdef CURL_DISABLE_BINDLOCAL
|
|
|
|
"bindlocal",
|
|
|
|
#endif
|
2019-06-10 14:17:16 +08:00
|
|
|
#ifdef CURL_DISABLE_COOKIES
|
|
|
|
"cookies",
|
|
|
|
#endif
|
2023-07-20 22:09:04 +08:00
|
|
|
#ifdef CURL_DISABLE_BASIC_AUTH
|
|
|
|
"basic-auth",
|
|
|
|
#endif
|
|
|
|
#ifdef CURL_DISABLE_BEARER_AUTH
|
|
|
|
"bearer-auth",
|
|
|
|
#endif
|
|
|
|
#ifdef CURL_DISABLE_DIGEST_AUTH
|
|
|
|
"digest-auth",
|
|
|
|
#endif
|
|
|
|
#ifdef CURL_DISABLE_NEGOTIATE_AUTH
|
|
|
|
"negotiate-auth",
|
|
|
|
#endif
|
|
|
|
#ifdef CURL_DISABLE_AWS
|
|
|
|
"aws",
|
2019-06-10 14:17:16 +08:00
|
|
|
#endif
|
|
|
|
#ifdef CURL_DISABLE_DOH
|
|
|
|
"DoH",
|
|
|
|
#endif
|
|
|
|
#ifdef CURL_DISABLE_HTTP_AUTH
|
|
|
|
"HTTP-auth",
|
|
|
|
#endif
|
|
|
|
#ifdef CURL_DISABLE_MIME
|
|
|
|
"Mime",
|
|
|
|
#endif
|
|
|
|
#ifdef CURL_DISABLE_NETRC
|
|
|
|
"netrc",
|
|
|
|
#endif
|
|
|
|
#ifdef CURL_DISABLE_PARSEDATE
|
|
|
|
"parsedate",
|
|
|
|
#endif
|
|
|
|
#ifdef CURL_DISABLE_PROXY
|
|
|
|
"proxy",
|
|
|
|
#endif
|
|
|
|
#ifdef CURL_DISABLE_SHUFFLE_DNS
|
|
|
|
"shuffle-dns",
|
|
|
|
#endif
|
|
|
|
#ifdef CURL_DISABLE_TYPECHECK
|
|
|
|
"typecheck",
|
|
|
|
#endif
|
|
|
|
#ifdef CURL_DISABLE_VERBOSE_STRINGS
|
|
|
|
"verbose-strings",
|
2020-12-11 16:05:47 +08:00
|
|
|
#endif
|
|
|
|
#ifndef ENABLE_WAKEUP
|
|
|
|
"wakeup",
|
2022-03-20 05:34:19 +08:00
|
|
|
#endif
|
2022-05-30 20:13:48 +08:00
|
|
|
#ifdef CURL_DISABLE_HEADERS_API
|
2022-03-20 05:34:19 +08:00
|
|
|
"headers-api",
|
2022-10-19 17:40:11 +08:00
|
|
|
#endif
|
|
|
|
#ifndef USE_XATTR
|
|
|
|
"xattr",
|
2022-11-16 00:50:22 +08:00
|
|
|
#endif
|
|
|
|
#ifdef CURL_DISABLE_FORM_API
|
|
|
|
"form-api",
|
2023-08-20 03:20:03 +08:00
|
|
|
#endif
|
|
|
|
#if (SIZEOF_TIME_T < 5)
|
|
|
|
"large-time",
|
2024-02-08 06:07:07 +08:00
|
|
|
#endif
|
|
|
|
#ifndef CURL_HAVE_SHA512_256
|
|
|
|
"sha512-256",
|
2024-08-18 15:51:49 +08:00
|
|
|
#endif
|
|
|
|
#ifdef _WIN32
|
|
|
|
#if defined(CURL_WINDOWS_UWP) || \
|
|
|
|
defined(CURL_DISABLE_CA_SEARCH) || defined(CURL_CA_SEARCH_SAFE)
|
|
|
|
"win32-ca-searchpath",
|
|
|
|
#endif
|
|
|
|
#ifndef CURL_CA_SEARCH_SAFE
|
|
|
|
"win32-ca-search-safe",
|
|
|
|
#endif
|
2019-06-10 14:17:16 +08:00
|
|
|
#endif
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
|
2023-08-19 14:28:39 +08:00
|
|
|
int main(int argc, char **argv)
|
2019-06-10 14:17:16 +08:00
|
|
|
{
|
|
|
|
int i;
|
2023-08-19 14:28:39 +08:00
|
|
|
|
|
|
|
(void) argc;
|
|
|
|
(void) argv;
|
|
|
|
|
2019-06-10 14:17:16 +08:00
|
|
|
for(i = 0; disabled[i]; i++)
|
|
|
|
printf("%s\n", disabled[i]);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|