disabled.c 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /***************************************************************************
  2. * _ _ ____ _
  3. * Project ___| | | | _ \| |
  4. * / __| | | | |_) | |
  5. * | (__| |_| | _ <| |___
  6. * \___|\___/|_| \_\_____|
  7. *
  8. * Copyright (C) 1998 - 2019, 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.haxx.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 <stdio.h>
  32. static const char *disabled[]={
  33. #ifdef CURL_DISABLE_COOKIES
  34. "cookies",
  35. #endif
  36. #ifdef CURL_DISABLE_CRYPTO_AUTH
  37. "crypto",
  38. #endif
  39. #ifdef CURL_DISABLE_DOH
  40. "DoH",
  41. #endif
  42. #ifdef CURL_DISABLE_HTTP_AUTH
  43. "HTTP-auth",
  44. #endif
  45. #ifdef CURL_DISABLE_MIME
  46. "Mime",
  47. #endif
  48. #ifdef CURL_DISABLE_NETRC
  49. "netrc",
  50. #endif
  51. #ifdef CURL_DISABLE_PARSEDATE
  52. "parsedate",
  53. #endif
  54. #ifdef CURL_DISABLE_PROXY
  55. "proxy",
  56. #endif
  57. #ifdef CURL_DISABLE_SHUFFLE_DNS
  58. "shuffle-dns",
  59. #endif
  60. #ifdef CURL_DISABLE_TYPECHECK
  61. "typecheck",
  62. #endif
  63. #ifdef CURL_DISABLE_VERBOSE_STRINGS
  64. "verbose-strings",
  65. #endif
  66. NULL
  67. };
  68. int main(void)
  69. {
  70. int i;
  71. for(i = 0; disabled[i]; i++)
  72. printf("%s\n", disabled[i]);
  73. return 0;
  74. }