Macros | Functions | Variables
tool_setopt.c File Reference
#include "tool_setup.h"
#include "curlx.h"
#include "tool_cfgable.h"
#include "tool_easysrc.h"
#include "tool_setopt.h"
#include "tool_convert.h"
#include "mime.h"
#include "memdebug.h"
Include dependency graph for tool_setopt.c:

Go to the source code of this file.

Macros

#define ADD(args)
 
#define ADDF(args)
 
#define CLEAN0(s)   ADD((&easysrc_clean, s))
 
#define CLEAN1(f, a)   ADDF((&easysrc_clean, f,a))
 
#define CODE0(s)   ADD((&easysrc_code, s))
 
#define CODE1(f, a)   ADDF((&easysrc_code, f,a))
 
#define CODE2(f, a, b)   ADDF((&easysrc_code, f,a,b))
 
#define CODE3(f, a, b, c)   ADDF((&easysrc_code, f,a,b,c))
 
#define DATA0(s)   ADD((&easysrc_data, s))
 
#define DATA1(f, a)   ADDF((&easysrc_data, f,a))
 
#define DATA2(f, a, b)   ADDF((&easysrc_data, f,a,b))
 
#define DATA3(f, a, b, c)   ADDF((&easysrc_data, f,a,b,c))
 
#define DECL0(s)   ADD((&easysrc_decl, s))
 
#define DECL1(f, a)   ADDF((&easysrc_decl, f,a))
 
#define ENABLE_CURLX_PRINTF
 
#define NV(e)   {#e, e}
 
#define NV1(e, v)   {#e, (v)}
 
#define NVEND   {NULL, 0} /* sentinel to mark end of list */
 
#define REM0(s)   ADD((&easysrc_toohard, s))
 
#define REM1(f, a)   ADDF((&easysrc_toohard, f,a))
 
#define REM2(f, a, b)   ADDF((&easysrc_toohard, f,a,b))
 

Functions

static char * c_escape (const char *str, size_t len)
 
static CURLcode libcurl_generate_mime (curl_mime *mime, int *mimeno)
 
static CURLcode libcurl_generate_slist (struct curl_slist *slist, int *slistno)
 
CURLcode tool_setopt (CURL *curl, bool str, struct GlobalConfig *config, const char *name, CURLoption tag,...)
 
CURLcode tool_setopt_bitmask (CURL *curl, struct GlobalConfig *config, const char *name, CURLoption tag, const NameValueUnsigned *nvlist, long lval)
 
CURLcode tool_setopt_enum (CURL *curl, struct GlobalConfig *config, const char *name, CURLoption tag, const NameValue *nvlist, long lval)
 
CURLcode tool_setopt_flags (CURL *curl, struct GlobalConfig *config, const char *name, CURLoption tag, const NameValue *nvlist, long lval)
 
CURLcode tool_setopt_mimepost (CURL *curl, struct GlobalConfig *config, const char *name, CURLoption tag, curl_mime *mimepost)
 
CURLcode tool_setopt_slist (CURL *curl, struct GlobalConfig *config, const char *name, CURLoption tag, struct curl_slist *list)
 

Variables

const NameValue setopt_nv_CURL_HTTP_VERSION []
 
const NameValue setopt_nv_CURL_NETRC []
 
const NameValue setopt_nv_CURL_SOCKS_PROXY []
 
const NameValue setopt_nv_CURL_SSLVERSION []
 
const NameValue setopt_nv_CURL_TIMECOND []
 
const NameValueUnsigned setopt_nv_CURLAUTH []
 
const NameValue setopt_nv_CURLFTPSSL_CCC []
 
static const NameValue setopt_nv_CURLNONZERODEFAULTS []
 
const NameValue setopt_nv_CURLPROTO []
 
const NameValue setopt_nv_CURLPROXY []
 
const NameValueUnsigned setopt_nv_CURLSSLOPT []
 
const NameValue setopt_nv_CURLUSESSL []
 

Macro Definition Documentation

#define ADD (   args)
Value:
do { \
if(ret) \
goto nomem; \
if(strcmp(arg,"1305")!=0)
Definition: unit1305.c:127
#define WHILE_FALSE
CURLcode easysrc_add(struct slist_wc **plist, const char *line)
Definition: tool_easysrc.c:95

Definition at line 180 of file tool_setopt.c.

#define ADDF (   args)
Value:
do { \
if(ret) \
goto nomem; \
if(strcmp(arg,"1305")!=0)
Definition: unit1305.c:127
CURLcode easysrc_addf(struct slist_wc **plist, const char *fmt,...)
Definition: tool_easysrc.c:108
#define WHILE_FALSE

Definition at line 185 of file tool_setopt.c.

#define CLEAN0 (   s)    ADD((&easysrc_clean, s))

Definition at line 204 of file tool_setopt.c.

#define CLEAN1 (   f,
  a 
)    ADDF((&easysrc_clean, f,a))

Definition at line 205 of file tool_setopt.c.

#define CODE0 (   s)    ADD((&easysrc_code, s))

Definition at line 199 of file tool_setopt.c.

#define CODE1 (   f,
  a 
)    ADDF((&easysrc_code, f,a))

Definition at line 200 of file tool_setopt.c.

#define CODE2 (   f,
  a,
 
)    ADDF((&easysrc_code, f,a,b))

Definition at line 201 of file tool_setopt.c.

#define CODE3 (   f,
  a,
  b,
 
)    ADDF((&easysrc_code, f,a,b,c))

Definition at line 202 of file tool_setopt.c.

#define DATA0 (   s)    ADD((&easysrc_data, s))

Definition at line 194 of file tool_setopt.c.

#define DATA1 (   f,
  a 
)    ADDF((&easysrc_data, f,a))

Definition at line 195 of file tool_setopt.c.

#define DATA2 (   f,
  a,
 
)    ADDF((&easysrc_data, f,a,b))

Definition at line 196 of file tool_setopt.c.

#define DATA3 (   f,
  a,
  b,
 
)    ADDF((&easysrc_data, f,a,b,c))

Definition at line 197 of file tool_setopt.c.

#define DECL0 (   s)    ADD((&easysrc_decl, s))

Definition at line 191 of file tool_setopt.c.

#define DECL1 (   f,
  a 
)    ADDF((&easysrc_decl, f,a))

Definition at line 192 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 43 of file tool_setopt.c.

#define NV1 (   e,
 
)    {#e, (v)}

Definition at line 44 of file tool_setopt.c.

#define NVEND   {NULL, 0} /* sentinel to mark end of list */

Definition at line 45 of file tool_setopt.c.

#define REM0 (   s)    ADD((&easysrc_toohard, s))

Definition at line 207 of file tool_setopt.c.

#define REM1 (   f,
  a 
)    ADDF((&easysrc_toohard, f,a))

Definition at line 208 of file tool_setopt.c.

#define REM2 (   f,
  a,
 
)    ADDF((&easysrc_toohard, f,a,b))

Definition at line 209 of file tool_setopt.c.

Function Documentation

static char* c_escape ( const char *  str,
size_t  len 
)
static

Definition at line 213 of file tool_setopt.c.

static CURLcode libcurl_generate_mime ( curl_mime mime,
int *  mimeno 
)
static

Definition at line 410 of file tool_setopt.c.

static CURLcode libcurl_generate_slist ( struct curl_slist slist,
int *  slistno 
)
static

Definition at line 383 of file tool_setopt.c.

CURLcode tool_setopt ( CURL curl,
bool  str,
struct GlobalConfig config,
const char *  name,
CURLoption  tag,
  ... 
)

Definition at line 606 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 340 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 265 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 298 of file tool_setopt.c.

CURLcode tool_setopt_mimepost ( CURL curl,
struct GlobalConfig config,
const char *  name,
CURLoption  tag,
curl_mime mimepost 
)

Definition at line 562 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 584 of file tool_setopt.c.

Variable Documentation

const NameValue setopt_nv_CURL_HTTP_VERSION[]
const NameValue setopt_nv_CURL_NETRC[]
Initial value:

Definition at line 130 of file tool_setopt.c.

const NameValue setopt_nv_CURL_SOCKS_PROXY[]
Initial value:

Definition at line 58 of file tool_setopt.c.

const NameValue setopt_nv_CURL_SSLVERSION[]
const NameValue setopt_nv_CURL_TIMECOND[]
const NameValueUnsigned setopt_nv_CURLAUTH[]
Initial value:
= {
}
#define CURLAUTH_DIGEST_IE
Definition: curl.h:705
#define CURLAUTH_BASIC
Definition: curl.h:697
#define CURLAUTH_GSSNEGOTIATE
Definition: curl.h:701
#define NV(e)
Definition: tool_setopt.c:43
#define CURLAUTH_NONE
Definition: curl.h:696
#define CURLAUTH_NTLM
Definition: curl.h:704
#define CURLAUTH_ANYSAFE
Definition: curl.h:709
#define CURLAUTH_DIGEST
Definition: curl.h:698
#define CURLAUTH_ANY
Definition: curl.h:708
#define CURLAUTH_NTLM_WB
Definition: curl.h:706
#define CURLAUTH_ONLY
Definition: curl.h:707
#define NVEND
Definition: tool_setopt.c:45

Definition at line 66 of file tool_setopt.c.

const NameValue setopt_nv_CURLFTPSSL_CCC[]
Initial value:

Definition at line 109 of file tool_setopt.c.

const NameValue setopt_nv_CURLNONZERODEFAULTS[]
static
Initial value:
= {
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),
NV1(CURLOPT_SOCKS5_AUTH, 1),
}
#define NV1(e, v)
Definition: tool_setopt.c:44
#define NVEND
Definition: tool_setopt.c:45

Definition at line 167 of file tool_setopt.c.

const NameValue setopt_nv_CURLPROTO[]
Initial value:
= {
}
#define CURLPROTO_FTPS
Definition: curl.h:847
#define CURLPROTO_HTTP
Definition: curl.h:844
#define CURLPROTO_FILE
Definition: curl.h:854
#define CURLPROTO_SCP
Definition: curl.h:848
#define CURLPROTO_ALL
Definition: curl.h:872
#define CURLPROTO_SMB
Definition: curl.h:870
#define CURLPROTO_DICT
Definition: curl.h:853
#define CURLPROTO_IMAP
Definition: curl.h:856
#define CURLPROTO_SMBS
Definition: curl.h:871
#define CURLPROTO_SMTPS
Definition: curl.h:861
#define CURLPROTO_GOPHER
Definition: curl.h:869
#define CURLPROTO_FTP
Definition: curl.h:846
#define CURLPROTO_SFTP
Definition: curl.h:849
#define NV(e)
Definition: tool_setopt.c:43
#define CURLPROTO_HTTPS
Definition: curl.h:845
#define CURLPROTO_RTSP
Definition: curl.h:862
#define CURLPROTO_LDAP
Definition: curl.h:851
#define CURLPROTO_LDAPS
Definition: curl.h:852
#define CURLPROTO_POP3S
Definition: curl.h:859
#define CURLPROTO_IMAPS
Definition: curl.h:857
#define CURLPROTO_TFTP
Definition: curl.h:855
#define CURLPROTO_TELNET
Definition: curl.h:850
#define CURLPROTO_SMTP
Definition: curl.h:860
#define CURLPROTO_POP3
Definition: curl.h:858
#define NVEND
Definition: tool_setopt.c:45

Definition at line 139 of file tool_setopt.c.

const NameValue setopt_nv_CURLPROXY[]
const NameValueUnsigned setopt_nv_CURLSSLOPT[]
Initial value:
= {
}
#define CURLSSLOPT_NO_REVOKE
Definition: curl.h:787
#define NV(e)
Definition: tool_setopt.c:43
#define CURLSSLOPT_ALLOW_BEAST
Definition: curl.h:783
#define NVEND
Definition: tool_setopt.c:45

Definition at line 124 of file tool_setopt.c.

const NameValue setopt_nv_CURLUSESSL[]
Initial value:

Definition at line 116 of file tool_setopt.c.



rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sat Feb 13 2021 03:42:17