aboutsummaryrefslogtreecommitdiff
path: root/src/gzip.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-12-27 23:28:39 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2010-12-27 23:28:39 +0100
commit4fa2e4dde159a62a0d15bc800a7480f29fd964b1 (patch)
tree3eb243519cb80f755a7a9d40fb417507bd16fdda /src/gzip.c
parent32c0e1c99a46f91bbec9b203894afdb99e2f5344 (diff)
downloadlibssh-4fa2e4dde159a62a0d15bc800a7480f29fd964b1.tar.gz
libssh-4fa2e4dde159a62a0d15bc800a7480f29fd964b1.tar.xz
libssh-4fa2e4dde159a62a0d15bc800a7480f29fd964b1.zip
Added compression options and allow "yes/no" setting
SSH_OPTION_COMPRESSION and SSH_OPTION_COMPRESSION_LEVEL options have been added. Now, end-level apps may simply choose to enable compression without knowing the relevant algorithms behind it.
Diffstat (limited to 'src/gzip.c')
-rw-r--r--src/gzip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gzip.c b/src/gzip.c
index c95bf9d8..cfea1e33 100644
--- a/src/gzip.c
+++ b/src/gzip.c
@@ -103,7 +103,7 @@ static ssh_buffer gzip_compress(ssh_session session,ssh_buffer source,int level)
int compress_buffer(ssh_session session, ssh_buffer buf) {
ssh_buffer dest = NULL;
- dest = gzip_compress(session, buf, 9);
+ dest = gzip_compress(session, buf, session->compressionlevel);
if (dest == NULL) {
return -1;
}