Implement Zlib compression, in both SSH1 and SSH2.
[u/mdw/putty] / settings.c
index b760239..b1ada59 100644 (file)
@@ -66,6 +66,7 @@ void save_settings (char *section, int do_host, Config *cfg) {
     }
     write_setting_s (sesskey, "UserName", cfg->username);
     write_setting_i (sesskey, "NoPTY", cfg->nopty);
+    write_setting_i (sesskey, "Compression", cfg->compression);
     write_setting_i (sesskey, "AgentFwd", cfg->agentfwd);
     write_setting_s (sesskey, "RemoteCmd", cfg->remote_cmd);
     write_setting_s (sesskey, "Cipher", cfg->cipher == CIPHER_BLOWFISH ? "blowfish" :
@@ -186,6 +187,7 @@ void load_settings (char *section, int do_host, Config *cfg) {
     }
     gpps (sesskey, "UserName", "", cfg->username, sizeof(cfg->username));
     gppi (sesskey, "NoPTY", 0, &cfg->nopty);
+    gppi (sesskey, "Compression", 0, &cfg->compression);
     gppi (sesskey, "AgentFwd", 0, &cfg->agentfwd);
     gpps (sesskey, "RemoteCmd", "", cfg->remote_cmd, sizeof(cfg->remote_cmd));
     {