Develop and Download Open Source Software

Browse Subversion Repository

Diff of /branches/ssh_chacha20poly1305/ttssh2/ttxssh/ttxssh.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2890 by yutakakn, Thu Aug 3 15:05:02 2006 UTC revision 2891 by yutakakn, Sat Aug 5 03:47:49 2006 UTC
# Line 400  static void read_ssh_options(PTInstVar p Line 400  static void read_ssh_options(PTInstVar p
400          // 当該メソッドを使うとコネクションが切られてしまう。(2005.3.12 yutaka)          // 当該メソッドを使うとコネクションが切られてしまう。(2005.3.12 yutaka)
401          settings->ssh2_keyboard_interactive = GetPrivateProfileInt("TTSSH", "KeyboardInteractive", 0, fileName);          settings->ssh2_keyboard_interactive = GetPrivateProfileInt("TTSSH", "KeyboardInteractive", 0, fileName);
402    
403            // パスワード認証および公開鍵認証に使うパスワードをメモリ上に保持しておくかどうかを
404            // 表す。(2006.8.5 yutaka)
405            settings->remember_password = GetPrivateProfileInt("TTSSH", "RememberPassword", 1, fileName);
406    
407          clear_local_settings(pvar);          clear_local_settings(pvar);
408  }  }
409    
# Line 466  static void write_ssh_options(PTInstVar Line 470  static void write_ssh_options(PTInstVar
470                  settings->ssh2_keyboard_interactive ? "1" : "0",                  settings->ssh2_keyboard_interactive ? "1" : "0",
471                  fileName);                  fileName);
472    
473            // Remember password (2006.8.5 yutaka)
474            WritePrivateProfileString("TTSSH", "RememberPassword",
475                    settings->remember_password ? "1" : "0",
476                    fileName);
477  }  }
478    
479    
# Line 2942  static void PASCAL FAR TTXSetCommandLine Line 2950  static void PASCAL FAR TTXSetCommandLine
2950                          }                          }
2951    
2952                          // パスワードを覚えている場合のみ、コマンドラインに渡す。(2006.8.3 yutaka)                          // パスワードを覚えている場合のみ、コマンドラインに渡す。(2006.8.3 yutaka)
2953                          if (pvar->auth_state.cur_cred.remeber_password != 0 &&                          if (pvar->settings.remember_password &&
2954                                  pvar->auth_state.cur_cred.method == SSH_AUTH_PASSWORD) {                                  pvar->auth_state.cur_cred.method == SSH_AUTH_PASSWORD) {
2955                                  replace_blank_to_mark(pvar->auth_state.cur_cred.password, mark, sizeof(mark));                                  replace_blank_to_mark(pvar->auth_state.cur_cred.password, mark, sizeof(mark));
2956                                  _snprintf(tmp, sizeof(tmp), " /auth=password /user=%s /passwd=%s", pvar->auth_state.user, mark);                                  _snprintf(tmp, sizeof(tmp), " /auth=password /user=%s /passwd=%s", pvar->auth_state.user, mark);
2957                                  strncat(cmd, tmp, cmdlen);                                  strncat(cmd, tmp, cmdlen);
2958    
2959                          } else if (pvar->auth_state.cur_cred.remeber_password != 0 &&                          } else if (pvar->settings.remember_password &&
2960                                                  pvar->auth_state.cur_cred.method == SSH_AUTH_RSA) {                                                  pvar->auth_state.cur_cred.method == SSH_AUTH_RSA) {
2961                                  replace_blank_to_mark(pvar->auth_state.cur_cred.password, mark, sizeof(mark));                                  replace_blank_to_mark(pvar->auth_state.cur_cred.password, mark, sizeof(mark));
2962                                  _snprintf(tmp, sizeof(tmp), " /auth=publickey /user=%s /passwd=%s", pvar->auth_state.user, mark);                                  _snprintf(tmp, sizeof(tmp), " /auth=publickey /user=%s /passwd=%s", pvar->auth_state.user, mark);
# Line 3116  int CALLBACK LibMain(HANDLE hInstance, W Line 3124  int CALLBACK LibMain(HANDLE hInstance, W
3124    
3125  /*  /*
3126   * $Log: not supported by cvs2svn $   * $Log: not supported by cvs2svn $
3127     * Revision 1.33  2006/08/03 15:04:37  yutakakn
3128     * パスワードをメモリ上に保持するかどうかを決めるチェックボックスを認証ダイアログに追加した。
3129     *
3130   * Revision 1.32  2006/06/26 13:26:49  yutakakn   * Revision 1.32  2006/06/26 13:26:49  yutakakn
3131   * TTSSHのsetupダイアログの変更内容が次回接続時から反映されるようにした。   * TTSSHのsetupダイアログの変更内容が次回接続時から反映されるようにした。
3132   *   *

Legend:
Removed from v.2890  
changed lines
  Added in v.2891

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26