diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-05-17 08:54:00 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-05-17 17:57:50 +0200 |
commit | 0c55fbab45bedb761766109d41c3da49c4bc66c6 (patch) | |
tree | 536c9f6854ca50e64ede0ab86b9ae3c44338fbbb /lib/http2.c | |
parent | 904b27d18da1f7310f38b5117a0916d8b96d130c (diff) | |
download | curl-0c55fbab45bedb761766109d41c3da49c4bc66c6.tar.gz |
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
Diffstat (limited to 'lib/http2.c')
-rw-r--r-- | lib/http2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/http2.c b/lib/http2.c index bc604ce15..f194c18b2 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -319,6 +319,7 @@ static const struct Curl_handler Curl_handler_http2 = { http2_disconnect, /* disconnect */ ZERO_NULL, /* readwrite */ http2_conncheck, /* connection_check */ + ZERO_NULL, /* attach connection */ PORT_HTTP, /* defport */ CURLPROTO_HTTP, /* protocol */ CURLPROTO_HTTP, /* family */ @@ -341,6 +342,7 @@ static const struct Curl_handler Curl_handler_http2_ssl = { http2_disconnect, /* disconnect */ ZERO_NULL, /* readwrite */ http2_conncheck, /* connection_check */ + ZERO_NULL, /* attach connection */ PORT_HTTP, /* defport */ CURLPROTO_HTTPS, /* protocol */ CURLPROTO_HTTP, /* family */ |