1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-02 01:17:52 +03:00

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.
This commit is contained in:
Aris Adamantiadis
2010-12-27 23:28:39 +01:00
parent 32c0e1c99a
commit 4fa2e4dde1
6 changed files with 72 additions and 21 deletions

View File

@@ -94,6 +94,7 @@ ssh_session ssh_new(void) {
session->port = 22;
session->fd = -1;
session->ssh2 = 1;
session->compressionlevel=7;
#ifdef WITH_SSH1
session->ssh1 = 1;
#else