Lines Matching defs:result
269 CURLcode result;
288 result = Curl_conn_tcp_accepted_set(data, conn, SECONDARYSOCKET, &s);
289 if(result)
290 return result;
437 CURLcode result = CURLE_OK;
444 result = Curl_ssl_cfilter_add(data, conn, SECONDARYSOCKET);
445 if(result)
446 return result;
448 result = Curl_conn_connect(data, SECONDARYSOCKET, TRUE, &connected);
449 if(result || !connected)
450 return result;
486 CURLcode result = CURLE_OK;
498 result = CURLE_FTP_ACCEPT_TIMEOUT;
503 result = ReceivedServerConnect(data, connected);
504 if(result)
508 result = AcceptServerConnect(data);
509 if(result)
512 result = InitiateTransfer(data);
513 if(result)
524 DEBUGF(infof(data, "ftp AllowServerConnect() -> %d", result));
525 return result;
557 CURLcode result = Curl_pp_readresp(data, sockfd, pp, &code, size);
601 return result;
625 CURLcode result = CURLE_OK;
640 while(!*ftpcode && !result) {
692 result = ftp_readresp(data, sockfd, pp, ftpcode, &nread);
693 if(result)
711 return result;
784 CURLcode result = Curl_pp_sendf(data,
787 if(!result) {
792 return result;
798 CURLcode result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "%s", "PWD");
799 if(!result)
802 return result;
855 CURLcode result = CURLE_OK;
860 result = ftp_state_mdtm(data);
876 result = Curl_pp_sendf(data, &ftpc->pp, "CWD %s", ftpc->entrypath);
877 if(!result)
885 result = Curl_pp_sendf(data, &ftpc->pp, "CWD %s",
887 if(!result)
892 result = ftp_state_mdtm(data);
896 return result;
908 CURLcode result = CURLE_FTP_PORT_FAILED;
1214 result = Curl_pp_sendf(data, &ftpc->pp, "%s |%d|%s|%hu|", mode[fcmd],
1217 if(result) {
1219 curl_easy_strerror(result));
1242 result = Curl_pp_sendf(data, &ftpc->pp, "%s %s", mode[fcmd], target);
1243 if(result) {
1245 curl_easy_strerror(result));
1256 result = Curl_conn_tcp_listen_set(data, conn, SECONDARYSOCKET, &portsock);
1257 if(result)
1263 if(result) {
1268 return result;
1275 CURLcode result = CURLE_OK;
1302 result = Curl_pp_sendf(data, &ftpc->pp, "%s", mode[modeoff]);
1303 if(!result) {
1308 return result;
1320 CURLcode result = CURLE_OK;
1329 result = ftp_state_quote(data, TRUE, FTP_RETR_PREQUOTE);
1333 result = ftp_state_use_port(data, EPRT);
1342 result = Curl_pp_sendf(data, &ftpc->pp, "PRET %s",
1347 result = Curl_pp_sendf(data, &ftpc->pp, "PRET STOR %s",
1350 result = Curl_pp_sendf(data, &ftpc->pp, "PRET RETR %s",
1352 if(!result)
1356 result = ftp_state_use_pasv(data, conn);
1358 return result;
1364 CURLcode result = CURLE_OK;
1373 result = Curl_pp_sendf(data, &ftpc->pp, "REST %d", 0);
1374 if(!result)
1378 result = ftp_state_prepare_transfer(data);
1380 return result;
1386 CURLcode result = CURLE_OK;
1394 result = Curl_pp_sendf(data, &ftpc->pp, "SIZE %s", ftpc->file);
1395 if(!result)
1399 result = ftp_state_rest(data, conn);
1401 return result;
1406 CURLcode result = CURLE_OK;
1430 result = Curl_urldecode(ftp->path, 0, &rawPath, NULL, REJECT_CTRL);
1431 if(result)
1432 return result;
1460 result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "%s", cmd);
1463 if(!result)
1466 return result;
1483 CURLcode result = CURLE_OK;
1502 result = ftp_nb_type(data, conn, data->state.prefer_ascii, FTP_TYPE);
1503 if(result)
1504 return result;
1507 result = ftp_state_size(data, conn);
1509 return result;
1516 CURLcode result = CURLE_OK;
1525 result = Curl_pp_sendf(data, &ftpc->pp, "MDTM %s", ftpc->file);
1527 if(!result)
1531 result = ftp_state_type(data);
1533 return result;
1541 CURLcode result = CURLE_OK;
1565 result = Curl_pp_sendf(data, &ftpc->pp, "SIZE %s", ftpc->file);
1566 if(!result)
1568 return result;
1630 result = Curl_pp_sendf(data, &ftpc->pp, append?"APPE %s":"STOR %s",
1632 if(!result)
1635 return result;
1642 CURLcode result = CURLE_OK;
1691 result = Curl_pp_sendf(data, &ftpc->pp, "%s", cmd);
1692 if(result)
1693 return result;
1704 result = ftp_state_cwd(data, conn);
1712 result = ftp_state_retr(data, ftpc->known_filesize);
1728 result = Curl_pp_sendf(data, &ftpc->pp, "RETR %s", ftpc->file);
1729 if(!result)
1733 result = Curl_pp_sendf(data, &ftpc->pp, "SIZE %s", ftpc->file);
1734 if(!result)
1741 result = ftp_state_ul_setup(data, FALSE);
1748 return result;
1756 CURLcode result = CURLE_OK;
1775 result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "%s", "PASV");
1776 if(!result) {
1781 return result;
1826 CURLcode result;
1974 result = Curl_conn_setup(data, conn, SECONDARYSOCKET, addr,
1978 if(result) {
1983 return result;
2008 return result;
2017 CURLcode result = CURLE_OK;
2032 result = CURLE_FTP_PORT_FAILED;
2036 result = ftp_state_use_port(data, fcmd);
2041 result = ftp_dophase_done(data, FALSE);
2044 return result;
2088 CURLcode result;
2091 result = Curl_client_write(data, CLIENTWRITE_HEADER, buf, blen);
2093 return result;
2099 CURLcode result = CURLE_OK;
2136 result = Curl_gmtime(filetime, &buffer);
2137 if(result)
2138 return result;
2150 result = client_write_header(data, headerbuf, headerbuflen);
2151 if(result)
2152 return result;
2197 if(!result)
2198 result = ftp_state_type(data);
2200 return result;
2207 CURLcode result = CURLE_OK;
2222 result = ftp_state_size(data, conn);
2224 result = ftp_state_list(data);
2226 result = ftp_state_retr_prequote(data);
2228 result = ftp_state_stor_prequote(data);
2230 return result;
2236 CURLcode result = CURLE_OK;
2302 result = Curl_pp_sendf(data, &ftpc->pp, "REST %" CURL_FORMAT_CURL_OFF_T,
2304 if(!result)
2309 result = Curl_pp_sendf(data, &ftpc->pp, "RETR %s", ftpc->file);
2310 if(!result)
2314 return result;
2321 CURLcode result = CURLE_OK;
2361 result = client_write_header(data, clbuf, clbuflen);
2362 if(result)
2363 return result;
2367 result = ftp_state_rest(data, data->conn);
2371 result = ftp_state_retr(data, filesize);
2375 result = ftp_state_ul_setup(data, TRUE);
2378 return result;
2386 CURLcode result = CURLE_OK;
2395 result = client_write_header(data, buffer, strlen(buffer));
2396 if(result)
2397 return result;
2400 result = ftp_state_prepare_transfer(data);
2406 result = CURLE_FTP_COULDNT_USE_REST;
2409 result = Curl_pp_sendf(data, &ftpc->pp, "RETR %s", ftpc->file);
2410 if(!result)
2416 return result;
2422 CURLcode result = CURLE_OK;
2440 result = AllowServerConnect(data, &connected);
2441 if(result)
2442 return result;
2460 CURLcode result = CURLE_OK;
2554 result = AllowServerConnect(data, &connected);
2555 if(result)
2556 return result;
2582 return result;
2588 CURLcode result = CURLE_OK;
2606 result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "PBSZ %d", 0);
2607 if(!result)
2611 result = ftp_state_pwd(data, conn);
2613 return result;
2620 CURLcode result = CURLE_OK;
2628 result = Curl_pp_sendf(data, &ftpc->pp, "PASS %s",
2630 if(!result)
2636 result = ftp_state_loggedin(data);
2640 result = Curl_pp_sendf(data, &ftpc->pp, "ACCT %s",
2642 if(!result)
2647 result = CURLE_LOGIN_DENIED;
2659 result =
2662 if(!result) {
2669 result = CURLE_LOGIN_DENIED;
2672 return result;
2679 CURLcode result = CURLE_OK;
2682 result = CURLE_FTP_WEIRD_PASS_REPLY; /* FIX */
2685 result = ftp_state_loggedin(data);
2687 return result;
2694 CURLcode result;
2705 result = ftp_readresp(data, sock, pp, &ftpcode, &nread);
2706 if(result)
2707 return result;
2764 result = Curl_pp_sendf(data, &ftpc->pp, "AUTH %s",
2766 if(!result)
2770 result = ftp_state_user(data, conn);
2790 result = Curl_ssl_cfilter_add(data, conn, FIRSTSOCKET);
2791 if(result) {
2796 result = Curl_conn_connect(data, FIRSTSOCKET, TRUE, &done);
2797 if(!result) {
2800 result = ftp_state_user(data, conn);
2806 result = Curl_pp_sendf(data, &ftpc->pp, "AUTH %s",
2813 result = CURLE_USE_SSL_FAILED;
2816 result = ftp_state_user(data, conn);
2822 result = ftp_state_user_resp(data, ftpcode);
2826 result = ftp_state_acct_resp(data, ftpcode);
2830 result =
2833 if(!result)
2851 result = Curl_pp_sendf(data, &ftpc->pp, "%s", "CCC");
2852 if(!result)
2856 result = ftp_state_pwd(data, conn);
2862 result = Curl_ssl_cfilter_remove(data, FIRSTSOCKET);
2864 if(result)
2867 if(!result)
2869 result = ftp_state_pwd(data, conn);
2899 result = Curl_dyn_addn(&out, &ptr[1], 1);
2910 result = Curl_dyn_addn(&out, ptr, 1);
2911 if(result)
2912 return result;
2930 result = Curl_pp_sendf(data, &ftpc->pp, "%s", "SYST");
2931 if(result) {
2933 return result;
2981 result = Curl_pp_sendf(data, &ftpc->pp, "%s", "SITE NAMEFMT 1");
2982 if(result) {
2984 return result;
3023 result = CURLE_QUOTE_ERROR;
3026 result = ftp_state_quote(data, FALSE, ftpc->state);
3042 result = Curl_pp_sendf(data, &ftpc->pp, "MKD %s",
3044 if(!result)
3052 result = CURLE_REMOTE_ACCESS_DENIED;
3060 result = Curl_pp_sendf(data, &ftpc->pp, "CWD %s",
3063 result = ftp_state_mdtm(data);
3071 result = CURLE_REMOTE_ACCESS_DENIED;
3076 result = Curl_pp_sendf(data, &ftpc->pp, "CWD %s",
3082 result = ftp_state_mdtm_resp(data, ftpcode);
3089 result = ftp_state_type_resp(data, ftpcode, ftpc->state);
3095 result = ftp_state_size_resp(data, ftpcode, ftpc->state);
3100 result = ftp_state_rest_resp(data, conn, ftpcode, ftpc->state);
3109 result = ftp_state_use_pasv(data, conn);
3113 result = ftp_state_pasv_resp(data, ftpcode);
3117 result = ftp_state_port_resp(data, ftpcode);
3122 result = ftp_state_get_resp(data, ftpcode, ftpc->state);
3126 result = ftp_state_stor_resp(data, ftpcode, ftpc->state);
3137 return result;
3147 CURLcode result = Curl_pp_statemach(data, &ftpc->pp, FALSE, FALSE);
3154 return result;
3162 CURLcode result = CURLE_OK;
3165 result = Curl_pp_statemach(data, pp, TRUE, TRUE /* disconnecting */);
3166 if(result)
3170 return result;
3184 CURLcode result;
3198 result = Curl_conn_connect(data, FIRSTSOCKET, TRUE, done);
3199 if(result)
3200 return result;
3210 result = ftp_multi_statemach(data, done);
3212 return result;
3233 CURLcode result = CURLE_OK;
3268 result = status; /* use the already set error code */
3281 if(!result)
3283 result = Curl_urldecode(ftp->path, 0, &rawPath, &pathLen,
3285 if(result) {
3328 if(!result && ftpc->dont_check && data->req.maxdownload > 0) {
3330 result = Curl_pp_sendf(data, pp, "%s", "ABOR");
3331 if(result) {
3333 curl_easy_strerror(result));
3342 if(!result && (ftp->transfer == PPTRANSFER_BODY) && ftpc->ctl_valid &&
3355 result = Curl_GetFTPResponse(data, &nread, &ftpcode);
3359 if(!nread && (CURLE_OPERATION_TIMEDOUT == result)) {
3365 if(result) {
3367 return result;
3375 return result;
3386 result = CURLE_REMOTE_DISK_FULL;
3390 result = CURLE_PARTIAL_FILE;
3396 if(result || premature)
3408 result = CURLE_PARTIAL_FILE;
3425 result = CURLE_PARTIAL_FILE;
3431 result = CURLE_FTP_COULDNT_RETR_FILE;
3440 if(!status && !result && !premature && data->set.postquote)
3441 result = ftp_sendquote(data, conn, data->set.postquote);
3443 return result;
3470 CURLcode result;
3483 result = Curl_pp_sendf(data, &ftpc->pp, "%s", cmd);
3484 if(!result) {
3486 result = Curl_GetFTPResponse(data, &nread, &ftpcode);
3488 if(result)
3489 return result;
3528 CURLcode result;
3536 result = Curl_pp_sendf(data, &ftpc->pp, "TYPE %c", want);
3537 if(!result) {
3543 return result;
3583 CURLcode result = CURLE_OK;
3599 result = Curl_conn_connect(data, SECONDARYSOCKET, FALSE, &connected);
3600 if(result || !Curl_conn_is_ip_connected(data, SECONDARYSOCKET)) {
3601 if(result && (ftpc->count1 == 0)) {
3606 return result;
3616 result = ftp_multi_statemach(data, &complete);
3622 if(result || !ftpc->wait_data_conn)
3623 return result;
3638 result = ReceivedServerConnect(data, &serv_conned);
3639 if(result)
3640 return result; /* Failed to accept data connection */
3644 result = AcceptServerConnect(data);
3646 if(!result)
3647 result = InitiateTransfer(data);
3649 if(result)
3650 return result;
3657 result = ftp_nb_type(data, conn, data->state.prefer_ascii,
3659 if(result)
3660 return result;
3662 result = ftp_multi_statemach(data, &complete);
3669 result = Curl_range(data);
3671 if(result == CURLE_OK && data->req.maxdownload >= 0) {
3676 if(result)
3685 result = ftp_nb_type(data, conn, TRUE, FTP_LIST_TYPE);
3686 if(result)
3687 return result;
3692 result = ftp_nb_type(data, conn, data->state.prefer_ascii,
3694 if(result)
3695 return result;
3698 result = ftp_multi_statemach(data, &complete);
3701 return result;
3710 DEBUGF(infof(data, "DO-MORE phase ends with %d", (int)result));
3713 return result;
3732 CURLcode result = CURLE_OK;
3745 result = ftp_state_quote(data, TRUE, FTP_QUOTE);
3746 if(result)
3747 return result;
3750 result = ftp_multi_statemach(data, dophase_done);
3759 return result;
3776 CURLcode result = CURLE_OK;
3784 result = ftp_parse_url_path(data);
3785 return result;
3801 result = ftp_parse_url_path(data);
3802 return result;
3812 result = CURLE_OUT_OF_MEMORY;
3819 result = CURLE_OUT_OF_MEMORY;
3831 result = ftp_parse_url_path(data);
3832 if(result) {
3838 result = CURLE_OUT_OF_MEMORY;
3862 return result;
3869 CURLcode result = CURLE_OK;
3874 result = init_wc_data(data);
3877 return result;
3878 wildcard->state = result ? CURLWC_ERROR : CURLWC_MATCHING;
3879 return result;
3944 result = ftp_parse_url_path(data);
3945 if(result)
3946 return result;
3957 return result;
3974 result = CURLE_OK;
3976 result = Curl_ftp_parselist_geterror(ftpwc->parser);
3978 wildcard->state = result ? CURLWC_ERROR : CURLWC_DONE;
3979 return result;
3989 return result;
4006 CURLcode result = CURLE_OK;
4014 result = wc_statemach(data);
4020 if(result) /* error, loop or skipping the file */
4021 return result;
4024 result = ftp_parse_url_path(data);
4025 if(result)
4026 return result;
4029 result = ftp_regular_transfer(data, done);
4031 return result;
4046 CURLcode result = CURLE_OK;
4049 result = Curl_pp_sendf(data, &conn->proto.ftpc.pp, "%s", "QUIT");
4050 if(result) {
4052 curl_easy_strerror(result));
4056 return result;
4061 result = ftp_block_statemach(data, conn);
4064 return result;
4132 CURLcode result = CURLE_OK;
4140 result = Curl_urldecode(ftp->path, 0, &rawPath, &pathLen, REJECT_CTRL);
4141 if(result) {
4143 return result;
4279 CURLcode result = ftp_do_more(data, &completed);
4281 if(result) {
4283 return result;
4303 CURLcode result = ftp_multi_statemach(data, dophase_done);
4305 if(result)
4308 result = ftp_dophase_done(data, FALSE /* not connected */);
4312 return result;
4331 CURLcode result = CURLE_OK;
4344 result = ftp_perform(data,
4348 if(!result) {
4354 result = ftp_dophase_done(data, connected);
4356 if(result)
4357 return result;
4362 return result;
4370 CURLcode result = CURLE_OK;
4434 return result;