Home
last modified time | relevance | path

Searched refs:ret (Results 1 – 25 of 89) sorted by relevance

1234

/curl/tests/unit/
H A Dunit1653.c51 CURLUcode ret; in parse_port() local
57 return ret; in parse_port()
62 CURLUcode ret; variable
73 ret = parse_port(u, ipv6port, FALSE);
87 ret = parse_port(u, ipv6port, FALSE);
98 ret = parse_port(u, ipv6port, FALSE);
115 ret = parse_port(u, ipv6port, FALSE);
131 ret = parse_port(u, ipv6port, FALSE);
143 ret = parse_port(u, ipv6port, FALSE);
159 ret = parse_port(u, ipv6port, FALSE);
[all …]
H A Dunit1655.c154 DOHcode ret = doh_req_encode(sunshine1, dnstype, buffer, buflen, &olen1); variable
155 fail_unless(ret == DOH_OK, "sunshine case 1 should pass fine");
174 ret = doh_req_encode(sunshine1, dnstype, buffer, olen1 - 1, &olen);
175 fail_if(ret == DOH_OK, "short buffer should have been noticed");
178 ret = doh_req_encode(sunshine1, dnstype, buffer, olen1, &olen);
179 fail_unless(ret == DOH_OK, "minimal length buffer should be long enough");
/curl/tests/libtest/
H A Dlib3010.c30 CURLcode ret = CURLE_OK; in test() local
40 ret = curl_easy_perform(curl); in test()
41 if(ret) { in test()
43 __FILE__, __LINE__, ret, curl_easy_strerror(ret)); in test()
50 ret = curl_easy_perform(curl); in test()
51 if(ret) { in test()
53 __FILE__, __LINE__, ret, curl_easy_strerror(ret)); in test()
66 return ret; in test()
H A Dlib3027.c32 CURLcode ret = CURLE_OK; in test() local
42 ret = curl_easy_perform(hnd); in test()
43 if(CURLE_OK == ret) { in test()
45 ret = curl_easy_getinfo(hnd, CURLINFO_FILETIME, &filetime); in test()
47 if((CURLE_OK == ret) && (filetime != -1)) { in test()
49 ret = CURLE_UNSUPPORTED_PROTOCOL; in test()
55 return ret; in test()
H A Dlib1523.c60 CURLcode ret; in test() local
71 ret = run(hnd, 1, 2); in test()
72 if(ret) in test()
73 fprintf(stderr, "error %d: %s\n", ret, buffer); in test()
75 ret = run(hnd, 12000, 1); in test()
76 if(ret != CURLE_OPERATION_TIMEDOUT) in test()
77 fprintf(stderr, "error %d: %s\n", ret, buffer); in test()
79 ret = CURLE_OK; in test()
84 return ret; in test()
H A Dlib1908.c32 CURLcode ret = CURLE_OK; in test() local
43 ret = curl_easy_perform(hnd); in test()
45 if(!ret) { in test()
49 ret = curl_easy_perform(also); in test()
63 return ret; in test()
H A Dlibprereq.c57 CURLcode ret = CURLE_OK; in test() local
86 ret = curl_easy_perform(curl); in test()
87 if(ret) { in test()
89 __FILE__, __LINE__, ret, curl_easy_strerror(ret)); in test()
98 return ret; in test()
H A Dlib1913.c32 CURLcode ret = CURLE_OK; in test() local
45 ret = curl_easy_perform(hnd); in test()
49 return ret; in test()
H A Dlib1910.c32 CURLcode ret = CURLE_OK; in test() local
44 ret = curl_easy_perform(hnd); in test()
48 return ret; in test()
H A Dlib1568.c31 CURLcode ret; in test() local
45 ret = curl_easy_perform(hnd); in test()
51 return ret; in test()
/curl/lib/vtls/
H A Dmbedtls.c154 int ret; in entropy_func_mutex() local
160 return ret; in entropy_func_mutex()
593 if(ret) {
605 if(ret) {
800 if(ret) {
832 if(ret) {
975 int ret; local
1135 int ret; local
1217 int ret; local
1385 int ret; local
[all …]
H A Dbearssl.c547 CURLcode ret; in bearssl_connect_step1() local
590 return ret; in bearssl_connect_step1()
601 if(ret) in bearssl_connect_step1()
664 if(ret) { in bearssl_connect_step1()
689 ssize_t ret; in bearssl_run_until() local
768 CURLcode ret; in bearssl_connect_step2() local
804 return ret; in bearssl_connect_step2()
846 if(ret) in bearssl_connect_step3()
936 if(ret) in bearssl_connect_common()
994 if(ret) in bearssl_connect_common()
[all …]
H A Dgtls.c161 int ret = 1; in gtls_init() local
170 return ret; in gtls_init()
1242 int ret; in pkp_pin_peer_pubkey() local
1248 if(ret < 0) in pkp_pin_peer_pubkey()
2093 gnutls_strerror((int)ret), (int)ret); in gtls_shutdown()
2163 ssize_t ret; in gtls_recv() local
2186 ret = -1; in gtls_recv()
2199 ret = -1; in gtls_recv()
2205 (int)ret, gnutls_strerror((int)ret)); in gtls_recv()
2208 ret = -1; in gtls_recv()
[all …]
/curl/src/
H A Dtool_setopt.c173 if(ret) \
178 if(ret) \
299 if(ret) in tool_setopt_enum()
303 return ret; in tool_setopt_enum()
343 if(ret) in tool_setopt_SSLVERSION()
347 return ret; in tool_setopt_SSLVERSION()
391 return ret; in tool_setopt_bitmask()
418 return ret; in libcurl_generate_slist()
441 if(ret) in libcurl_generate_mime_part()
574 if(!ret) in tool_setopt_mimepost()
[all …]
H A Dtool_easysrc.c97 CURLcode ret = CURLE_OK; in easysrc_add() local
101 ret = CURLE_OUT_OF_MEMORY; in easysrc_add()
105 return ret; in easysrc_add()
110 CURLcode ret; in easysrc_addf() local
117 ret = CURLE_OUT_OF_MEMORY; in easysrc_addf()
120 ret = easysrc_add(plist, bufp); in easysrc_addf()
123 return ret; in easysrc_addf()
126 #define CHKRET(v) do {CURLcode ret = (v); if(ret) return ret;} while(0)
H A Dtool_formparse.c248 if(!ret) { in tool2curlparts()
253 if(!ret) { in tool2curlparts()
258 if(!ret) { in tool2curlparts()
260 if(ret) in tool2curlparts()
294 if(!ret) in tool2curlparts()
296 if(!ret) in tool2curlparts()
298 if(!ret) in tool2curlparts()
300 if(!ret) in tool2curlparts()
303 return ret; in tool2curlparts()
315 if(ret) { in tool2curlmime()
[all …]
/curl/docs/examples/
H A Dusercertinmem.c52 int ret; in sslctx_function() local
137 ret = SSL_CTX_use_certificate((SSL_CTX*)sslctx, cert); in sslctx_function()
138 if(ret != 1) { in sslctx_function()
155 ret = SSL_CTX_use_RSAPrivateKey((SSL_CTX*)sslctx, rsa); in sslctx_function()
156 if(ret != 1) { in sslctx_function()
/curl/lib/
H A Dcurl_threads.c95 int ret = (pthread_join(**hnd, NULL) == 0); in Curl_thread_join() local
100 return ret; in Curl_thread_join()
149 int ret = (WaitForSingleObject(*hnd, INFINITE) == WAIT_OBJECT_0); in Curl_thread_join() local
151 int ret = (WaitForSingleObjectEx(*hnd, INFINITE, FALSE) == WAIT_OBJECT_0); in Curl_thread_join()
158 return ret; in Curl_thread_join()
H A Dkrb5.c195 int ret = AUTH_OK; in krb5_auth() local
276 ret = AUTH_OK; in krb5_auth()
295 ret = AUTH_ERROR; in krb5_auth()
320 ret = -2; in krb5_auth()
325 ret = -1; in krb5_auth()
371 return ret; in krb5_auth()
834 int ret; in choose_mech() local
848 if(ret) { in choose_mech()
858 if(ret < 0) in choose_mech()
861 if(ret/100 != 3) { in choose_mech()
[all …]
H A Dtimeval.c173 struct curltime ret; in Curl_now() local
175 ret.tv_sec = now.tv_sec; in Curl_now()
176 ret.tv_usec = (int)now.tv_usec; in Curl_now()
177 return ret; in Curl_now()
/curl/tests/
H A Dtestutil.pm184 my $ret = system($cmd);
185 print "CMD ($ret): $cmd\n" if($verbose && !$torture);
186 return $ret;
/curl/tests/data/
H A Dtest80034 'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u '"user:sec"ret{'
43 A002 LOGIN "\"user" "sec\"ret{"
H A Dtest84734 'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;UID=1' -u '"user:sec"ret{'
43 A002 LOGIN "\"user" "sec\"ret{"
H A Dtest89535 'imap://%HOSTIP:%IMAPPORT/%TESTNUMBER/;MAILINDEX=1' -u '"user:sec"ret{' --login-options 'AUTH=*'
44 A002 LOGIN "\"user" "sec\"ret{"
H A Dtest98833 -k --ssl-reqd -u '"user:sec"ret{' 'imaps://%HOSTIP:%IMAPSPORT/%TESTNUMBER/;MAILINDEX=1'
42 A002 LOGIN "\"user" "sec\"ret{"

Completed in 112 milliseconds

1234