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 2797 by yutakakn, Wed Mar 9 14:14:25 2005 UTC revision 2798 by yutakakn, Thu Mar 10 13:40:39 2005 UTC
# Line 1982  void SSH_init(PTInstVar pvar) Line 1982  void SSH_init(PTInstVar pvar)
1982          pvar->rekeying = 0;          pvar->rekeying = 0;
1983          pvar->key_done = 0;          pvar->key_done = 0;
1984          pvar->ssh2_autologin = 0;  // autologin disabled(default)          pvar->ssh2_autologin = 0;  // autologin disabled(default)
1985            pvar->userauth_retry_count = 0;
1986    
1987  }  }
1988    
# Line 4472  BOOL do_SSH2_userauth(PTInstVar pvar) Line 4473  BOOL do_SSH2_userauth(PTInstVar pvar)
4473          int len;          int len;
4474          int mode;          int mode;
4475    
4476            // SSH2 keyboard-interactive methodの初期化 (2005.1.22 yutaka)
4477            pvar->keyboard_interactive_done = 0;
4478    
4479            // すでにログイン処理を行っている場合は、SSH2_MSG_SERVICE_REQUESTの送信は
4480            // しないことにする。OpenSSHでは支障ないが、Tru64 UNIXではサーバエラーとなってしまうため。
4481            // (2005.3.10 yutaka)
4482            if (pvar->userauth_retry_count > 0) {
4483                    return handle_SSH2_authrequest(pvar);
4484                    /* NOT REACHED */
4485            }
4486    
4487          for (mode = 0 ; mode < MODE_MAX ; mode++) {          for (mode = 0 ; mode < MODE_MAX ; mode++) {
4488                  pvar->ssh2_keys[mode].mac.enabled = 1;                  pvar->ssh2_keys[mode].mac.enabled = 1;
4489          }          }
4490    
         // SSH2 keyboard-interactive methodの初期化 (2005.1.22 yutaka)  
         pvar->keyboard_interactive_done = 0;  
   
4491          // start user authentication          // start user authentication
4492          msg = buffer_init();          msg = buffer_init();
4493          if (msg == NULL) {          if (msg == NULL) {
# Line 4970  static BOOL handle_SSH2_userauth_failure Line 4979  static BOOL handle_SSH2_userauth_failure
4979          // TCP connection closed          // TCP connection closed
4980          //notify_closed_connection(pvar);          //notify_closed_connection(pvar);
4981    
4982            // retry countの追加 (2005.3.10 yutaka)
4983            pvar->userauth_retry_count++;
4984    
4985          // keyboard-interactive methodでトライして失敗した場合、次にpassword authentication method          // keyboard-interactive methodでトライして失敗した場合、次にpassword authentication method
4986          // で無条件にトライしてみる。(2005.1.22 yutaka)          // で無条件にトライしてみる。(2005.1.22 yutaka)
4987          if (pvar->keyboard_interactive_done == 1) {          if (pvar->keyboard_interactive_done == 1) {
# Line 5385  static BOOL handle_SSH2_window_adjust(PT Line 5397  static BOOL handle_SSH2_window_adjust(PT
5397    
5398  /*  /*
5399   * $Log: not supported by cvs2svn $   * $Log: not supported by cvs2svn $
5400     * Revision 1.20  2005/03/09 14:14:25  yutakakn
5401     * サーバIDに CR+LF が含まれていた場合、CRの除去ができていなかったバグを修正。
5402     *
5403   * Revision 1.19  2005/03/08 14:24:11  yutakakn   * Revision 1.19  2005/03/08 14:24:11  yutakakn
5404   * SSH2 log dump機構の追加。   * SSH2 log dump機構の追加。
5405   * とりあえず、DH_GEXにおけるkey verifyまでにトレース採取を組み込んだ。   * とりあえず、DH_GEXにおけるkey verifyまでにトレース採取を組み込んだ。

Legend:
Removed from v.2797  
changed lines
  Added in v.2798

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