mirror of
https://github.com/curl/curl.git
synced 2026-08-02 11:00:27 +03:00
sendrecv: make them two pairs of send/recv to properly deal with FTPS
FTP(S) use two connections that can be set to different recv and
send functions independently, so by introducing recv+send pairs
in the same manner we already have sockets/connections we can
work with FTPS fine.
This commit fixes the FTPS regression introduced in change d64bd82.
This commit is contained in:
parent
016ce4b1da
commit
bc8fc9803f
10 changed files with 26 additions and 22 deletions
|
|
@ -466,8 +466,10 @@ Curl_sec_login(struct connectdata *conn)
|
|||
conn->mech = *m;
|
||||
conn->sec_complete = 1;
|
||||
if (conn->data_prot != prot_clear) {
|
||||
conn->recv = sec_read;
|
||||
conn->send = _sec_send;
|
||||
conn->recv[FIRSTSOCKET] = sec_read;
|
||||
conn->send[FIRSTSOCKET] = _sec_send;
|
||||
conn->recv[SECONDARYSOCKET] = sec_read;
|
||||
conn->send[SECONDARYSOCKET] = _sec_send;
|
||||
}
|
||||
conn->command_prot = prot_safe;
|
||||
/* Set the requested protection level */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue