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. --- src/config.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index c651ed09..4b2c739a 100644 --- a/src/config.c +++ b/src/config.c @@ -239,11 +239,9 @@ static int ssh_config_parse_line(ssh_session session, const char *line, i = ssh_config_get_yesno(&s, -1); if (i >= 0 && *parsing) { if (i) { - ssh_options_set(session, SSH_OPTIONS_COMPRESSION_C_S, "zlib@openssh.com,zlib,none"); - ssh_options_set(session, SSH_OPTIONS_COMPRESSION_S_C, "zlib@openssh.com,zlib,none"); + ssh_options_set(session, SSH_OPTIONS_COMPRESSION, "yes"); } else { - ssh_options_set(session, SSH_OPTIONS_COMPRESSION_C_S, "none"); - ssh_options_set(session, SSH_OPTIONS_COMPRESSION_S_C, "none"); + ssh_options_set(session, SSH_OPTIONS_COMPRESSION, "no"); } } break; -- cgit v1.2.3