#include "tool_setup.h"
#include "curlx.h"
#include "tool_cfgable.h"
#include "tool_easysrc.h"
#include "tool_setopt.h"
#include "memdebug.h"
Go to the source code of this file.
#define ADD | ( | args | ) |
do { \ ret = easysrc_add args; \ if(ret) \ goto nomem; \ } WHILE_FALSE
Definition at line 177 of file tool_setopt.c.
#define ADDF | ( | args | ) |
do { \ ret = easysrc_addf args; \ if(ret) \ goto nomem; \ } WHILE_FALSE
Definition at line 182 of file tool_setopt.c.
#define CLEAN0 | ( | s | ) | ADD((&easysrc_clean, s)) |
Definition at line 201 of file tool_setopt.c.
#define CLEAN1 | ( | f, | |
a | |||
) | ADDF((&easysrc_clean, f,a)) |
Definition at line 202 of file tool_setopt.c.
#define CODE0 | ( | s | ) | ADD((&easysrc_code, s)) |
Definition at line 196 of file tool_setopt.c.
#define CODE1 | ( | f, | |
a | |||
) | ADDF((&easysrc_code, f,a)) |
Definition at line 197 of file tool_setopt.c.
#define CODE2 | ( | f, | |
a, | |||
b | |||
) | ADDF((&easysrc_code, f,a,b)) |
Definition at line 198 of file tool_setopt.c.
#define CODE3 | ( | f, | |
a, | |||
b, | |||
c | |||
) | ADDF((&easysrc_code, f,a,b,c)) |
Definition at line 199 of file tool_setopt.c.
#define DATA0 | ( | s | ) | ADD((&easysrc_data, s)) |
Definition at line 191 of file tool_setopt.c.
#define DATA1 | ( | f, | |
a | |||
) | ADDF((&easysrc_data, f,a)) |
Definition at line 192 of file tool_setopt.c.
#define DATA2 | ( | f, | |
a, | |||
b | |||
) | ADDF((&easysrc_data, f,a,b)) |
Definition at line 193 of file tool_setopt.c.
#define DATA3 | ( | f, | |
a, | |||
b, | |||
c | |||
) | ADDF((&easysrc_data, f,a,b,c)) |
Definition at line 194 of file tool_setopt.c.
#define DECL0 | ( | s | ) | ADD((&easysrc_decl, s)) |
Definition at line 188 of file tool_setopt.c.
#define DECL1 | ( | f, | |
a | |||
) | ADDF((&easysrc_decl, f,a)) |
Definition at line 189 of file tool_setopt.c.
#define ENABLE_CURLX_PRINTF |
Definition at line 26 of file tool_setopt.c.
#define NV | ( | e | ) | {#e, e} |
Definition at line 41 of file tool_setopt.c.
#define NV1 | ( | e, | |
v | |||
) | {#e, (v)} |
Definition at line 42 of file tool_setopt.c.
#define NVEND {NULL, 0} /* sentinel to mark end of list */ |
Definition at line 43 of file tool_setopt.c.
#define REM0 | ( | s | ) | ADD((&easysrc_toohard, s)) |
Definition at line 204 of file tool_setopt.c.
#define REM1 | ( | f, | |
a | |||
) | ADDF((&easysrc_toohard, f,a)) |
Definition at line 205 of file tool_setopt.c.
#define REM2 | ( | f, | |
a, | |||
b | |||
) | ADDF((&easysrc_toohard, f,a,b)) |
Definition at line 206 of file tool_setopt.c.
static char* c_escape | ( | const char * | str | ) | [static] |
Definition at line 210 of file tool_setopt.c.
CURLcode tool_setopt | ( | CURL * | curl, |
bool | str, | ||
struct GlobalConfig * | config, | ||
const char * | name, | ||
CURLoption | tag, | ||
... | |||
) |
Definition at line 490 of file tool_setopt.c.
CURLcode tool_setopt_bitmask | ( | CURL * | curl, |
struct GlobalConfig * | config, | ||
const char * | name, | ||
CURLoption | tag, | ||
const NameValueUnsigned * | nvlist, | ||
long | lval | ||
) |
Definition at line 331 of file tool_setopt.c.
CURLcode tool_setopt_enum | ( | CURL * | curl, |
struct GlobalConfig * | config, | ||
const char * | name, | ||
CURLoption | tag, | ||
const NameValue * | nvlist, | ||
long | lval | ||
) |
Definition at line 256 of file tool_setopt.c.
CURLcode tool_setopt_flags | ( | CURL * | curl, |
struct GlobalConfig * | config, | ||
const char * | name, | ||
CURLoption | tag, | ||
const NameValue * | nvlist, | ||
long | lval | ||
) |
Definition at line 289 of file tool_setopt.c.
CURLcode tool_setopt_httppost | ( | CURL * | curl, |
struct GlobalConfig * | config, | ||
const char * | name, | ||
CURLoption | tag, | ||
struct curl_httppost * | post | ||
) |
Definition at line 374 of file tool_setopt.c.
CURLcode tool_setopt_slist | ( | CURL * | curl, |
struct GlobalConfig * | config, | ||
const char * | name, | ||
CURLoption | tag, | ||
struct curl_slist * | list | ||
) |
Definition at line 450 of file tool_setopt.c.
const NameValue setopt_nv_CURL_HTTP_VERSION[] |
{ NV(CURL_HTTP_VERSION_NONE), NV(CURL_HTTP_VERSION_1_0), NV(CURL_HTTP_VERSION_1_1), NV(CURL_HTTP_VERSION_2_0), NV(CURL_HTTP_VERSION_2TLS), NVEND, }
Definition at line 78 of file tool_setopt.c.
const NameValue setopt_nv_CURL_NETRC[] |
{ NV(CURL_NETRC_IGNORED), NV(CURL_NETRC_OPTIONAL), NV(CURL_NETRC_REQUIRED), NVEND, }
Definition at line 128 of file tool_setopt.c.
const NameValue setopt_nv_CURL_SOCKS_PROXY[] |
{ NV(CURLPROXY_SOCKS4), NV(CURLPROXY_SOCKS5), NV(CURLPROXY_SOCKS4A), NV(CURLPROXY_SOCKS5_HOSTNAME), NVEND, }
Definition at line 56 of file tool_setopt.c.
const NameValue setopt_nv_CURL_SSLVERSION[] |
{ NV(CURL_SSLVERSION_DEFAULT), NV(CURL_SSLVERSION_TLSv1), NV(CURL_SSLVERSION_SSLv2), NV(CURL_SSLVERSION_SSLv3), NV(CURL_SSLVERSION_TLSv1_0), NV(CURL_SSLVERSION_TLSv1_1), NV(CURL_SSLVERSION_TLSv1_2), NV(CURL_SSLVERSION_TLSv1_3), NVEND, }
Definition at line 87 of file tool_setopt.c.
const NameValue setopt_nv_CURL_TIMECOND[] |
{ NV(CURL_TIMECOND_IFMODSINCE), NV(CURL_TIMECOND_IFUNMODSINCE), NV(CURL_TIMECOND_LASTMOD), NV(CURL_TIMECOND_NONE), NVEND, }
Definition at line 99 of file tool_setopt.c.
const NameValueUnsigned setopt_nv_CURLAUTH[] |
{ NV(CURLAUTH_ANY), NV(CURLAUTH_ANYSAFE), NV(CURLAUTH_BASIC), NV(CURLAUTH_DIGEST), NV(CURLAUTH_GSSNEGOTIATE), NV(CURLAUTH_NTLM), NV(CURLAUTH_DIGEST_IE), NV(CURLAUTH_NTLM_WB), NV(CURLAUTH_ONLY), NV(CURLAUTH_NONE), NVEND, }
Definition at line 64 of file tool_setopt.c.
const NameValue setopt_nv_CURLFTPSSL_CCC[] |
Definition at line 107 of file tool_setopt.c.
const NameValue setopt_nv_CURLNONZERODEFAULTS[] [static] |
{ NV1(CURLOPT_SSL_VERIFYPEER, 1), NV1(CURLOPT_SSL_VERIFYHOST, 1), NV1(CURLOPT_SSL_ENABLE_NPN, 1), NV1(CURLOPT_SSL_ENABLE_ALPN, 1), NV1(CURLOPT_TCP_NODELAY, 1), NV1(CURLOPT_PROXY_SSL_VERIFYPEER, 1), NV1(CURLOPT_PROXY_SSL_VERIFYHOST, 1), NVEND }
Definition at line 165 of file tool_setopt.c.
const NameValue setopt_nv_CURLPROTO[] |
{ NV(CURLPROTO_ALL), NV(CURLPROTO_DICT), NV(CURLPROTO_FILE), NV(CURLPROTO_FTP), NV(CURLPROTO_FTPS), NV(CURLPROTO_GOPHER), NV(CURLPROTO_HTTP), NV(CURLPROTO_HTTPS), NV(CURLPROTO_IMAP), NV(CURLPROTO_IMAPS), NV(CURLPROTO_LDAP), NV(CURLPROTO_LDAPS), NV(CURLPROTO_POP3), NV(CURLPROTO_POP3S), NV(CURLPROTO_RTSP), NV(CURLPROTO_SCP), NV(CURLPROTO_SFTP), NV(CURLPROTO_SMB), NV(CURLPROTO_SMBS), NV(CURLPROTO_SMTP), NV(CURLPROTO_SMTPS), NV(CURLPROTO_TELNET), NV(CURLPROTO_TFTP), NVEND, }
Definition at line 137 of file tool_setopt.c.
const NameValue setopt_nv_CURLPROXY[] |
{ NV(CURLPROXY_HTTP), NV(CURLPROXY_HTTP_1_0), NV(CURLPROXY_HTTPS), NV(CURLPROXY_SOCKS4), NV(CURLPROXY_SOCKS5), NV(CURLPROXY_SOCKS4A), NV(CURLPROXY_SOCKS5_HOSTNAME), NVEND, }
Definition at line 45 of file tool_setopt.c.
{ NV(CURLSSLOPT_ALLOW_BEAST), NV(CURLSSLOPT_NO_REVOKE), NVEND, }
Definition at line 122 of file tool_setopt.c.
const NameValue setopt_nv_CURLUSESSL[] |
{ NV(CURLUSESSL_NONE), NV(CURLUSESSL_TRY), NV(CURLUSESSL_CONTROL), NV(CURLUSESSL_ALL), NVEND, }
Definition at line 114 of file tool_setopt.c.