]> git.ipfire.org Git - thirdparty/curl.git/commit
ssh: add the ability to enable compression (for SCP/SFTP)
authorViktor Szakats <vszakats@users.noreply.github.com>
Sat, 5 Aug 2017 09:26:04 +0000 (09:26 +0000)
committerJay Satiro <raysatiro@yahoo.com>
Thu, 17 Aug 2017 07:32:00 +0000 (03:32 -0400)
commitb7b4dc0d49543175ab0d9bb1cdc257a2d7f7cf0a
tree40a6f41fe368481822bc8807ef219cf279d7a500
parentd18941ea175503ba0cf0792c1622c7a4a7c4b880
ssh: add the ability to enable compression (for SCP/SFTP)

The required low-level logic was already available as part of
`libssh2` (via `LIBSSH2_FLAG_COMPRESS` `libssh2_session_flag()`[1]
option.)

This patch adds the new `libcurl` option `CURLOPT_SSH_COMPRESSION`
(boolean) and the new `curl` command-line option `--compressed-ssh`
to request this `libssh2` feature. To have compression enabled, it
is required that the SSH server supports a (zlib) compatible
compression method and that `libssh2` was built with `zlib` support
enabled.

[1] https://www.libssh2.org/libssh2_session_flag.html

Ref: https://github.com/curl/curl/issues/1732
Closes https://github.com/curl/curl/pull/1735
17 files changed:
docs/cmdline-opts/Makefile.inc
docs/cmdline-opts/compressed-ssh.d [new file with mode: 0644]
docs/libcurl/curl_easy_setopt.3
docs/libcurl/opts/CURLOPT_SSH_COMPRESSION.3 [new file with mode: 0644]
docs/libcurl/opts/Makefile.inc
docs/libcurl/symbols-in-versions
include/curl/curl.h
lib/ssh.c
lib/url.c
lib/urldata.h
packages/OS400/curl.inc.in
src/tool_cfgable.h
src/tool_getparam.c
src/tool_help.c
src/tool_operate.c
tests/data/Makefile.inc
tests/data/test642 [new file with mode: 0644]