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 2930 by maya, Tue Nov 14 09:00:40 2006 UTC revision 2931 by maya, Fri Nov 17 09:12:02 2006 UTC
# Line 4316  static int ssh_dss_verify( Line 4316  static int ssh_dss_verify(
4316          // step1          // step1
4317          len = get_uint32_MSBfirst(ptr);          len = get_uint32_MSBfirst(ptr);
4318          ptr += 4;          ptr += 4;
4319            /*
4320          if (strncmp("ssh-dss", ptr, len) != 0) {          if (strncmp("ssh-dss", ptr, len) != 0) {
4321                  return -3;                  return -3;
4322          }          }
4323          ptr += len;          ptr += len;
4324            */
4325            // workaround for SSH-2.0-2.0* and SSH-2.0-2.1* (2006.11.17 maya)
4326            if (strncmp("ssh-dss", ptr, len) != 0) {
4327                    ptr -= 8;
4328            }
4329            else {
4330                    ptr += len;
4331            }
4332    
4333          // step2          // step2
4334          len = get_uint32_MSBfirst(ptr);          len = get_uint32_MSBfirst(ptr);
# Line 4477  static int ssh_rsa_verify(RSA *key, u_ch Line 4486  static int ssh_rsa_verify(RSA *key, u_ch
4486          // step1          // step1
4487          len = get_uint32_MSBfirst(ptr);          len = get_uint32_MSBfirst(ptr);
4488          ptr += 4;          ptr += 4;
4489            /*
4490          if (strncmp("ssh-rsa", ptr, len) != 0) {          if (strncmp("ssh-rsa", ptr, len) != 0) {
4491                  return -4;                  return -4;
4492          }          }
4493          ptr += len;          ptr += len;
4494            */
4495            // workaround for SSH-2.0-2.0* and SSH-2.0-2.1* (2006.11.17 maya)
4496            if (strncmp("ssh-rsa", ptr, len) != 0) {
4497                    ptr -= 8;
4498            }
4499            else {
4500                    ptr += len;
4501            }
4502    
4503          // step2          // step2
4504          len = get_uint32_MSBfirst(ptr);          len = get_uint32_MSBfirst(ptr);
# Line 5089  static BOOL handle_SSH2_dh_kex_reply(PTI Line 5107  static BOOL handle_SSH2_dh_kex_reply(PTI
5107    
5108          kex_derive_keys(pvar, pvar->we_need, hash, share_key, pvar->session_id, pvar->session_id_len);          kex_derive_keys(pvar, pvar->we_need, hash, share_key, pvar->session_id, pvar->session_id_len);
5109    
   
5110          // KEX finish          // KEX finish
5111          begin_send_packet(pvar, SSH2_MSG_NEWKEYS, 0);          begin_send_packet(pvar, SSH2_MSG_NEWKEYS, 0);
5112          finish_send_packet(pvar);          finish_send_packet(pvar);
# Line 6969  static BOOL handle_SSH2_window_adjust(PT Line 6986  static BOOL handle_SSH2_window_adjust(PT
6986    
6987  /*  /*
6988   * $Log: not supported by cvs2svn $   * $Log: not supported by cvs2svn $
6989     * Revision 1.60  2006/11/14 09:00:40  maya
6990     * エラーメッセージを修正した。
6991     *
6992   * Revision 1.59  2006/11/08 16:20:14  maya   * Revision 1.59  2006/11/08 16:20:14  maya
6993   * デバッグ用コードを追加した。   * デバッグ用コードを追加した。
6994   *   *

Legend:
Removed from v.2930  
changed lines
  Added in v.2931

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