/curl/tests/unit/ |
H A D | unit1398.c | 35 int rc; variable 45 fail_unless(rc == 3, "return code should be 3"); 50 fail_unless(rc == 3, "return code should be 3"); 56 fail_unless(rc == 2, "return code should be 2"); 60 rc = curl_msnprintf(output, 8, "%.8s", str); 61 fail_unless(rc == 3, "return code should be 3"); 66 fail_unless(rc == 3, "return code should be 3"); 70 rc = curl_msnprintf(output, 8, "%-8s", str); 71 fail_unless(rc == 7, "return code should be 7"); 75 rc = curl_msnprintf(output, 8, "%8s", str); [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 | 87 int rc = 0; variable 106 rc = Curl_get_line(&buf, fp); 110 rc = Curl_get_line(&buf, fp); 114 rc = Curl_get_line(&buf, fp); 118 rc = Curl_get_line(&buf, fp); 122 rc = Curl_get_line(&buf, fp); 126 rc = Curl_get_line(&buf, fp); 130 rc = Curl_get_line(&buf, fp); 134 rc = Curl_get_line(&buf, fp); 139 rc = Curl_get_line(&buf, fp); [all …]
|
H A D | unit1308.c | 47 CURLFORMcode rc; variable 54 rc = curl_formadd(&post, &last, CURLFORM_COPYNAME, "name", 57 fail_unless(rc == 0, "curl_formadd returned error"); 63 rc = curl_formadd(&post, &last, CURLFORM_COPYNAME, "htmlcode", 67 fail_unless(rc == 0, "curl_formadd returned error"); 69 rc = curl_formadd(&post, &last, CURLFORM_COPYNAME, "name_for_ptrcontent", 72 fail_unless(rc == 0, "curl_formadd returned error"); 85 rc = curl_formadd(&post, &last, 91 fail_unless(rc == 0, "curl_formadd returned error");
|
H A D | unit1603.c | 71 int rc; variable 115 rc = Curl_hash_delete(&hash_static, &key4, strlen(key4)); 116 fail_unless(rc == 0, "hash delete failed"); 129 rc = Curl_hash_delete(&hash_static, &key1, strlen(key1)); 130 fail_unless(rc == 0, "hash delete failed"); 137 rc = Curl_hash_delete(&hash_static, &key4, strlen(key4)); 138 fail_unless(rc == 0, "hash delete failed"); 145 rc = Curl_hash_delete(&hash_static, &key4, strlen(key4)); 146 fail_unless(rc, "hash delete should have failed"); 171 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 1241 if(!rc) { in set_url() 1247 (int)rc, curl_url_strerror(rc)); in set_url() 1297 if(!rc) { in setget_parts() 1341 if(!rc) { in set_parts() 1389 if(!rc) { in get_url() 1478 if(rc) in append() 1779 if(!rc) { in huge() 1822 if(rc) in urldup() 1827 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 | 371 CURLcode rc; in test() local 374 rc = testone(URL, 0, 0); in test() 375 if(rc) in test() 378 rc = testone(URL, 1, 0); in test() 379 if(!rc) in test() 382 rc = testone(URL, 2, 0); in test() 383 if(!rc) in test() 386 rc = testone(URL, 0, 1); in test() 387 if(!rc) in test() 390 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 if(!rc) { in ldap_win_bind_auth() 266 return rc; in ldap_win_bind_auth() 293 return rc; in ldap_win_bind() 307 int rc = 0; in ldap_do() local 339 if(rc) { in ldap_do() 520 if(!ldap_ssl && rc) { in ldap_do() 529 if(rc) { in ldap_do() 545 if(rc && rc != LDAP_SIZELIMIT_EXCEEDED) { in ldap_do() 1061 return rc; in _ldap_url_parse2() 1069 int rc; in _ldap_url_parse() local [all …]
|
H A D | openldap.c | 357 int rc; in oldap_perform_auth() local 380 int rc; in oldap_continue_auth() local 416 int rc; in oldap_perform_bind() local 443 int rc; in oldap_perform_mechs() local 525 int rc; in oldap_connect() local 613 int rc; in oldap_state_mechs_resp() local 680 int rc; in oldap_state_sasl_resp() local 707 int rc; in oldap_state_bind_resp() local 734 int rc; in oldap_connecting() local 888 int rc; in oldap_do() local [all …]
|
/curl/tests/server/ |
H A D | mqttd.c | 243 ssize_t rc; in connack() local 248 if(rc > 0) { in connack() 267 ssize_t rc; in suback() local 289 ssize_t rc; in puback() local 402 ssize_t rc; in publish() local 495 ssize_t rc; in mqttit() local 542 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 | 289 int rc; in socksconnect() local 302 if(rc) { in socksconnect() 325 if(rc < 9) { in socks4() 349 if(rc != 8) { in socks4() 370 ssize_t rc; in sockit() local 393 if(rc < 3) { in sockit() 496 if(rc < 6) { in sockit() 814 int rc; in sockdaemon() local 826 if(rc) { in sockdaemon() 851 if(rc) { in sockdaemon() [all …]
|
H A D | resolve.c | 66 int rc = 0; in main() local 116 rc = -1; in main() 122 if(rc == 0) { in main() 133 rc = (getaddrinfo)(host, "80", &hints, &ai); in main() 134 if(rc == 0) in main() 148 rc = !he; in main() 152 if(rc) in main() 155 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/vtls/ |
H A D | gtls.c | 257 int rc; in handshake() local 314 else if((rc < 0) && !gnutls_error_is_fatal(rc)) { in handshake() 460 int rc; in Curl_gtls_client_trust_setup() local 626 int rc; in gtls_client_init() local 1045 int rc; in Curl_gtls_verifyserver() local 1281 if(rc) { in Curl_gtls_verifyserver() 1295 if(!rc) { in Curl_gtls_verifyserver() 1434 if(rc) in Curl_gtls_verifyserver() 1449 if(rc) in Curl_gtls_verifyserver() 1533 if(rc) { in gtls_connect_common() [all …]
|
/curl/lib/vssh/ |
H A D | wolfssh.c | 255 int rc; in wsftp_send() local 278 if(rc < 0) { in wsftp_send() 286 return (ssize_t)rc; in wsftp_send() 296 int rc; in wsftp_recv() local 324 if(rc < 0) { in wsftp_recv() 330 return (ssize_t)rc; in wsftp_recv() 370 int rc; in wssh_connect() local 402 if(rc != WS_SUCCESS) { in wssh_connect() 412 if(rc) { in wssh_connect() 448 int rc = 0; in wssh_statemach_act() local [all …]
|
H A D | libssh.c | 333 int rc; in myssh_is_known() local 359 return rc; in myssh_is_known() 387 rc = SSH_OK; in myssh_is_known() 534 rc = SSH_OK; in myssh_is_known() 551 return rc; in myssh_is_known() 600 int rc; in myssh_auth_interactive() local 619 if(rc < 0) in myssh_auth_interactive() 659 return rc; in myssh_auth_interactive() 1331 if(rc) in myssh_statemach_act() 2170 int rc; in myssh_connect() local [all …]
|
H A D | libssh2.c | 474 int rc = 0; in ssh_knownhost() local 593 switch(rc) { in ssh_knownhost() 778 int rc = 0; in ssh_check_fingerprint() local 890 int rc; in ssh_force_knownhost_key_type() local 942 if(rc) { in ssh_force_knownhost_key_type() 1008 if(rc) { in ssh_statemach_act() 1321 if(rc < 0) in ssh_statemach_act() 2402 rc = in ssh_statemach_act() 2496 if(rc || in ssh_statemach_act() 3372 int rc; in ssh_connect() local [all …]
|
/curl/docs/libcurl/ |
H A D | libcurl-url.md | 58 rc = curl_url_set(h, CURLUPART_URL, 80 rc = curl_url_get(h, CURLUPART_URL, &url, 0); 92 rc = curl_url_get(h, CURLUPART_HOST, &host, 0); 94 rc = curl_url_get(h, CURLUPART_PATH, &path, 0); 95 rc = curl_url_get(h, CURLUPART_PORT, &port, 0); 96 rc = curl_url_get(h, CURLUPART_QUERY, &query, 0); 97 rc = curl_url_get(h, CURLUPART_SCHEME, &scheme, 0); 98 rc = curl_url_get(h, CURLUPART_USER, &user, 0); 99 rc = curl_url_get(h, CURLUPART_ZONEID, &zoneid, 0); 118 rc = curl_url_set(urlp, CURLUPART_PORT, "443", 0); [all …]
|
/curl/src/ |
H A D | tool_cb_rea.c | 49 ssize_t rc = 0; in tool_read_cb() local 86 rc = read(per->infd, buffer, sz*nmemb); in tool_read_cb() 87 if(rc < 0) { in tool_read_cb() 94 rc = 0; in tool_read_cb() 97 (per->uploadedsofar + rc > per->uploadfilesize)) { in tool_read_cb() 99 curl_off_t delta = per->uploadedsofar + rc - per->uploadfilesize; in tool_read_cb() 103 rc = (ssize_t)(per->uploadfilesize - per->uploadedsofar); in tool_read_cb() 108 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;
|