• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/curl-7.23.1/lib/

Lines Matching refs:ftp

66 #include "ftp.h"
376 /* macro to check for a three-digit ftp status code at the start of the
399 int *ftpcode, /* return the ftp-code if done */
426 /* normal ftp stuff we pass through! */
456 int *ftpcode) /* return the ftp-code */
613 struct FTP *ftp = conn->data->state.proto.ftp;
615 PPSENDF(&conn->proto.ftpc.pp, "USER %s", ftp->user?ftp->user:"");
700 for all upcoming ones in the ftp->dirs[] array */
1151 struct FTP *ftp = conn->data->state.proto.ftp;
1154 if(ftp->transfer != FTPTRANSFER_BODY) {
1194 struct FTP *ftp = conn->data->state.proto.ftp;
1197 if((ftp->transfer != FTPTRANSFER_BODY) && ftpc->file) {
1215 struct FTP *ftp = conn->data->state.proto.ftp;
1218 if((ftp->transfer == FTPTRANSFER_INFO) && ftpc->file) {
1326 struct FTP *ftp = conn->data->state.proto.ftp;
1339 ftp->transfer = FTPTRANSFER_INFO;
1383 struct FTP *ftp = conn->data->state.proto.ftp;
1396 don't another ftp command. We just skip the source file
1458 ftp->transfer = FTPTRANSFER_NONE;
1481 struct FTP *ftp = data->state.proto.ftp;
1542 if(ftp->transfer != FTPTRANSFER_BODY)
1619 proxy address not the ftp host */
1675 proxy address not the ftp host */
1726 /* normal, direct, ftp connection */
1818 struct FTP *ftp_save = data->state.proto.ftp;
1824 data->state.proto.ftp = ftp_save;
1875 struct FTP *ftp = data->state.proto.ftp;
1946 ftp->transfer = FTPTRANSFER_NONE; /* mark to not transfer data */
1955 ftp->transfer = FTPTRANSFER_NONE; /* mark to not transfer data */
2009 struct FTP *ftp = data->state.proto.ftp;
2016 ftp->downloadsize = filesize;
2022 infof(data, "ftp server doesn't support SIZE\n");
2040 ftp->downloadsize = -data->state.resume_from;
2042 data->state.resume_from = filesize - ftp->downloadsize;
2052 ftp->downloadsize = filesize-data->state.resume_from;
2056 if(ftp->downloadsize == 0) {
2063 ftp->transfer = FTPTRANSFER_NONE;
2164 struct FTP *ftp = data->state.proto.ftp;
2190 *(ftp->bytecountp)=0;
2201 SECONDARYSOCKET, ftp->bytecountp);
2216 struct FTP *ftp = data->state.proto.ftp;
2252 (ftp->downloadsize < 1)) {
2284 else if(ftp->downloadsize > -1)
2285 size = ftp->downloadsize;
2315 ftp->bytecountp, -1, NULL); /* no upload here */
2323 ftp->transfer = FTPTRANSFER_NONE; /* don't download anything */
2358 The 'draft-murray-auth-ftp-ssl' (draft 12, page 7) says:
2386 struct FTP *ftp = data->state.proto.ftp;
2394 PPSENDF(&ftpc->pp, "PASS %s", ftp->passwd?ftp->passwd:"");
2476 failf(data, "Got a %03d ftp-server response when 220 was expected",
2931 struct FTP *ftp;
2933 if(NULL == conn->data->state.proto.ftp) {
2934 conn->data->state.proto.ftp = malloc(sizeof(struct FTP));
2935 if(NULL == conn->data->state.proto.ftp)
2939 ftp = conn->data->state.proto.ftp;
2941 /* get some initial data into the ftp struct */
2942 ftp->bytecountp = &conn->data->req.bytecount;
2943 ftp->transfer = FTPTRANSFER_BODY;
2944 ftp->downloadsize = 0;
2950 ftp->user = conn->user;
2951 ftp->passwd = conn->passwd;
2952 if(isBadFtpString(ftp->user))
2954 if(isBadFtpString(ftp->passwd))
2994 /* We always support persistent connections on ftp */
3016 ftp_save = data->state.proto.ftp;
3023 data->state.proto.ftp = ftp_save;
3066 struct FTP *ftp = data->state.proto.ftp;
3076 if(!ftp)
3078 * trying to resolve the host name, it seems that the ftp struct is not
3080 * this function. So we simply return success if no ftp pointer is set.
3194 if(!result && (ftp->transfer == FTPTRANSFER_BODY) && ftpc->ctl_valid &&
3243 (data->set.infilesize != *ftp->bytecountp) &&
3245 (ftp->transfer == FTPTRANSFER_BODY)) {
3248 *ftp->bytecountp, data->set.infilesize);
3254 (data->req.size != *ftp->bytecountp) &&
3261 *ftp->bytecountp) &&
3263 (data->req.maxdownload != *ftp->bytecountp)) {
3265 *ftp->bytecountp);
3269 !*ftp->bytecountp &&
3277 ftp->transfer = FTPTRANSFER_BODY;
3472 /* the ftp struct is inited in ftp_connect() */
3473 struct FTP *ftp = data->state.proto.ftp;
3477 if(ftp->transfer <= FTPTRANSFER_INFO) {
3488 ftp->downloadsize = -1; /* unknown as of yet */
3499 if(ftp->transfer == FTPTRANSFER_BODY) {
3515 if((result == CURLE_OK) && (ftp->transfer != FTPTRANSFER_BODY))
3548 struct FTP *ftp = conn->data->state.proto.ftp;
3549 ftp->transfer = FTPTRANSFER_INFO;
3623 /* allocate ftp protocol specific temporary wildcard data */
3643 /* try to parse ftp url */
3898 * This should be called before calling sclose() on an ftp control connection
3943 ftp_quit() will check the state of ftp->ctl_valid. If it's ok it
3991 /* the ftp struct is already inited in ftp_connect() */
3992 struct FTP *ftp = data->state.proto.ftp;
4134 if(data->set.upload && !ftpc->file && (ftp->transfer == FTPTRANSFER_BODY)) {
4169 struct FTP *ftp = conn->data->state.proto.ftp;
4182 if(ftp->transfer != FTPTRANSFER_BODY)
4219 * ftp->ctl_valid starts out as FALSE, and gets set to TRUE if we reach the
4266 /* Unless we have asked to tunnel ftp operations through the proxy, we