- gpps (sesskey, "UserName", "", cfg->username, sizeof(cfg->username));
- gpps (sesskey, "LocalUserName", "", cfg->localusername, sizeof(cfg->localusername));
- gppi (sesskey, "NoPTY", 0, &cfg->nopty);
- gppi (sesskey, "Compression", 0, &cfg->compression);
- gppi (sesskey, "AgentFwd", 0, &cfg->agentfwd);
- {
- char cipher[10];
- gpps (sesskey, "Cipher", "3des", cipher, 10);
- if (!strcmp(cipher, "blowfish"))
- cfg->cipher = CIPHER_BLOWFISH;
- else if (!strcmp(cipher, "des"))
- cfg->cipher = CIPHER_DES;
- else if (!strcmp(cipher, "aes"))
- cfg->cipher = CIPHER_AES;
- else
- 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,
- sizeof(cfg->remote_cmd));
- gppi (sesskey, "RFCEnviron", 0, &cfg->rfc_environ);
- gppi (sesskey, "BackspaceIsDelete", 1, &cfg->bksp_is_delete);
- gppi (sesskey, "RXVTHomeEnd", 0, &cfg->rxvt_homeend);
- gppi (sesskey, "LinuxFunctionKeys", 0, &cfg->funky_type);
- gppi (sesskey, "NoApplicationKeys", 0, &cfg->no_applic_k);
- gppi (sesskey, "NoApplicationCursors", 0, &cfg->no_applic_c);
- gppi (sesskey, "ApplicationCursorKeys", 0, &cfg->app_cursor);
- gppi (sesskey, "ApplicationKeypad", 0, &cfg->app_keypad);
- gppi (sesskey, "NetHackKeypad", 0, &cfg->nethack_keypad);
- gppi (sesskey, "AltF4", 1, &cfg->alt_f4);
- gppi (sesskey, "AltSpace", 0, &cfg->alt_space);
- gppi (sesskey, "AltOnly", 0, &cfg->alt_only);
- gppi (sesskey, "ComposeKey", 0, &cfg->compose_key);
- gppi (sesskey, "CtrlAltKeys", 1, &cfg->ctrlaltkeys);
- gppi (sesskey, "LocalEcho", LD_BACKEND, &cfg->localecho);
- gppi (sesskey, "LocalEdit", LD_BACKEND, &cfg->localedit);
- gpps (sesskey, "Answerback", "PuTTY", cfg->answerback, sizeof(cfg->answerback));
- gppi (sesskey, "AlwaysOnTop", 0, &cfg->alwaysontop);
- gppi (sesskey, "HideMousePtr", 0, &cfg->hide_mouseptr);
- gppi (sesskey, "CurType", 0, &cfg->cursor_type);
- gppi (sesskey, "BlinkCur", 0, &cfg->blink_cur);
- gppi (sesskey, "Beep", 1, &cfg->beep);
- gpps (sesskey, "BellWaveFile", "", cfg->bell_wavefile,
- sizeof(cfg->bell_wavefile));
- gppi (sesskey, "BellOverload", 1, &cfg->bellovl);
- gppi (sesskey, "BellOverloadN", 5, &cfg->bellovl_n);
- gppi (sesskey, "BellOverloadT", 2, &cfg->bellovl_t);
- gppi (sesskey, "BellOverloadS", 5, &cfg->bellovl_s);
- gppi (sesskey, "ScrollbackLines", 200, &cfg->savelines);
- gppi (sesskey, "DECOriginMode", 0, &cfg->dec_om);
- gppi (sesskey, "AutoWrapMode", 1, &cfg->wrap_mode);
- gppi (sesskey, "LFImpliesCR", 0, &cfg->lfhascr);
- gppi (sesskey, "WinNameAlways", 0, &cfg->win_name_always);
- gpps (sesskey, "WinTitle", "", cfg->wintitle, sizeof(cfg->wintitle));
- gppi (sesskey, "TermWidth", 80, &cfg->width);
- gppi (sesskey, "TermHeight", 24, &cfg->height);
- gpps (sesskey, "Font", "Courier", cfg->font, sizeof(cfg->font));
- gppi (sesskey, "FontIsBold", 0, &cfg->fontisbold);
- gppi (sesskey, "FontCharSet", ANSI_CHARSET, &cfg->fontcharset);
- gppi (sesskey, "FontHeight", 10, &cfg->fontheight);
+ gpps(sesskey, "UserName", "", cfg->username, sizeof(cfg->username));
+ gpps(sesskey, "LocalUserName", "", cfg->localusername,
+ sizeof(cfg->localusername));
+ gppi(sesskey, "NoPTY", 0, &cfg->nopty);
+ gppi(sesskey, "Compression", 0, &cfg->compression);
+ gppi(sesskey, "AgentFwd", 0, &cfg->agentfwd);
+ gppi(sesskey, "ChangeUsername", 0, &cfg->change_username);
+ gprefs(sesskey, "Cipher", "\0",
+ ciphernames, CIPHER_MAX, cfg->ssh_cipherlist);
+ gppi(sesskey, "SshProt", 2, &cfg->sshprot);
+ gppi(sesskey, "SSH2DES", 0, &cfg->ssh2_des_cbc);
+ gppi(sesskey, "AuthTIS", 0, &cfg->try_tis_auth);
+ gppi(sesskey, "AuthKI", 1, &cfg->try_ki_auth);
+ gpps(sesskey, "PublicKeyFile", "", cfg->keyfile, sizeof(cfg->keyfile));
+ gpps(sesskey, "RemoteCommand", "", cfg->remote_cmd,
+ sizeof(cfg->remote_cmd));
+ gppi(sesskey, "RFCEnviron", 0, &cfg->rfc_environ);
+ gppi(sesskey, "PassiveTelnet", 0, &cfg->passive_telnet);
+ gppi(sesskey, "BackspaceIsDelete", 1, &cfg->bksp_is_delete);
+ gppi(sesskey, "RXVTHomeEnd", 0, &cfg->rxvt_homeend);
+ gppi(sesskey, "LinuxFunctionKeys", 0, &cfg->funky_type);
+ gppi(sesskey, "NoApplicationKeys", 0, &cfg->no_applic_k);
+ gppi(sesskey, "NoApplicationCursors", 0, &cfg->no_applic_c);
+ gppi(sesskey, "NoMouseReporting", 0, &cfg->no_mouse_rep);
+ gppi(sesskey, "NoRemoteResize", 0, &cfg->no_remote_resize);
+ gppi(sesskey, "NoAltScreen", 0, &cfg->no_alt_screen);
+ gppi(sesskey, "NoRemoteWinTitle", 0, &cfg->no_remote_wintitle);
+ gppi(sesskey, "NoDBackspace", 0, &cfg->no_dbackspace);
+ gppi(sesskey, "NoRemoteCharset", 0, &cfg->no_remote_charset);
+ gppi(sesskey, "ApplicationCursorKeys", 0, &cfg->app_cursor);
+ gppi(sesskey, "ApplicationKeypad", 0, &cfg->app_keypad);
+ gppi(sesskey, "NetHackKeypad", 0, &cfg->nethack_keypad);
+ gppi(sesskey, "AltF4", 1, &cfg->alt_f4);
+ gppi(sesskey, "AltSpace", 0, &cfg->alt_space);
+ gppi(sesskey, "AltOnly", 0, &cfg->alt_only);
+ gppi(sesskey, "ComposeKey", 0, &cfg->compose_key);
+ gppi(sesskey, "CtrlAltKeys", 1, &cfg->ctrlaltkeys);
+ gppi(sesskey, "TelnetKey", 0, &cfg->telnet_keyboard);
+ gppi(sesskey, "TelnetRet", 1, &cfg->telnet_newline);
+ gppi(sesskey, "LocalEcho", LD_BACKEND, &cfg->localecho);
+ gppi(sesskey, "LocalEdit", LD_BACKEND, &cfg->localedit);
+ gpps(sesskey, "Answerback", "PuTTY", cfg->answerback,
+ sizeof(cfg->answerback));
+ gppi(sesskey, "AlwaysOnTop", 0, &cfg->alwaysontop);
+ gppi(sesskey, "FullScreenOnAltEnter", 0, &cfg->fullscreenonaltenter);
+ gppi(sesskey, "HideMousePtr", 0, &cfg->hide_mouseptr);
+ gppi(sesskey, "SunkenEdge", 0, &cfg->sunken_edge);
+ gppi(sesskey, "WindowBorder", 1, &cfg->window_border);
+ gppi(sesskey, "CurType", 0, &cfg->cursor_type);
+ gppi(sesskey, "BlinkCur", 0, &cfg->blink_cur);
+ /* pedantic compiler tells me I can't use &cfg->beep as an int * :-) */
+ gppi(sesskey, "Beep", 1, &i); cfg->beep = i;
+ gppi(sesskey, "BeepInd", 0, &i); cfg->beep_ind = i;
+ gpps(sesskey, "BellWaveFile", "", cfg->bell_wavefile,
+ sizeof(cfg->bell_wavefile));
+ gppi(sesskey, "BellOverload", 1, &cfg->bellovl);
+ gppi(sesskey, "BellOverloadN", 5, &cfg->bellovl_n);
+ gppi(sesskey, "BellOverloadT", 2*TICKSPERSEC, &cfg->bellovl_t);
+ gppi(sesskey, "BellOverloadS", 5*TICKSPERSEC, &cfg->bellovl_s);
+ gppi(sesskey, "ScrollbackLines", 200, &cfg->savelines);
+ gppi(sesskey, "DECOriginMode", 0, &cfg->dec_om);
+ gppi(sesskey, "AutoWrapMode", 1, &cfg->wrap_mode);
+ gppi(sesskey, "LFImpliesCR", 0, &cfg->lfhascr);
+ gppi(sesskey, "WinNameAlways", 0, &cfg->win_name_always);
+ gpps(sesskey, "WinTitle", "", cfg->wintitle, sizeof(cfg->wintitle));
+ gppi(sesskey, "TermWidth", 80, &cfg->width);
+ gppi(sesskey, "TermHeight", 24, &cfg->height);
+#ifdef _WINDOWS
+ gpps(sesskey, "Font", "Courier New", cfg->font, sizeof(cfg->font));
+#else
+ gpps(sesskey, "Font", "fixed", cfg->font, sizeof(cfg->font));
+#endif
+ gppi(sesskey, "FontIsBold", 0, &cfg->fontisbold);
+#ifdef _WINDOWS
+ gppi(sesskey, "FontCharSet", ANSI_CHARSET, &cfg->fontcharset);
+#endif
+ gppi(sesskey, "FontHeight", 10, &cfg->fontheight);
+#ifdef _WINDOWS