Develop and Download Open Source Software

Browse Subversion Repository

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

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

revision 3336 by maya, Wed Apr 22 08:17:50 2009 UTC revision 3342 by maya, Wed Apr 22 15:11:57 2009 UTC
# Line 7277  static BOOL handle_SSH2_userauth_failure Line 7277  static BOOL handle_SSH2_userauth_failure
7277                  pvar->ssh2_authlist = cstring; // 不要になったらフリーすること                  pvar->ssh2_authlist = cstring; // 不要になったらフリーすること
7278                  _snprintf_s(buf, sizeof(buf), _TRUNCATE, "method list from server: %s", cstring);                  _snprintf_s(buf, sizeof(buf), _TRUNCATE, "method list from server: %s", cstring);
7279                  notify_verbose_message(pvar, buf, LOG_LEVEL_VERBOSE);                  notify_verbose_message(pvar, buf, LOG_LEVEL_VERBOSE);
7280  #if 0  
                 if (!pvar->session_settings.CheckAuthListFirst ||  
                     pvar->ssh2_autologin == 1) {  
                         // まず none で試行して返ってきたところなので、実際のログイン処理へ  
                         do_SSH2_authrequest(pvar);  
                 }  
                 else {  
                         // TIS 用に OK を押すタイマーを仕掛ける  
                         if (pvar->ssh2_authmethod == SSH_AUTH_TIS &&  
                             pvar->auth_state.auth_dialog != NULL) {  
                                 SendMessage(pvar->auth_state.auth_dialog, WM_COMMAND, IDOK, 0);  
                         }  
                 }  
 #else  
                 // ひとまず none で試行して返ってきたところなので、実際のログイン処理へ  
7281                  if (pvar->ssh2_authmethod == SSH_AUTH_TIS &&                  if (pvar->ssh2_authmethod == SSH_AUTH_TIS &&
7282                      (pvar->ask4passwd || pvar->ssh2_autologin) &&                      pvar->ask4passwd &&
7283                        pvar->session_settings.CheckAuthListFirst &&
7284                      pvar->auth_state.auth_dialog != NULL) {                      pvar->auth_state.auth_dialog != NULL) {
7285                            // challenge で ask4passwd のとき、認証メソッド一覧を自動取得した後
7286                            // 自動的に TIS ダイアログを出すために OK を押す
7287                          SendMessage(pvar->auth_state.auth_dialog, WM_COMMAND, IDOK, 0);                          SendMessage(pvar->auth_state.auth_dialog, WM_COMMAND, IDOK, 0);
7288                  }                  }
7289                  else {                  else {
7290                            // ひとまず none で試行して返ってきたところなので、実際のログイン処理へ
7291                          do_SSH2_authrequest(pvar);                          do_SSH2_authrequest(pvar);
7292                  }                  }
7293  #endif  
7294                  return TRUE;                  return TRUE;
7295          }          }
7296    

Legend:
Removed from v.3336  
changed lines
  Added in v.3342

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