2
0

disabled.c 2.8 KB

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