Lines Matching refs:arg

259                             long arg)  in setopt_long()  argument
261 bool enabled = (0 != arg); in setopt_long()
262 unsigned long uarg = (unsigned long)arg; in setopt_long()
265 if(arg < -1) in setopt_long()
267 else if(arg > INT_MAX) in setopt_long()
268 arg = INT_MAX; in setopt_long()
270 data->set.dns_cache_timeout = (int)arg; in setopt_long()
274 if(arg < -1) in setopt_long()
276 else if(arg > INT_MAX) in setopt_long()
277 arg = INT_MAX; in setopt_long()
279 data->set.general_ssl.ca_cache_timeout = (int)arg; in setopt_long()
359 if(arg) { in setopt_long()
381 if((arg >= 0) && (arg <= (INT_MAX/1000))) in setopt_long()
382 data->set.server_response_timeout = (unsigned int)arg * 1000; in setopt_long()
391 if((arg >= 0) && (arg <= INT_MAX)) in setopt_long()
392 data->set.server_response_timeout = (unsigned int)arg; in setopt_long()
408 if(arg < TFTP_BLKSIZE_MIN) in setopt_long()
409 arg = 512; in setopt_long()
410 else if(arg > TFTP_BLKSIZE_MAX) in setopt_long()
411 arg = TFTP_BLKSIZE_MAX; in setopt_long()
412 data->set.tftp_blksize = arg; in setopt_long()
420 if((arg < CURL_NETRC_IGNORED) || (arg >= CURL_NETRC_LAST)) in setopt_long()
422 data->set.use_netrc = (unsigned char)arg; in setopt_long()
439 if((arg < CURL_TIMECOND_NONE) || (arg >= CURL_TIMECOND_LAST)) in setopt_long()
441 data->set.timecondition = (unsigned char)(curl_TimeCond)arg; in setopt_long()
448 data->set.timevalue = (time_t)arg; in setopt_long()
466 version = C_SSLVERSION_VALUE(arg); in setopt_long()
467 version_max = (long)C_SSLVERSION_MAX_VALUE(arg); in setopt_long()
489 if(arg < -1) in setopt_long()
492 if(data->set.postfieldsize < arg && in setopt_long()
499 data->set.postfieldsize = arg; in setopt_long()
544 if(arg < -1) in setopt_long()
546 data->set.maxredirs = arg; in setopt_long()
559 if(arg < CURL_REDIR_GET_ALL) in setopt_long()
563 data->set.keep_post = arg & CURL_REDIR_POST_ALL; in setopt_long()
570 if(arg) { in setopt_long()
581 data->set.sep_headers = !!(arg & CURLHEADER_SEPARATE); in setopt_long()
601 switch(arg) { in setopt_long()
606 arg = CURL_HTTP_VERSION_2TLS; in setopt_long()
629 if(arg < CURL_HTTP_VERSION_NONE) in setopt_long()
633 data->set.httpwant = (unsigned char)arg; in setopt_long()
641 if(arg < 0) in setopt_long()
643 data->set.expect_100_timeout = arg; in setopt_long()
659 data->set.mime_formescape = !!(arg & CURLMIMEOPT_FORMESCAPE); in setopt_long()
674 if((arg < 0) || (arg > 65535)) in setopt_long()
676 data->set.proxyport = (unsigned short)arg; in setopt_long()
686 if((arg < CURLPROXY_HTTP) || (arg > CURLPROXY_SOCKS5_HOSTNAME)) in setopt_long()
688 data->set.proxytype = (unsigned char)(curl_proxytype)arg; in setopt_long()
761 if((arg < CURLFTPMETHOD_DEFAULT) || (arg >= CURLFTPMETHOD_LAST)) in setopt_long()
763 data->set.ftp_filemethod = (unsigned char)arg; in setopt_long()
778 if((arg < CURLFTPSSL_CCC_NONE) || (arg >= CURLFTPSSL_CCC_LAST)) in setopt_long()
780 data->set.ftp_ccc = (unsigned char)arg; in setopt_long()
795 if((arg < CURLFTPAUTH_DEFAULT) || (arg >= CURLFTPAUTH_LAST)) in setopt_long()
797 data->set.ftpsslauth = (unsigned char)(curl_ftpauth)arg; in setopt_long()
818 if((arg < CURLFTP_CREATE_DIR_NONE) || (arg > CURLFTP_CREATE_DIR_RETRY)) in setopt_long()
820 data->set.ftp_create_missing_dirs = (unsigned char)arg; in setopt_long()
828 if(arg < -1) in setopt_long()
830 data->set.filesize = arg; in setopt_long()
837 if(arg < 0) in setopt_long()
839 data->set.low_speed_limit = arg; in setopt_long()
846 if(arg < 0) in setopt_long()
848 data->set.low_speed_time = arg; in setopt_long()
854 if((arg < 0) || (arg > 65535)) in setopt_long()
856 data->set.use_port = (unsigned short)arg; in setopt_long()
863 if((arg >= 0) && (arg <= (INT_MAX/1000))) in setopt_long()
864 data->set.timeout = (unsigned int)arg * 1000; in setopt_long()
879 if((arg >= 0) && (arg <= (INT_MAX/1000))) in setopt_long()
880 data->set.connecttimeout = (unsigned int)arg * 1000; in setopt_long()
895 if(arg < -1) in setopt_long()
897 data->set.set_resume_from = arg; in setopt_long()
912 if((arg < 0) || (arg > 65535)) in setopt_long()
914 data->set.localport = curlx_sltous(arg); in setopt_long()
920 if((arg < 0) || (arg > 65535)) in setopt_long()
922 data->set.localportrange = curlx_sltous(arg); in setopt_long()
1012 if(arg > READBUFFER_MAX) in setopt_long()
1013 arg = READBUFFER_MAX; in setopt_long()
1014 else if(arg < 1) in setopt_long()
1015 arg = READBUFFER_SIZE; in setopt_long()
1016 else if(arg < READBUFFER_MIN) in setopt_long()
1017 arg = READBUFFER_MIN; in setopt_long()
1019 data->set.buffer_size = (unsigned int)arg; in setopt_long()
1027 if(arg > UPLOADBUFFER_MAX) in setopt_long()
1028 arg = UPLOADBUFFER_MAX; in setopt_long()
1029 else if(arg < UPLOADBUFFER_MIN) in setopt_long()
1030 arg = UPLOADBUFFER_MIN; in setopt_long()
1032 data->set.upload_buffer_size = (unsigned int)arg; in setopt_long()
1046 if(arg < 0) in setopt_long()
1048 data->set.max_filesize = arg; in setopt_long()
1056 if((arg < CURLUSESSL_NONE) || (arg >= CURLUSESSL_LAST)) in setopt_long()
1058 data->set.use_ssl = (unsigned char)arg; in setopt_long()
1061 data->set.ssl.primary.ssl_options = (unsigned char)(arg & 0xff); in setopt_long()
1062 data->set.ssl.enable_beast = !!(arg & CURLSSLOPT_ALLOW_BEAST); in setopt_long()
1063 data->set.ssl.no_revoke = !!(arg & CURLSSLOPT_NO_REVOKE); in setopt_long()
1064 data->set.ssl.no_partialchain = !!(arg & CURLSSLOPT_NO_PARTIALCHAIN); in setopt_long()
1065 data->set.ssl.revoke_best_effort = !!(arg & CURLSSLOPT_REVOKE_BEST_EFFORT); in setopt_long()
1066 data->set.ssl.native_ca_store = !!(arg & CURLSSLOPT_NATIVE_CA); in setopt_long()
1067 data->set.ssl.auto_client_cert = !!(arg & CURLSSLOPT_AUTO_CLIENT_CERT); in setopt_long()
1068 data->set.ssl.earlydata = !!(arg & CURLSSLOPT_EARLYDATA); in setopt_long()
1075 data->set.proxy_ssl.primary.ssl_options = (unsigned char)(arg & 0xff); in setopt_long()
1076 data->set.proxy_ssl.enable_beast = !!(arg & CURLSSLOPT_ALLOW_BEAST); in setopt_long()
1077 data->set.proxy_ssl.no_revoke = !!(arg & CURLSSLOPT_NO_REVOKE); in setopt_long()
1078 data->set.proxy_ssl.no_partialchain = !!(arg & CURLSSLOPT_NO_PARTIALCHAIN); in setopt_long()
1080 !!(arg & CURLSSLOPT_REVOKE_BEST_EFFORT); in setopt_long()
1081 data->set.proxy_ssl.native_ca_store = !!(arg & CURLSSLOPT_NATIVE_CA); in setopt_long()
1083 !!(arg & CURLSSLOPT_AUTO_CLIENT_CERT); in setopt_long()
1089 if((arg < CURL_IPRESOLVE_WHATEVER) || (arg > CURL_IPRESOLVE_V6)) in setopt_long()
1091 data->set.ipver = (unsigned char) arg; in setopt_long()
1111 if(arg > 2) in setopt_long()
1113 data->set.connect_only = (unsigned char)arg; in setopt_long()
1127 data->set.ssh_auth_types = (int)arg; in setopt_long()
1157 if((arg < 0) || (arg > 0777)) in setopt_long()
1159 data->set.new_file_perms = (unsigned int)arg; in setopt_long()
1167 if((arg < 0) || (arg > 0777)) in setopt_long()
1169 data->set.new_directory_perms = (unsigned int)arg; in setopt_long()
1191 data->set.allowed_protocols = (curl_prot_t)arg; in setopt_long()
1198 data->set.redir_protocols = (curl_prot_t)arg; in setopt_long()
1219 switch(arg) { in setopt_long()
1276 data->state.rtsp_next_client_CSeq = arg; in setopt_long()
1281 data->state.rtsp_next_server_CSeq = arg; in setopt_long()
1290 if(arg < 0) in setopt_long()
1292 else if(arg > INT_MAX) in setopt_long()
1293 arg = INT_MAX; in setopt_long()
1294 data->set.tcp_keepidle = (int)arg; in setopt_long()
1297 if(arg < 0) in setopt_long()
1299 else if(arg > INT_MAX) in setopt_long()
1300 arg = INT_MAX; in setopt_long()
1301 data->set.tcp_keepintvl = (int)arg; in setopt_long()
1304 if(arg < 0) in setopt_long()
1306 else if(arg > INT_MAX) in setopt_long()
1307 arg = INT_MAX; in setopt_long()
1308 data->set.tcp_keepcnt = (int)arg; in setopt_long()
1331 if((arg >= 1) && (arg <= 256)) in setopt_long()
1332 data->set.priority.weight = (int)arg; in setopt_long()
1355 if(arg < 0) in setopt_long()
1357 data->set.upkeep_interval_ms = arg; in setopt_long()
1360 if(arg < 0) in setopt_long()
1362 data->set.maxage_conn = arg; in setopt_long()
1365 if(arg < 0) in setopt_long()
1367 data->set.maxlifetime_conn = arg; in setopt_long()
1371 if(arg & CURLHSTS_ENABLE) { in setopt_long()
1384 if(!arg) { in setopt_long()
1393 return Curl_altsvc_ctrl(data->asi, arg); in setopt_long()
1397 data->set.ws_raw_mode = (bool)(arg & CURLWS_RAW_MODE); in setopt_long()
3070 va_list arg; in curl_easy_setopt() local
3077 va_start(arg, tag); in curl_easy_setopt()
3079 result = Curl_vsetopt(data, tag, arg); in curl_easy_setopt()
3081 va_end(arg); in curl_easy_setopt()