disabled.c 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /***************************************************************************
  2. * _ _ ____ _
  3. * Project ___| | | | _ \| |
  4. * / __| | | | |_) | |
  5. * | (__| |_| | _ <| |___
  6. * \___|\___/|_| \_\_____|
  7. *
  8. * Copyright (C) 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 "tool_xattr.h" /* for USE_XATTR */
  35. #include <stdio.h>
  36. static const char *disabled[]={
  37. #ifdef CURL_DISABLE_BINDLOCAL
  38. "bindlocal",
  39. #endif
  40. #ifdef CURL_DISABLE_COOKIES
  41. "cookies",
  42. #endif
  43. #ifdef CURL_DISABLE_BASIC_AUTH
  44. "basic-auth",
  45. #endif
  46. #ifdef CURL_DISABLE_BEARER_AUTH
  47. "bearer-auth",
  48. #endif
  49. #ifdef CURL_DISABLE_DIGEST_AUTH
  50. "digest-auth",
  51. #endif
  52. #ifdef CURL_DISABLE_NEGOTIATE_AUTH
  53. "negotiate-auth",
  54. #endif
  55. #ifdef CURL_DISABLE_AWS
  56. "aws",
  57. #endif
  58. #ifdef CURL_DISABLE_DOH
  59. "DoH",
  60. #endif
  61. #ifdef CURL_DISABLE_HTTP_AUTH
  62. "HTTP-auth",
  63. #endif
  64. #ifdef CURL_DISABLE_MIME
  65. "Mime",
  66. #endif
  67. #ifdef CURL_DISABLE_NETRC
  68. "netrc",
  69. #endif
  70. #ifdef CURL_DISABLE_PARSEDATE
  71. "parsedate",
  72. #endif
  73. #ifdef CURL_DISABLE_PROXY
  74. "proxy",
  75. #endif
  76. #ifdef CURL_DISABLE_SHUFFLE_DNS
  77. "shuffle-dns",
  78. #endif
  79. #ifdef CURL_DISABLE_TYPECHECK
  80. "typecheck",
  81. #endif
  82. #ifdef CURL_DISABLE_VERBOSE_STRINGS
  83. "verbose-strings",
  84. #endif
  85. #ifndef ENABLE_WAKEUP
  86. "wakeup",
  87. #endif
  88. #ifdef CURL_DISABLE_HEADERS_API
  89. "headers-api",
  90. #endif
  91. #ifndef USE_XATTR
  92. "xattr",
  93. #endif
  94. #ifdef CURL_DISABLE_FORM_API
  95. "form-api",
  96. #endif
  97. #if (SIZEOF_TIME_T < 5)
  98. "large-time",
  99. #endif
  100. NULL
  101. };
  102. int main(int argc, char **argv)
  103. {
  104. int i;
  105. (void) argc;
  106. (void) argv;
  107. for(i = 0; disabled[i]; i++)
  108. printf("%s\n", disabled[i]);
  109. return 0;
  110. }