mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -05:00
Add a config option to emulate the HMAC bug in commercial SSH v2.3.x
and earlier (namely, it uses only 16 bytes of key rather than 20). [originally from svn r706]
This commit is contained in:
@ -78,6 +78,7 @@ void save_settings (char *section, int do_host, Config *cfg) {
|
||||
cfg->cipher == CIPHER_DES ? "des" : "3des");
|
||||
write_setting_i (sesskey, "AuthTIS", cfg->try_tis_auth);
|
||||
write_setting_i (sesskey, "SshProt", cfg->sshprot);
|
||||
write_setting_i (sesskey, "BuggyMAC", cfg->buggymac);
|
||||
write_setting_s (sesskey, "PublicKeyFile", cfg->keyfile);
|
||||
write_setting_s (sesskey, "RemoteCommand", cfg->remote_cmd);
|
||||
write_setting_i (sesskey, "RFCEnviron", cfg->rfc_environ);
|
||||
@ -198,6 +199,7 @@ void load_settings (char *section, int do_host, Config *cfg) {
|
||||
cfg->cipher = CIPHER_3DES;
|
||||
}
|
||||
gppi (sesskey, "SshProt", 1, &cfg->sshprot);
|
||||
gppi (sesskey, "BuggyMAC", 0, &cfg->buggymac);
|
||||
gppi (sesskey, "AuthTIS", 0, &cfg->try_tis_auth);
|
||||
gpps (sesskey, "PublicKeyFile", "", cfg->keyfile, sizeof(cfg->keyfile));
|
||||
gpps (sesskey, "RemoteCommand", "", cfg->remote_cmd,
|
||||
|
Reference in New Issue
Block a user