113498266Sopenharmony_ci/*************************************************************************** 213498266Sopenharmony_ci * _ _ ____ _ 313498266Sopenharmony_ci * Project ___| | | | _ \| | 413498266Sopenharmony_ci * / __| | | | |_) | | 513498266Sopenharmony_ci * | (__| |_| | _ <| |___ 613498266Sopenharmony_ci * \___|\___/|_| \_\_____| 713498266Sopenharmony_ci * 813498266Sopenharmony_ci * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 913498266Sopenharmony_ci * 1013498266Sopenharmony_ci * This software is licensed as described in the file COPYING, which 1113498266Sopenharmony_ci * you should have received as part of this distribution. The terms 1213498266Sopenharmony_ci * are also available at https://curl.se/docs/copyright.html. 1313498266Sopenharmony_ci * 1413498266Sopenharmony_ci * You may opt to use, copy, modify, merge, publish, distribute and/or sell 1513498266Sopenharmony_ci * copies of the Software, and permit persons to whom the Software is 1613498266Sopenharmony_ci * furnished to do so, under the terms of the COPYING file. 1713498266Sopenharmony_ci * 1813498266Sopenharmony_ci * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY 1913498266Sopenharmony_ci * KIND, either express or implied. 2013498266Sopenharmony_ci * 2113498266Sopenharmony_ci * SPDX-License-Identifier: curl 2213498266Sopenharmony_ci * 2313498266Sopenharmony_ci ***************************************************************************/ 2413498266Sopenharmony_ci 2513498266Sopenharmony_ci/* 2613498266Sopenharmony_ci * The purpose of this tool is to figure out which, if any, features that are 2713498266Sopenharmony_ci * disabled which should otherwise exist and work. These aren't visible in 2813498266Sopenharmony_ci * regular curl -V output. 2913498266Sopenharmony_ci * 3013498266Sopenharmony_ci * Disabled protocols are visible in curl_version_info() and are not included 3113498266Sopenharmony_ci * in this table. 3213498266Sopenharmony_ci */ 3313498266Sopenharmony_ci 3413498266Sopenharmony_ci#include "curl_setup.h" 3513498266Sopenharmony_ci#include "multihandle.h" /* for ENABLE_WAKEUP */ 3613498266Sopenharmony_ci#include "tool_xattr.h" /* for USE_XATTR */ 3713498266Sopenharmony_ci#include <stdio.h> 3813498266Sopenharmony_ci 3913498266Sopenharmony_cistatic const char *disabled[]={ 4013498266Sopenharmony_ci#ifdef CURL_DISABLE_BINDLOCAL 4113498266Sopenharmony_ci "bindlocal", 4213498266Sopenharmony_ci#endif 4313498266Sopenharmony_ci#ifdef CURL_DISABLE_COOKIES 4413498266Sopenharmony_ci "cookies", 4513498266Sopenharmony_ci#endif 4613498266Sopenharmony_ci#ifdef CURL_DISABLE_BASIC_AUTH 4713498266Sopenharmony_ci "basic-auth", 4813498266Sopenharmony_ci#endif 4913498266Sopenharmony_ci#ifdef CURL_DISABLE_BEARER_AUTH 5013498266Sopenharmony_ci "bearer-auth", 5113498266Sopenharmony_ci#endif 5213498266Sopenharmony_ci#ifdef CURL_DISABLE_DIGEST_AUTH 5313498266Sopenharmony_ci "digest-auth", 5413498266Sopenharmony_ci#endif 5513498266Sopenharmony_ci#ifdef CURL_DISABLE_NEGOTIATE_AUTH 5613498266Sopenharmony_ci "negotiate-auth", 5713498266Sopenharmony_ci#endif 5813498266Sopenharmony_ci#ifdef CURL_DISABLE_AWS 5913498266Sopenharmony_ci "aws", 6013498266Sopenharmony_ci#endif 6113498266Sopenharmony_ci#ifdef CURL_DISABLE_DOH 6213498266Sopenharmony_ci "DoH", 6313498266Sopenharmony_ci#endif 6413498266Sopenharmony_ci#ifdef CURL_DISABLE_HTTP_AUTH 6513498266Sopenharmony_ci "HTTP-auth", 6613498266Sopenharmony_ci#endif 6713498266Sopenharmony_ci#ifdef CURL_DISABLE_MIME 6813498266Sopenharmony_ci "Mime", 6913498266Sopenharmony_ci#endif 7013498266Sopenharmony_ci#ifdef CURL_DISABLE_NETRC 7113498266Sopenharmony_ci "netrc", 7213498266Sopenharmony_ci#endif 7313498266Sopenharmony_ci#ifdef CURL_DISABLE_PARSEDATE 7413498266Sopenharmony_ci "parsedate", 7513498266Sopenharmony_ci#endif 7613498266Sopenharmony_ci#ifdef CURL_DISABLE_PROXY 7713498266Sopenharmony_ci "proxy", 7813498266Sopenharmony_ci#endif 7913498266Sopenharmony_ci#ifdef CURL_DISABLE_SHUFFLE_DNS 8013498266Sopenharmony_ci "shuffle-dns", 8113498266Sopenharmony_ci#endif 8213498266Sopenharmony_ci#ifdef CURL_DISABLE_TYPECHECK 8313498266Sopenharmony_ci "typecheck", 8413498266Sopenharmony_ci#endif 8513498266Sopenharmony_ci#ifdef CURL_DISABLE_VERBOSE_STRINGS 8613498266Sopenharmony_ci "verbose-strings", 8713498266Sopenharmony_ci#endif 8813498266Sopenharmony_ci#ifndef ENABLE_WAKEUP 8913498266Sopenharmony_ci "wakeup", 9013498266Sopenharmony_ci#endif 9113498266Sopenharmony_ci#ifdef CURL_DISABLE_HEADERS_API 9213498266Sopenharmony_ci "headers-api", 9313498266Sopenharmony_ci#endif 9413498266Sopenharmony_ci#ifndef USE_XATTR 9513498266Sopenharmony_ci "xattr", 9613498266Sopenharmony_ci#endif 9713498266Sopenharmony_ci#ifdef CURL_DISABLE_FORM_API 9813498266Sopenharmony_ci "form-api", 9913498266Sopenharmony_ci#endif 10013498266Sopenharmony_ci#if (SIZEOF_TIME_T < 5) 10113498266Sopenharmony_ci "large-time", 10213498266Sopenharmony_ci#endif 10313498266Sopenharmony_ci NULL 10413498266Sopenharmony_ci}; 10513498266Sopenharmony_ci 10613498266Sopenharmony_ciint main(int argc, char **argv) 10713498266Sopenharmony_ci{ 10813498266Sopenharmony_ci int i; 10913498266Sopenharmony_ci 11013498266Sopenharmony_ci (void) argc; 11113498266Sopenharmony_ci (void) argv; 11213498266Sopenharmony_ci 11313498266Sopenharmony_ci for(i = 0; disabled[i]; i++) 11413498266Sopenharmony_ci printf("%s\n", disabled[i]); 11513498266Sopenharmony_ci 11613498266Sopenharmony_ci return 0; 11713498266Sopenharmony_ci} 118