disabled.c 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 "tool_xattr.h" /* for USE_XATTR */
  35. #include <stdio.h>
  36. static 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. #ifdef CURL_DISABLE_HEADERS_API
  74. "headers-api",
  75. #endif
  76. #ifndef USE_XATTR
  77. "xattr",
  78. #endif
  79. NULL
  80. };
  81. int main(void)
  82. {
  83. int i;
  84. for(i = 0; disabled[i]; i++)
  85. printf("%s\n", disabled[i]);
  86. return 0;
  87. }