/curl/tests/unit/ |
H A D | unit1398.c | 36 int rc; variable 46 fail_unless(rc == 3, "return code should be 3"); 51 fail_unless(rc == 3, "return code should be 3"); 61 rc = curl_msnprintf(output, 8, "%.8s", str); 71 rc = curl_msnprintf(output, 8, "%-8s", str); 76 rc = curl_msnprintf(output, 8, "%8s", str); 81 rc = curl_msnprintf(output, 4, "%d", 10240); 100 rc = curl_msnprintf(output, 130, 132 rc = curl_msnprintf(output, 130, 164 rc = curl_msnprintf(output, 130, [all …]
|
H A D | unit1302.c | 58 CURLcode rc; variable 60 rc = Curl_base64_encode("i", 1, &output, &size); 66 rc = Curl_base64_encode("ii", 2, &output, &size); 72 rc = Curl_base64_encode("iii", 3, &output, &size); 109 rc = Curl_base64_encode("", 0, &output, &size); 148 rc = Curl_base64_decode("aQ", &decoded, &size); 149 fail_unless(rc == CURLE_BAD_CONTENT_ENCODING, 158 fail_unless(rc == CURLE_BAD_CONTENT_ENCODING, 167 fail_unless(rc == CURLE_BAD_CONTENT_ENCODING, 176 fail_unless(rc == CURLE_BAD_CONTENT_ENCODING, [all …]
|
H A D | unit1620.c | 76 CURLcode rc; variable 83 rc = Curl_open(&empty); 84 if(rc) 86 fail_unless(rc == CURLE_OK, "Curl_open() failed"); 88 rc = Curl_connect(empty, &async, &protocol_connect); 89 fail_unless(rc == CURLE_URL_MALFORMAT, 97 fail_unless(rc == CURLE_URL_MALFORMAT, 100 rc = Curl_init_userdefined(empty); 103 rc = Curl_init_do(empty, empty->conn); 127 rc = Curl_close(&empty); [all …]
|
H A D | unit1650.c | 60 DOHcode rc; member 79 DOHcode rc; member 166 if(rc != req[i].rc) { 168 req[i].rc, rc); 169 abort_if(rc != req[i].rc, "return code"); 188 DOHcode rc; variable 195 if(rc != resp[i].rc) { 197 resp[i].rc, rc); 198 abort_if(rc != resp[i].rc, "return code"); 249 if(!rc) { [all …]
|
H A D | unit3200.c | 88 int rc = 0; variable 107 rc = Curl_get_line(&buf, fp); 111 rc = Curl_get_line(&buf, fp); 115 rc = Curl_get_line(&buf, fp); 119 rc = Curl_get_line(&buf, fp); 123 rc = Curl_get_line(&buf, fp); 127 rc = Curl_get_line(&buf, fp); 131 rc = Curl_get_line(&buf, fp); 135 rc = Curl_get_line(&buf, fp); 140 rc = Curl_get_line(&buf, fp); [all …]
|
H A D | unit1308.c | 46 CURLFORMcode rc; variable 54 rc = curl_formadd(&post, &last, CURLFORM_COPYNAME, "name", 57 fail_unless(rc == 0, "curl_formadd returned error"); 64 rc = curl_formadd(&post, &last, CURLFORM_COPYNAME, "htmlcode", 68 fail_unless(rc == 0, "curl_formadd returned error"); 71 rc = curl_formadd(&post, &last, CURLFORM_COPYNAME, "name_for_ptrcontent", 74 fail_unless(rc == 0, "curl_formadd returned error"); 91 rc = curl_formadd(&post, &last, 97 fail_unless(rc == 0, "curl_formadd returned error");
|
H A D | unit1603.c | 70 int rc; variable 114 rc = Curl_hash_delete(&hash_static, &key4, strlen(key4)); 115 fail_unless(rc == 0, "hash delete failed"); 128 rc = Curl_hash_delete(&hash_static, &key1, strlen(key1)); 129 fail_unless(rc == 0, "hash delete failed"); 136 rc = Curl_hash_delete(&hash_static, &key4, strlen(key4)); 137 fail_unless(rc == 0, "hash delete failed"); 144 rc = Curl_hash_delete(&hash_static, &key4, strlen(key4)); 145 fail_unless(rc, "hash delete should have failed"); 170 rc = Curl_hash_delete(&hash_static, &key1, strlen(key1)); [all …]
|
/curl/tests/libtest/ |
H A D | lib1301.c | 37 int rc; in test() local 40 rc = curl_strequal("iii", "III"); in test() 41 fail_unless(rc != 0, "return code should be non-zero"); in test() 43 rc = curl_strequal("iiia", "III"); in test() 44 fail_unless(rc == 0, "return code should be zero"); in test() 46 rc = curl_strequal("iii", "IIIa"); in test() 47 fail_unless(rc == 0, "return code should be zero"); in test() 49 rc = curl_strequal("iiiA", "IIIa"); in test() 52 rc = curl_strnequal("iii", "III", 3); in test() 55 rc = curl_strnequal("iiiABC", "IIIcba", 3); in test() [all …]
|
H A D | lib1560.c | 52 CURLUcode rc; in checkparts() local 1253 if(!rc) { in set_url() 1259 (int)rc, curl_url_strerror(rc)); in set_url() 1309 if(!rc) { in setget_parts() 1353 if(!rc) { in set_parts() 1401 if(!rc) { in get_url() 1490 if(rc) in append() 1791 if(!rc) { in huge() 1834 if(rc) in urldup() 1839 if(rc) in urldup() [all …]
|
H A D | lib512.c | 34 int rc = 99; in test() local 53 rc = 0; in test() 55 rc = 1; in test() 58 rc = 2; in test() 63 rc = 3; in test() 68 rc = 4; in test() 73 rc = 5; in test() 75 return (CURLcode)rc; in test()
|
H A D | lib530.c | 369 CURLcode rc; in test() local 372 rc = testone(URL, 0, 0); in test() 373 if(rc) in test() 376 rc = testone(URL, 1, 0); in test() 377 if(!rc) in test() 380 rc = testone(URL, 2, 0); in test() 381 if(!rc) in test() 384 rc = testone(URL, 0, 1); in test() 385 if(!rc) in test() 388 rc = testone(URL, 0, 2); in test() [all …]
|
/curl/lib/ |
H A D | getenv.c | 44 DWORD rc = 1; in GetEnv() 48 tmp = realloc(buf, rc); in GetEnv() 55 bufsize = rc; in GetEnv() 59 rc = GetEnvironmentVariableA(variable, buf, bufsize); in GetEnv() 60 if(!rc || rc == bufsize || rc > max) { in GetEnv() 66 if(rc < bufsize) in GetEnv()
|
H A D | ldap.c | 256 rc = (int)res; in ldap_win_bind_auth() 257 if(!rc) { in ldap_win_bind_auth() 267 return rc; in ldap_win_bind_auth() 294 return rc; in ldap_win_bind() 310 int rc = 0; in ldap_do() local 342 if(rc) { in ldap_do() 532 if(rc) { in ldap_do() 549 if(rc && rc != LDAP_SIZELIMIT_EXCEEDED) { in ldap_do() 1065 return rc; in _ldap_url_parse2() 1073 int rc; in _ldap_url_parse() local [all …]
|
H A D | openldap.c | 353 int rc; in oldap_perform_auth() local 375 int rc; in oldap_continue_auth() local 409 int rc; in oldap_perform_bind() local 434 int rc; in oldap_perform_mechs() local 511 int rc; in oldap_connect() local 599 int rc; in oldap_state_mechs_resp() local 666 int rc; in oldap_state_sasl_resp() local 693 int rc; in oldap_state_bind_resp() local 720 int rc; in oldap_connecting() local 874 int rc; in oldap_do() local [all …]
|
/curl/tests/server/ |
H A D | mqttd.c | 239 ssize_t rc; in connack() local 244 if(rc > 0) { in connack() 263 ssize_t rc; in suback() local 285 ssize_t rc; in puback() local 398 ssize_t rc; in publish() local 492 ssize_t rc; in mqttit() local 539 if(rc) in mqttit() 797 int rc; in sockdaemon() local 809 if(rc) { in sockdaemon() 832 if(rc) { in sockdaemon() [all …]
|
H A D | socksd.c | 286 int rc; in socksconnect() local 299 if(rc) { in socksconnect() 322 if(rc < 9) { in socks4() 346 if(rc != 8) { in socks4() 367 ssize_t rc; in sockit() local 390 if(rc < 3) { in sockit() 493 if(rc < 6) { in sockit() 811 int rc; in sockdaemon() local 823 if(rc) { in sockdaemon() 848 if(rc) { in sockdaemon() [all …]
|
H A D | resolve.c | 67 int rc = 0; in main() local 117 rc = -1; in main() 123 if(rc == 0) { in main() 132 rc = getaddrinfo(host, "80", &hints, &ai); in main() 133 if(rc == 0) in main() 147 rc = !he; in main() 151 if(rc) in main() 154 return !!rc; in main()
|
H A D | testpart.c | 42 int rc = getpart(&part, &partlen, argv[1], argv[2], stdin); in main() local 44 if(rc) in main() 45 return rc; in main()
|
/curl/lib/vssh/ |
H A D | wolfssh.c | 255 int rc; in wsftp_send() local 279 if(rc < 0) { in wsftp_send() 287 return (ssize_t)rc; in wsftp_send() 297 int rc; in wsftp_recv() local 325 if(rc < 0) { in wsftp_recv() 331 return (ssize_t)rc; in wsftp_recv() 371 int rc; in wssh_connect() local 403 if(rc != WS_SUCCESS) { in wssh_connect() 413 if(rc) { in wssh_connect() 449 int rc = 0; in wssh_statemach_act() local [all …]
|
H A D | libssh.c | 329 int rc; in myssh_is_known() local 355 return rc; in myssh_is_known() 383 rc = SSH_OK; in myssh_is_known() 530 rc = SSH_OK; in myssh_is_known() 547 return rc; in myssh_is_known() 596 int rc; in myssh_auth_interactive() local 615 if(rc < 0) in myssh_auth_interactive() 655 return rc; in myssh_auth_interactive() 1331 if(rc) in myssh_statemach_act() 2167 int rc; in myssh_connect() local [all …]
|
H A D | libssh2.c | 475 int rc = 0; in ssh_knownhost() local 594 switch(rc) { in ssh_knownhost() 891 int rc; in ssh_force_knownhost_key_type() local 943 if(rc) { in ssh_force_knownhost_key_type() 1133 if(rc) { in sftp_upload_init() 1507 if(rc || in sftp_download_stat() 1638 if(rc > 0) { in sftp_readdir() 1728 if(rc) { in ssh_statemachine() 2497 rc = in ssh_statemachine() 3335 int rc; in ssh_connect() local [all …]
|
/curl/lib/vtls/ |
H A D | gtls.c | 259 int rc; in handshake() local 316 else if((rc < 0) && !gnutls_error_is_fatal(rc)) { in handshake() 460 int rc; in Curl_gtls_shared_creds_create() local 510 int rc; in gtls_populate_creds() local 677 int rc; in Curl_gtls_client_trust_setup() local 808 int rc; in gtls_client_init() local 1296 int rc; in Curl_gtls_verifyserver() local 1534 if(rc) { in Curl_gtls_verifyserver() 1693 if(rc) in Curl_gtls_verifyserver() 1708 if(rc) in Curl_gtls_verifyserver() [all …]
|
/curl/docs/libcurl/ |
H A D | libcurl-url.md | 59 rc = curl_url_set(h, CURLUPART_URL, 81 rc = curl_url_get(h, CURLUPART_URL, &url, 0); 93 rc = curl_url_get(h, CURLUPART_HOST, &host, 0); 95 rc = curl_url_get(h, CURLUPART_PATH, &path, 0); 96 rc = curl_url_get(h, CURLUPART_PORT, &port, 0); 97 rc = curl_url_get(h, CURLUPART_QUERY, &query, 0); 98 rc = curl_url_get(h, CURLUPART_SCHEME, &scheme, 0); 99 rc = curl_url_get(h, CURLUPART_USER, &user, 0); 100 rc = curl_url_get(h, CURLUPART_ZONEID, &zoneid, 0); 119 rc = curl_url_set(urlp, CURLUPART_PORT, "443", 0); [all …]
|
/curl/src/ |
H A D | tool_cb_rea.c | 47 ssize_t rc = 0; in tool_read_cb() local 84 rc = read(per->infd, buffer, sz*nmemb); in tool_read_cb() 85 if(rc < 0) { in tool_read_cb() 92 rc = 0; in tool_read_cb() 95 (per->uploadedsofar + rc > per->uploadfilesize)) { in tool_read_cb() 97 curl_off_t delta = per->uploadedsofar + rc - per->uploadfilesize; in tool_read_cb() 101 rc = (ssize_t)(per->uploadfilesize - per->uploadedsofar); in tool_read_cb() 106 return (size_t)rc; in tool_read_cb()
|
/curl/.github/scripts/ |
H A D | verify-examples.pl | 37 …my $rc = system("gcc -c test.c -DCURL_DISABLE_TYPECHECK -DCURL_ALLOW_OLD_MULTI_SOCKET -DCURL_DISAB… 38 return $rc; 42 my $rc = system("$check test.c") >> 8; 43 return $rc;
|