• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/lib/

Lines Matching refs:ftp

59 #include "ftp.h"
492 struct FTP *ftp = data->req.protop;
505 *(ftp->bytecountp)=0;
516 SECONDARYSOCKET, ftp->bytecountp);
522 ftp->bytecountp, -1, NULL); /* no upload here */
586 /* macro to check for a three-digit ftp status code at the start of the
609 int *ftpcode, /* return the ftp-code if done */
636 /* normal ftp stuff we pass through! */
673 int *ftpcode) /* return the ftp-code */
836 struct FTP *ftp = conn->data->req.protop;
838 PPSENDF(&conn->proto.ftpc.pp, "USER %s", ftp->user?ftp->user:"");
919 for all upcoming ones in the ftp->dirs[] array */
1373 struct FTP *ftp = conn->data->req.protop;
1376 if(ftp->transfer != FTPTRANSFER_BODY) {
1416 struct FTP *ftp = conn->data->req.protop;
1419 if((ftp->transfer != FTPTRANSFER_BODY) && ftpc->file) {
1437 struct FTP *ftp = conn->data->req.protop;
1440 if((ftp->transfer == FTPTRANSFER_INFO) && ftpc->file) {
1548 struct FTP *ftp = conn->data->req.protop;
1561 ftp->transfer = FTPTRANSFER_INFO;
1605 struct FTP *ftp = conn->data->req.protop;
1618 don't another ftp command. We just skip the source file
1680 ftp->transfer = FTPTRANSFER_NONE;
1703 struct FTP *ftp = data->req.protop;
1764 if(ftp->transfer != FTPTRANSFER_BODY)
1926 proxy address not the ftp host */
1983 proxy address not the ftp host */
2025 /* normal, direct, ftp connection */
2107 struct FTP *ftp = data->req.protop;
2178 ftp->transfer = FTPTRANSFER_NONE; /* mark to not transfer data */
2187 ftp->transfer = FTPTRANSFER_NONE; /* mark to not transfer data */
2241 struct FTP *ftp = data->req.protop;
2248 ftp->downloadsize = filesize;
2254 infof(data, "ftp server doesn't support SIZE\n");
2272 ftp->downloadsize = -data->state.resume_from;
2274 data->state.resume_from = filesize - ftp->downloadsize;
2284 ftp->downloadsize = filesize-data->state.resume_from;
2288 if(ftp->downloadsize == 0) {
2295 ftp->transfer = FTPTRANSFER_NONE;
2435 struct FTP *ftp = data->req.protop;
2471 (ftp->downloadsize < 1)) {
2503 else if(ftp->downloadsize > -1)
2504 size = ftp->downloadsize;
2542 ftp->transfer = FTPTRANSFER_NONE; /* don't download anything */
2564 The 'draft-murray-auth-ftp-ssl' (draft 12, page 7) says:
2592 struct FTP *ftp = data->req.protop;
2600 PPSENDF(&ftpc->pp, "PASS %s", ftp->passwd?ftp->passwd:"");
2684 failf(data, "Got a %03d ftp-server response when 220 was expected",
3149 /* We always support persistent connections on ftp */
3188 struct FTP *ftp = data->req.protop;
3198 if(!ftp)
3200 * trying to resolve the host name, it seems that the ftp struct is not
3202 * this function. So we simply return success if no ftp pointer is set.
3320 if(!result && (ftp->transfer == FTPTRANSFER_BODY) && ftpc->ctl_valid &&
3369 (data->set.infilesize != *ftp->bytecountp) &&
3371 (ftp->transfer == FTPTRANSFER_BODY)) {
3374 *ftp->bytecountp, data->set.infilesize);
3380 (data->req.size != *ftp->bytecountp) &&
3387 *ftp->bytecountp) &&
3389 (data->req.maxdownload != *ftp->bytecountp)) {
3391 " bytes", *ftp->bytecountp);
3395 !*ftp->bytecountp &&
3403 ftp->transfer = FTPTRANSFER_BODY;
3605 /* the ftp struct is inited in ftp_connect() */
3606 struct FTP *ftp = data->req.protop;
3657 if(ftp->transfer <= FTPTRANSFER_INFO) {
3692 ftp->downloadsize = -1; /* unknown as of yet */
3703 if(ftp->transfer == FTPTRANSFER_BODY) {
3722 if((result == CURLE_OK) && (ftp->transfer != FTPTRANSFER_BODY))
3758 struct FTP *ftp = conn->data->req.protop;
3759 ftp->transfer = FTPTRANSFER_INFO;
3830 /* allocate ftp protocol specific temporary wildcard data */
3852 /* try to parse ftp url */
4103 * This should be called before calling sclose() on an ftp control connection
4148 ftp_quit() will check the state of ftp->ctl_valid. If it's ok it
4196 /* the ftp struct is already inited in ftp_connect() */
4197 struct FTP *ftp = data->req.protop;
4353 if(data->set.upload && !ftpc->file && (ftp->transfer == FTPTRANSFER_BODY)) {
4387 struct FTP *ftp = conn->data->req.protop;
4404 if(ftp->transfer != FTPTRANSFER_BODY)
4441 * ftp->ctl_valid starts out as FALSE, and gets set to TRUE if we reach the
4487 struct FTP *ftp;
4490 /* Unless we have asked to tunnel ftp operations through the proxy, we
4511 conn->data->req.protop = ftp = malloc(sizeof(struct FTP));
4512 if(NULL == ftp)
4547 /* get some initial data into the ftp struct */
4548 ftp->bytecountp = &conn->data->req.bytecount;
4549 ftp->transfer = FTPTRANSFER_BODY;
4550 ftp->downloadsize = 0;
4556 ftp->user = conn->user;
4557 ftp->passwd = conn->passwd;
4558 if(isBadFtpString(ftp->user))
4560 if(isBadFtpString(ftp->passwd))