disabled.c 2.2 KB

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