From 753313206098d4abf63d61314c2e56c49ddc8cf3 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 26 Oct 2020 11:10:49 +0100 Subject: 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 --- lib/vssh/ssh.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/vssh/ssh.h') 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, -- cgit v1.2.1