xref: /third_party/curl/src/tool_libinfo.h (revision 13498266)
1#ifndef HEADER_CURL_TOOL_LIBINFO_H
2#define HEADER_CURL_TOOL_LIBINFO_H
3/***************************************************************************
4 *                                  _   _ ____  _
5 *  Project                     ___| | | |  _ \| |
6 *                             / __| | | | |_) | |
7 *                            | (__| |_| |  _ <| |___
8 *                             \___|\___/|_| \_\_____|
9 *
10 * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
11 *
12 * This software is licensed as described in the file COPYING, which
13 * you should have received as part of this distribution. The terms
14 * are also available at https://curl.se/docs/copyright.html.
15 *
16 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17 * copies of the Software, and permit persons to whom the Software is
18 * furnished to do so, under the terms of the COPYING file.
19 *
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
22 *
23 * SPDX-License-Identifier: curl
24 *
25 ***************************************************************************/
26#include "tool_setup.h"
27
28/* global variable declarations, for libcurl run-time info */
29
30
31extern curl_version_info_data *curlinfo;
32
33extern const char * const *built_in_protos;
34extern size_t proto_count;
35
36extern const char * const *feature_names;
37
38extern const char *proto_file;
39extern const char *proto_ftp;
40extern const char *proto_ftps;
41extern const char *proto_http;
42extern const char *proto_https;
43extern const char *proto_rtsp;
44extern const char *proto_scp;
45extern const char *proto_sftp;
46extern const char *proto_tftp;
47extern const char *proto_ipfs;
48extern const char *proto_ipns;
49
50extern bool feature_altsvc;
51extern bool feature_brotli;
52extern bool feature_hsts;
53extern bool feature_http2;
54extern bool feature_http3;
55extern bool feature_httpsproxy;
56extern bool feature_libz;
57extern bool feature_ntlm;
58extern bool feature_ntlm_wb;
59extern bool feature_spnego;
60extern bool feature_ssl;
61extern bool feature_tls_srp;
62extern bool feature_zstd;
63
64CURLcode get_libcurl_info(void);
65const char *proto_token(const char *proto);
66
67#endif /* HEADER_CURL_TOOL_LIBINFO_H */
68