mirror of
https://github.com/curl/curl.git
synced 2026-08-26 05:43:31 +03:00
conn: add 'attach' to protocol handler, make libssh2 use it
The libssh2 backend has SSH session associated with the connection but the callback context is the easy handle, so when a connection gets attached to a transfer, the protocol handler now allows for a custom function to get used to set things up correctly. Reported-by: Michael O'Farrell Fixes #6898 Closes #7078
This commit is contained in:
parent
904b27d18d
commit
0c55fbab45
24 changed files with 66 additions and 0 deletions
|
|
@ -74,6 +74,7 @@ const struct Curl_handler Curl_handler_gopher = {
|
|||
ZERO_NULL, /* disconnect */
|
||||
ZERO_NULL, /* readwrite */
|
||||
ZERO_NULL, /* connection_check */
|
||||
ZERO_NULL, /* attach connection */
|
||||
PORT_GOPHER, /* defport */
|
||||
CURLPROTO_GOPHER, /* protocol */
|
||||
CURLPROTO_GOPHER, /* family */
|
||||
|
|
@ -97,6 +98,7 @@ const struct Curl_handler Curl_handler_gophers = {
|
|||
ZERO_NULL, /* disconnect */
|
||||
ZERO_NULL, /* readwrite */
|
||||
ZERO_NULL, /* connection_check */
|
||||
ZERO_NULL, /* attach connection */
|
||||
PORT_GOPHER, /* defport */
|
||||
CURLPROTO_GOPHERS, /* protocol */
|
||||
CURLPROTO_GOPHER, /* family */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue