Return to disabled.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / server |
1.1 ! misho 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: /* ! 24: * The purpose of this tool is to figure out which, if any, features that are ! 25: * disabled which should otherwise exist and work. These aren't visible in ! 26: * regular curl -V output. ! 27: * ! 28: * Disabled protocols are visible in curl_version_info() and are not included ! 29: * in this table. ! 30: */ ! 31: ! 32: #include "curl_setup.h" ! 33: #include <stdio.h> ! 34: ! 35: static const char *disabled[]={ ! 36: #ifdef CURL_DISABLE_COOKIES ! 37: "cookies", ! 38: #endif ! 39: #ifdef CURL_DISABLE_CRYPTO_AUTH ! 40: "crypto", ! 41: #endif ! 42: #ifdef CURL_DISABLE_DOH ! 43: "DoH", ! 44: #endif ! 45: #ifdef CURL_DISABLE_HTTP_AUTH ! 46: "HTTP-auth", ! 47: #endif ! 48: #ifdef CURL_DISABLE_MIME ! 49: "Mime", ! 50: #endif ! 51: #ifdef CURL_DISABLE_NETRC ! 52: "netrc", ! 53: #endif ! 54: #ifdef CURL_DISABLE_PARSEDATE ! 55: "parsedate", ! 56: #endif ! 57: #ifdef CURL_DISABLE_PROXY ! 58: "proxy", ! 59: #endif ! 60: #ifdef CURL_DISABLE_SHUFFLE_DNS ! 61: "shuffle-dns", ! 62: #endif ! 63: #ifdef CURL_DISABLE_TYPECHECK ! 64: "typecheck", ! 65: #endif ! 66: #ifdef CURL_DISABLE_VERBOSE_STRINGS ! 67: "verbose-strings", ! 68: #endif ! 69: NULL ! 70: }; ! 71: ! 72: int main(void) ! 73: { ! 74: int i; ! 75: for(i = 0; disabled[i]; i++) ! 76: printf("%s\n", disabled[i]); ! 77: ! 78: return 0; ! 79: }