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:

committed by
Daniel Stenberg

parent
016ce4b1da
commit
bc8fc9803f
@@ -302,8 +302,8 @@ Curl_polarssl_connect(struct connectdata *conn,
|
||||
}
|
||||
|
||||
conn->ssl[sockindex].state = ssl_connection_complete;
|
||||
conn->recv = polarssl_recv;
|
||||
conn->send = polarssl_send;
|
||||
conn->recv[sockindex] = polarssl_recv;
|
||||
conn->send[sockindex] = polarssl_send;
|
||||
|
||||
/* Save the current session data for possible re-use */
|
||||
{
|
||||
|
Reference in New Issue
Block a user