aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/curl/src/tool_cfgable.h
diff options
context:
space:
mode:
authorAlexSm <alex@ydb.tech>2023-12-22 17:10:22 +0100
committerGitHub <noreply@github.com>2023-12-22 17:10:22 +0100
commit148f920350c60c0ca2d89b637a5aea9093eee450 (patch)
tree6314b1433dac833398c333731e83f0ad77e81a0b /contrib/libs/curl/src/tool_cfgable.h
parent7116d46ae7c0259b5f9d489de263f8701e432b1c (diff)
downloadydb-148f920350c60c0ca2d89b637a5aea9093eee450.tar.gz
Library import 2 (#639)
Diffstat (limited to 'contrib/libs/curl/src/tool_cfgable.h')
-rw-r--r--contrib/libs/curl/src/tool_cfgable.h44
1 files changed, 24 insertions, 20 deletions
diff --git a/contrib/libs/curl/src/tool_cfgable.h b/contrib/libs/curl/src/tool_cfgable.h
index b35abaf7a7..c26cddd5e0 100644
--- a/contrib/libs/curl/src/tool_cfgable.h
+++ b/contrib/libs/curl/src/tool_cfgable.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -26,6 +26,7 @@
#include "tool_setup.h"
#include "tool_sdecls.h"
#include "tool_urlglob.h"
+#include "tool_formparse.h"
struct GlobalConfig;
@@ -36,11 +37,11 @@ struct State {
char *outfiles;
char *httpgetfields;
char *uploadfile;
- curl_off_t infilenum; /* number of files to upload */
- curl_off_t up; /* upload file counter within a single upload glob */
- curl_off_t urlnum; /* how many iterations this single URL has with ranges
+ unsigned long infilenum; /* number of files to upload */
+ unsigned long up; /* upload file counter within a single upload glob */
+ unsigned long urlnum; /* how many iterations this single URL has with ranges
etc */
- curl_off_t li;
+ unsigned long li;
};
struct OperationConfig {
@@ -69,9 +70,8 @@ struct OperationConfig {
char *postfields;
curl_off_t postfieldsize;
char *referer;
- char *query;
- long timeout_ms;
- long connecttimeout_ms;
+ double timeout;
+ double connecttimeout;
long maxredirs;
curl_off_t max_filesize;
char *output_dir;
@@ -117,7 +117,7 @@ struct OperationConfig {
bool dirlistonly; /* only get the FTP dir list */
bool followlocation; /* follow http redirects */
bool unrestricted_auth; /* Continue to send authentication (user+password)
- when following redirects, even when hostname
+ when following ocations, even when hostname
changed */
bool netrc_opt;
bool netrc;
@@ -215,7 +215,7 @@ struct OperationConfig {
bool ftp_ssl_ccc;
int ftp_ssl_ccc_mode;
char *preproxy;
- bool socks5_gssapi_nec; /* The NEC reference server does not protect the
+ int socks5_gssapi_nec; /* The NEC reference server does not protect the
encryption type exchange */
unsigned long socks5_auth;/* auth bitmask for socks5 proxies */
char *proxy_service_name; /* set authentication service name for HTTP and
@@ -254,13 +254,15 @@ struct OperationConfig {
bool xattr; /* store metadata in extended attributes */
long gssapi_delegation;
bool ssl_allow_beast; /* allow this SSL vulnerability */
- bool proxy_ssl_allow_beast; /* allow this SSL vulnerability for proxy */
+ bool proxy_ssl_allow_beast; /* allow this SSL vulnerability for proxy*/
+
bool ssl_no_revoke; /* disable SSL certificate revocation checks */
+ /*bool proxy_ssl_no_revoke; */
+
bool ssl_revoke_best_effort; /* ignore SSL revocation offline/missing
revocation list errors */
- bool native_ca_store; /* use the native OS CA store */
- bool proxy_native_ca_store; /* use the native OS CA store for proxy */
+ bool native_ca_store; /* use the native os ca store */
bool ssl_auto_client_cert; /* automatically locate and use a client
certificate for authentication (Schannel) */
bool proxy_ssl_auto_client_cert; /* proxy version of ssl_auto_client_cert */
@@ -270,7 +272,7 @@ struct OperationConfig {
bool abstract_unix_socket; /* path to an abstract Unix domain socket */
bool falsestart;
bool path_as_is;
- long expect100timeout_ms;
+ double expect100timeout;
bool suppress_connect_headers; /* suppress proxy CONNECT response headers
from user callbacks */
bool synthetic_error; /* if TRUE, this is tool-internal error */
@@ -278,7 +280,6 @@ struct OperationConfig {
long happy_eyeballs_timeout_ms; /* happy eyeballs timeout in milliseconds.
0 is valid. default: CURL_HET_DEFAULT. */
bool haproxy_protocol; /* whether to send HAProxy protocol v1 */
- char *haproxy_clientip; /* client IP for HAProxy protocol */
bool disallow_username_in_url; /* disallow usernames in URLs */
char *aws_sigv4;
enum {
@@ -299,16 +300,19 @@ struct OperationConfig {
};
struct GlobalConfig {
- bool showerror; /* show errors when silent */
- bool silent; /* don't show messages, --silent given */
- bool noprogress; /* don't show progress bar */
+ int showerror; /* -1 == unset, default => show errors
+ 0 => -s is used to NOT show errors
+ 1 => -S has been used to show errors */
+ bool mute; /* don't show messages, --silent given */
+ bool noprogress; /* don't show progress bar --silent given */
bool isatty; /* Updated internally if output is a tty */
+ FILE *errors; /* Error stream, defaults to stderr */
+ bool errors_fopened; /* Whether error stream isn't stderr */
char *trace_dump; /* file to dump the network trace to */
FILE *trace_stream;
bool trace_fopened;
trace tracetype;
bool tracetime; /* include timestamp? */
- bool traceids; /* include xfer-/conn-id? */
int progressmode; /* CURL_PROGRESS_BAR / CURL_PROGRESS_STATS */
char *libcurl; /* Output libcurl code to this file name */
bool fail_early; /* exit on first transfer error */
@@ -319,7 +323,7 @@ struct GlobalConfig {
bool test_event_based;
#endif
bool parallel;
- unsigned short parallel_max; /* MAX_PARALLEL is the maximum */
+ long parallel_max;
bool parallel_connect;
char *help_category; /* The help category, if set */
struct OperationConfig *first;