diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-01-21 09:32:32 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-01-21 09:32:32 +0000 |
commit | 7e42cb61f75890832792c082510ec610f4c32cbe (patch) | |
tree | 3c73a5796491a7ad59dfa1d2e151141d02e276ad /lib/urldata.h | |
parent | 6c038680f9a0de30f2a0b60c1e02bfb74006c851 (diff) |
FTP third transfer support overhaul. See CHANGES for details.
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index 311149d01..0cabdf23c 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -188,12 +188,6 @@ typedef enum { NTLMSTATE_LAST } curlntlm; -/* for 3rd party transfers to decide which side that issues PASV */ -typedef enum { - CURL_TARGET_PASV, - CURL_SOURCE_PASV -} curl_pasv_side; - /* Struct used for NTLM challenge-response authentication */ struct ntlmdata { curlntlm state; @@ -614,6 +608,8 @@ struct connectdata { #endif struct connectdata *sec_conn; /* secondary connection for 3rd party transfer */ + + enum { NORMAL, SOURCE3RD, TARGET3RD } xfertype; }; /* The end of connectdata. */ @@ -869,6 +865,7 @@ struct UserDefined { struct curl_slist *quote; /* after connection is established */ struct curl_slist *postquote; /* after the transfer */ struct curl_slist *prequote; /* before the transfer, after type */ + struct curl_slist *source_quote; /* 3rd party quote */ struct curl_slist *source_prequote; /* in 3rd party transfer mode - before the transfer on source host */ struct curl_slist *source_postquote; /* in 3rd party transfer mode - after @@ -901,11 +898,8 @@ struct UserDefined { curl_off_t max_filesize; /* Maximum file size to download */ - char *source_host; /* for 3rd party transfer */ - char *source_port; /* for 3rd party transfer */ + char *source_url; /* for 3rd party transfer */ char *source_userpwd; /* for 3rd party transfer */ - char *source_path; /* for 3rd party transfer */ - curl_pasv_side pasvHost; /* for 3rd party transfer indicates passive host */ /* Here follows boolean settings that define how to behave during this session. They are STATIC, set by libcurl users or at least initially |