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 2926 by maya, Mon Oct 30 08:48:02 2006 UTC revision 2927 by maya, Mon Oct 30 13:33:31 2006 UTC
# Line 4043  static BOOL handle_SSH2_dh_gex_group(PTI Line 4043  static BOOL handle_SSH2_dh_gex_group(PTI
4043          buffer_t *msg = NULL;          buffer_t *msg = NULL;
4044          unsigned char *outmsg;          unsigned char *outmsg;
4045    
4046            notify_verbose_message(pvar, "SSH2_MSG_KEX_DH_GEX_GROUP is receiving", LOG_LEVEL_VERBOSE);
4047    
4048          // 6byte(サイズ+パディング+タイプ)を取り除いた以降のペイロード          // 6byte(サイズ+パディング+タイプ)を取り除いた以降のペイロード
4049          data = pvar->ssh_state.payload;          data = pvar->ssh_state.payload;
4050          // パケットサイズ - (パディングサイズ+1);真のパケットサイズ          // パケットサイズ - (パディングサイズ+1);真のパケットサイズ
# Line 4076  static BOOL handle_SSH2_dh_gex_group(PTI Line 4078  static BOOL handle_SSH2_dh_gex_group(PTI
4078          memcpy(outmsg, buffer_ptr(msg), len);          memcpy(outmsg, buffer_ptr(msg), len);
4079          finish_send_packet(pvar);          finish_send_packet(pvar);
4080    
4081            notify_verbose_message(pvar, "SSH2_MSG_KEX_DH_GEX_INIT was sent", LOG_LEVEL_VERBOSE);
4082    
4083          // ここで作成したDH鍵は、あとでハッシュ計算に使うため取っておく。(2004.10.31 yutaka)          // ここで作成したDH鍵は、あとでハッシュ計算に使うため取っておく。(2004.10.31 yutaka)
4084          pvar->kexdh = dh;          pvar->kexdh = dh;
4085    
# Line 4913  static BOOL handle_SSH2_dh_kex_reply(PTI Line 4917  static BOOL handle_SSH2_dh_kex_reply(PTI
4917          BIGNUM *share_key = NULL;          BIGNUM *share_key = NULL;
4918          char *hash;          char *hash;
4919          char *emsg, emsg_tmp[1024];  // error message          char *emsg, emsg_tmp[1024];  // error message
4920          Key hostkey;  // hostkey          Key hostkey;  // hostkey
4921    
4922            notify_verbose_message(pvar, "SSH2_MSG_KEXDH_REPLY is receiving", LOG_LEVEL_VERBOSE);
4923    
4924          memset(&hostkey, 0, sizeof(hostkey));          memset(&hostkey, 0, sizeof(hostkey));
4925    
# Line 5232  static BOOL handle_SSH2_dh_gex_reply(PTI Line 5238  static BOOL handle_SSH2_dh_gex_reply(PTI
5238          char *hash;          char *hash;
5239          char *emsg, emsg_tmp[1024];  // error message          char *emsg, emsg_tmp[1024];  // error message
5240          int ret;          int ret;
5241          Key hostkey;  // hostkey          Key hostkey;  // hostkey
5242    
5243            notify_verbose_message(pvar, "SSH2_MSG_KEX_DH_GEX_REPLY is receiving", LOG_LEVEL_VERBOSE);
5244    
5245          memset(&hostkey, 0, sizeof(hostkey));          memset(&hostkey, 0, sizeof(hostkey));
5246    
# Line 5430  static BOOL handle_SSH2_dh_gex_reply(PTI Line 5438  static BOOL handle_SSH2_dh_gex_reply(PTI
5438          begin_send_packet(pvar, SSH2_MSG_NEWKEYS, 0);          begin_send_packet(pvar, SSH2_MSG_NEWKEYS, 0);
5439          finish_send_packet(pvar);          finish_send_packet(pvar);
5440    
5441            notify_verbose_message(pvar, "SSH2_MSG_NEWKEYS was sent to server.", LOG_LEVEL_VERBOSE);
5442    
5443          // SSH2_MSG_NEWKEYSを送り終わったあとにキーの設定および再設定を行う          // SSH2_MSG_NEWKEYSを送り終わったあとにキーの設定および再設定を行う
5444          // 送信用の暗号鍵は SSH2_MSG_NEWKEYS の送信後に、受信用のは SSH2_MSG_NEWKEYS の          // 送信用の暗号鍵は SSH2_MSG_NEWKEYS の送信後に、受信用のは SSH2_MSG_NEWKEYS の
5445          // 受信後に再設定を行う。          // 受信後に再設定を行う。
# Line 6956  static BOOL handle_SSH2_window_adjust(PT Line 6966  static BOOL handle_SSH2_window_adjust(PT
6966    
6967  /*  /*
6968   * $Log: not supported by cvs2svn $   * $Log: not supported by cvs2svn $
6969     * Revision 1.57  2006/10/30 08:48:02  maya
6970     * SSH2_MSG_CHANNEL_EXTENDED_DATA を処理するようにした。
6971     *
6972   * Revision 1.56  2006/10/29 22:42:12  maya   * Revision 1.56  2006/10/29 22:42:12  maya
6973   * 圧縮の初期化を SSH2_MSG_NEWKEYS の送信時に変更した。   * 圧縮の初期化を SSH2_MSG_NEWKEYS の送信時に変更した。
6974   *   *

Legend:
Removed from v.2926  
changed lines
  Added in v.2927

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