blob: 8a4a17ce5eb0eb2b88c8475da8e0fcd7b43ec339 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001/***************************************************************************
2 * _ _ ____ _
3 * Project ___| | | | _ \| |
4 * / __| | | | |_) | |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
7 *
8 * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
9 *
10 * This software is licensed as described in the file COPYING, which
11 * you should have received as part of this distribution. The terms
12 * are also available at https://curl.se/docs/copyright.html.
13 *
14 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 * copies of the Software, and permit persons to whom the Software is
16 * furnished to do so, under the terms of the COPYING file.
17 *
18 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19 * KIND, either express or implied.
20 *
21 * SPDX-License-Identifier: curl
22 *
23 ***************************************************************************/
24
25/*
26 * The purpose of this tool is to figure out which, if any, features that are
27 * disabled which should otherwise exist and work. These aren't visible in
28 * regular curl -V output.
29 *
30 * Disabled protocols are visible in curl_version_info() and are not included
31 * in this table.
32 */
33
34#include "curl_setup.h"
35#include "multihandle.h" /* for ENABLE_WAKEUP */
36#include "tool_xattr.h" /* for USE_XATTR */
37#include <stdio.h>
38
39static const char *disabled[]={
40#ifdef CURL_DISABLE_COOKIES
41 "cookies",
42#endif
43#ifdef CURL_DISABLE_CRYPTO_AUTH
44 "crypto",
45#endif
46#ifdef CURL_DISABLE_DOH
47 "DoH",
48#endif
49#ifdef CURL_DISABLE_HTTP_AUTH
50 "HTTP-auth",
51#endif
52#ifdef CURL_DISABLE_MIME
53 "Mime",
54#endif
55#ifdef CURL_DISABLE_NETRC
56 "netrc",
57#endif
58#ifdef CURL_DISABLE_PARSEDATE
59 "parsedate",
60#endif
61#ifdef CURL_DISABLE_PROXY
62 "proxy",
63#endif
64#ifdef CURL_DISABLE_SHUFFLE_DNS
65 "shuffle-dns",
66#endif
67#ifdef CURL_DISABLE_TYPECHECK
68 "typecheck",
69#endif
70#ifdef CURL_DISABLE_VERBOSE_STRINGS
71 "verbose-strings",
72#endif
73#ifndef ENABLE_WAKEUP
74 "wakeup",
75#endif
76#ifdef CURL_DISABLE_HEADERS_API
77 "headers-api",
78#endif
79#ifndef USE_XATTR
80 "xattr",
81#endif
82 NULL
83};
84
85int main(void)
86{
87 int i;
88 for(i = 0; disabled[i]; i++)
89 printf("%s\n", disabled[i]);
90
91 return 0;
92}