]> git.ipfire.org Git - thirdparty/curl.git/commit
conn: add 'attach' to protocol handler, make libssh2 use it
authorDaniel Stenberg <daniel@haxx.se>
Mon, 17 May 2021 06:54:00 +0000 (08:54 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 17 May 2021 15:57:50 +0000 (17:57 +0200)
commit0c55fbab45bedb761766109d41c3da49c4bc66c6
tree536c9f6854ca50e64ede0ab86b9ae3c44338fbbb
parent904b27d18da1f7310f38b5117a0916d8b96d130c
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
24 files changed:
lib/curl_rtmp.c
lib/dict.c
lib/file.c
lib/ftp.c
lib/gopher.c
lib/http.c
lib/http2.c
lib/imap.c
lib/ldap.c
lib/mqtt.c
lib/multi.c
lib/openldap.c
lib/pop3.c
lib/rtsp.c
lib/smb.c
lib/smtp.c
lib/telnet.c
lib/tftp.c
lib/url.c
lib/urldata.h
lib/vssh/libssh.c
lib/vssh/libssh2.c
lib/vssh/ssh.h
lib/vssh/wolfssh.c