summaryrefslogtreecommitdiff
path: root/lib/vssh/ssh.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-10-26 11:10:49 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-10-29 09:31:31 +0100
commit9a844625c414c5abb89b82c5c017ff25b098ada7 (patch)
treea487f03d41f6983c22023313cc34938715e6e873 /lib/vssh/ssh.h
parent5106f1dc404e1bd9c38445597d33ce32b4df7cd8 (diff)
downloadcurl-9a844625c414c5abb89b82c5c017ff25b098ada7.tar.gz
libssh2: fix transport over HTTPS proxy
The fix in #6021 was not enough. This fix makes sure SCP/SFTP content can also be transfered over a HTTPS proxy. Fixes #6113 Closes #6128
Diffstat (limited to 'lib/vssh/ssh.h')
-rw-r--r--lib/vssh/ssh.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/vssh/ssh.h b/lib/vssh/ssh.h
index 9e49993e9..bae81d654 100644
--- a/lib/vssh/ssh.h
+++ b/lib/vssh/ssh.h
@@ -182,6 +182,12 @@ struct ssh_conn {
LIBSSH2_SFTP *sftp_session; /* SFTP handle */
LIBSSH2_SFTP_HANDLE *sftp_handle;
+#ifndef CURL_DISABLE_PROXY
+ /* for HTTPS proxy storage */
+ Curl_recv *tls_recv;
+ Curl_send *tls_send;
+#endif
+
#ifdef HAVE_LIBSSH2_AGENT_API
LIBSSH2_AGENT *ssh_agent; /* proxy to ssh-agent/pageant */
struct libssh2_agent_publickey *sshagent_identity,