From 4fa2e4dde159a62a0d15bc800a7480f29fd964b1 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 27 Dec 2010 23:28:39 +0100 Subject: 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. --- include/libssh/libssh.h | 4 +++- include/libssh/session.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index 21ab70e9..d1c1b3bd 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -296,7 +296,9 @@ enum ssh_options_e { SSH_OPTIONS_COMPRESSION_S_C, SSH_OPTIONS_PROXYCOMMAND, SSH_OPTIONS_BINDADDR, - SSH_OPTIONS_STRICTHOSTKEYCHECK + SSH_OPTIONS_STRICTHOSTKEYCHECK, + SSH_OPTIONS_COMPRESSION, + SSH_OPTIONS_COMPRESSION_LEVEL }; enum { diff --git a/include/libssh/session.h b/include/libssh/session.h index 33ef8795..a2cdfa07 100644 --- a/include/libssh/session.h +++ b/include/libssh/session.h @@ -138,6 +138,7 @@ struct ssh_session_struct { char *sshdir; char *knownhosts; char *wanted_methods[10]; + char compressionlevel; unsigned long timeout; /* seconds */ unsigned long timeout_usec; unsigned int port; -- cgit