disabled.c 2.1 KB

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