1/***************************************************************************
2 * _ _ ____ _
3 * Project ___| | | | _ \| |
4 * / __| | | | |_) | |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
7 *
8 * Copyright (C) 1998 - 2020, 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 ***************************************************************************/
22
23/*
24 * The purpose of this tool is to figure out which, if any, features that are
25 * disabled which should otherwise exist and work. These aren't visible in
26 * regular curl -V output.
27 *
28 * Disabled protocols are visible in curl_version_info() and are not included
29 * in this table.
30 */
31
32#include "curl_setup.h"
33#include "multihandle.h" /* for ENABLE_WAKEUP */
34#include <stdio.h>
35
36static const char *disabled[]={
37#ifdef CURL_DISABLE_COOKIES
38 "cookies",
39#endif
40#ifdef CURL_DISABLE_CRYPTO_AUTH
41 "crypto",
42#endif
43#ifdef CURL_DISABLE_DOH
44 "DoH",
45#endif
46#ifdef CURL_DISABLE_HTTP_AUTH
47 "HTTP-auth",
48#endif
49#ifdef CURL_DISABLE_MIME
50 "Mime",
51#endif
52#ifdef CURL_DISABLE_NETRC
53 "netrc",
54#endif
55#ifdef CURL_DISABLE_PARSEDATE
56 "parsedate",
57#endif
58#ifdef CURL_DISABLE_PROXY
59 "proxy",
60#endif
61#ifdef CURL_DISABLE_SHUFFLE_DNS
62 "shuffle-dns",
63#endif
64#ifdef CURL_DISABLE_TYPECHECK
65 "typecheck",
66#endif
67#ifdef CURL_DISABLE_VERBOSE_STRINGS
68 "verbose-strings",
69#endif
70#ifndef ENABLE_WAKEUP
71 "wakeup",
72#endif
73 NULL
74};
75
76int main(void)
77{
78 int i;
79 for(i = 0; disabled[i]; i++)
80 printf("%s\n", disabled[i]);
81
82 return 0;
83}
84