Develop and Download Open Source Software

Browse Subversion Repository

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

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

revision 3183 by maya, Wed Dec 3 16:13:27 2008 UTC revision 3207 by maya, Fri Jan 30 17:01:22 2009 UTC
# Line 239  static void init_auth_dlg(PTInstVar pvar Line 239  static void init_auth_dlg(PTInstVar pvar
239                  default_method = pvar->auth_state.failed_method;                  default_method = pvar->auth_state.failed_method;
240          }          }
241    
242          set_auth_options_status(dlg,          // ホスト確認ダイアログから抜けたとき=ウィンドウがアクティブになったとき
243                                  auth_types_to_control_IDs[default_method]);          // に SetFocus が実行され、コマンドラインで渡された認証方式が上書きされて
244            // しまうので、自動ログイン有効時は SetFocus しない (2009.1.31 maya)
245            if (!pvar->ssh2_autologin) {
246                    set_auth_options_status(dlg, auth_types_to_control_IDs[default_method]);
247    
248          if (default_method == SSH_AUTH_TIS) {                  if (default_method == SSH_AUTH_TIS) {
249                  /* we disabled the password control, so fix the focus */                          /* we disabled the password control, so fix the focus */
250                  SetFocus(GetDlgItem(dlg, IDC_SSHUSETIS));                          SetFocus(GetDlgItem(dlg, IDC_SSHUSETIS));
251          }                  }
252          else if (default_method == SSH_AUTH_PAGEANT) {                  else if (default_method == SSH_AUTH_PAGEANT) {
253                  SetFocus(GetDlgItem(dlg, IDC_SSHUSEPAGEANT));                          SetFocus(GetDlgItem(dlg, IDC_SSHUSEPAGEANT));
254                    }
255          }          }
256    
257          if (pvar->auth_state.user != NULL) {          if (pvar->auth_state.user != NULL) {

Legend:
Removed from v.3183  
changed lines
  Added in v.3207

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