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 5553 by maya, Wed Mar 19 15:24:50 2014 UTC revision 5562 by yutakapon, Mon Mar 31 06:28:16 2014 UTC
# Line 842  static BOOL CALLBACK auth_dlg_proc(HWND Line 842  static BOOL CALLBACK auth_dlg_proc(HWND
842    
843                  switch (LOWORD(wParam)) {                  switch (LOWORD(wParam)) {
844                  case IDOK:                  case IDOK:
845                            // 認証中にサーバから切断された場合は、キャンセル扱いとする。(2014.3.31 yutaka)
846                            if (!pvar->cv->Ready) {
847                                    goto canceled;
848                            }
849    
850                          // 認証準備ができてから、認証データを送信する。早すぎると、落ちる。(2001.1.25 yutaka)                          // 認証準備ができてから、認証データを送信する。早すぎると、落ちる。(2001.1.25 yutaka)
851                          if (pvar->userauth_retry_count == 0 &&                          if (pvar->userauth_retry_count == 0 &&
852                                  ((pvar->ssh_state.status_flags & STATUS_DONT_SEND_USER_NAME) ||                                  ((pvar->ssh_state.status_flags & STATUS_DONT_SEND_USER_NAME) ||
# Line 859  static BOOL CALLBACK auth_dlg_proc(HWND Line 864  static BOOL CALLBACK auth_dlg_proc(HWND
864                          return end_auth_dlg(pvar, dlg);                          return end_auth_dlg(pvar, dlg);
865    
866                  case IDCANCEL:                  /* kill the connection */                  case IDCANCEL:                  /* kill the connection */
867    canceled:
868                          pvar->auth_state.auth_dialog = NULL;                          pvar->auth_state.auth_dialog = NULL;
869                          notify_closed_connection(pvar);                          notify_closed_connection(pvar);
870                          EndDialog(dlg, 0);                          EndDialog(dlg, 0);

Legend:
Removed from v.5553  
changed lines
  Added in v.5562

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