mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
Rename Curl_pretransfersec() to *_second_connect() since it does not just
do pretransfer stuff like Curl_pretransfer().
This commit is contained in:
parent
b98faaa8c0
commit
0a3065a2f2
@ -2136,7 +2136,7 @@ CURLcode Curl_perform(struct SessionHandle *data)
|
||||
|
||||
if(res == CURLE_OK) {
|
||||
if (data->set.source_url) /* 3rd party transfer */
|
||||
res = Curl_pretransfersec(conn);
|
||||
res = Curl_second_connect(conn);
|
||||
else
|
||||
conn->sec_conn = NULL;
|
||||
}
|
||||
@ -2250,10 +2250,10 @@ Curl_Transfer(struct connectdata *c_conn, /* connection data */
|
||||
}
|
||||
|
||||
/*
|
||||
* Curl_pretransfersec() prepares the secondary connection (used for 3rd party
|
||||
* Curl_second_connect() makes the secondary connection (used for 3rd party
|
||||
* FTP transfers).
|
||||
*/
|
||||
CURLcode Curl_pretransfersec(struct connectdata *conn)
|
||||
CURLcode Curl_second_connect(struct connectdata *conn)
|
||||
{
|
||||
CURLcode status = CURLE_OK;
|
||||
struct SessionHandle *data = conn->data;
|
||||
|
@ -24,7 +24,7 @@
|
||||
***************************************************************************/
|
||||
CURLcode Curl_perform(struct SessionHandle *data);
|
||||
CURLcode Curl_pretransfer(struct SessionHandle *data);
|
||||
CURLcode Curl_pretransfersec(struct connectdata *conn);
|
||||
CURLcode Curl_second_connect(struct connectdata *conn);
|
||||
CURLcode Curl_posttransfer(struct SessionHandle *data);
|
||||
CURLcode Curl_follow(struct SessionHandle *data, char *newurl, bool retry);
|
||||
CURLcode Curl_readwrite(struct connectdata *conn, bool *done);
|
||||
|
Loading…
Reference in New Issue
Block a user