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 2933 by maya, Sat Nov 18 01:29:29 2006 UTC revision 2935 by maya, Sun Nov 19 14:23:30 2006 UTC
# Line 4481  static int ssh_rsa_verify(RSA *key, u_ch Line 4481  static int ssh_rsa_verify(RSA *key, u_ch
4481          ptr = signature;          ptr = signature;
4482    
4483          // step1          // step1
4484          if (signaturelen == 0x28) {          len = get_uint32_MSBfirst(ptr);
4485                  // workaround for SSH-2.0-2.0* and SSH-2.0-2.1* (2006.11.18 maya)          ptr += 4;
4486                  ptr -= 4;          if (strncmp("ssh-rsa", ptr, len) != 0) {
4487          }                  return -4;
         else {  
                 len = get_uint32_MSBfirst(ptr);  
                 ptr += 4;  
                 if (strncmp("ssh-rsa", ptr, len) != 0) {  
                         return -4;  
                 }  
                 ptr += len;  
4488          }          }
4489            ptr += len;
4490    
4491          // step2          // step2
4492          len = get_uint32_MSBfirst(ptr);          len = get_uint32_MSBfirst(ptr);
# Line 6980  static BOOL handle_SSH2_window_adjust(PT Line 6974  static BOOL handle_SSH2_window_adjust(PT
6974    
6975  /*  /*
6976   * $Log: not supported by cvs2svn $   * $Log: not supported by cvs2svn $
6977     * Revision 1.62  2006/11/18 01:29:29  maya
6978     * SSH-2.0-2.0*, SSH-2.0-2.1* サーバのバグに対する workaround を改良した。
6979     *
6980   * Revision 1.61  2006/11/17 09:12:02  maya   * Revision 1.61  2006/11/17 09:12:02  maya
6981   * SSH-2.0-2.0*, SSH-2.0-2.1* サーバのバグに対する workaround を追加した。   * SSH-2.0-2.0*, SSH-2.0-2.1* サーバのバグに対する workaround を追加した。
6982   * バージョンチェックをせずにデータだけで判断しているので、改良の余地あり。   * バージョンチェックをせずにデータだけで判断しているので、改良の余地あり。

Legend:
Removed from v.2933  
changed lines
  Added in v.2935

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