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 3145 by maya, Thu Sep 11 06:19:49 2008 UTC revision 3146 by maya, Thu Sep 11 06:57:52 2008 UTC
# Line 5822  static BOOL handle_SSH2_dh_kex_reply(PTI Line 5822  static BOOL handle_SSH2_dh_kex_reply(PTI
5822    
5823          if ((ret = key_verify(rsa, dsa, signature, siglen, hash, 20)) != 1) {          if ((ret = key_verify(rsa, dsa, signature, siglen, hash, 20)) != 1) {
5824                  if (ret == -3 && rsa != NULL) {                  if (ret == -3 && rsa != NULL) {
5825                          _snprintf_s(emsg_tmp, sizeof(emsg_tmp), _TRUNCATE,                          if (!pvar->settings.EnableRsaShortKeyServer) {
5826                                      "key verify error(remote rsa key length is too short %d-bit) "                                  _snprintf_s(emsg_tmp, sizeof(emsg_tmp), _TRUNCATE,
5827                                      "@ handle_SSH2_dh_kex_reply()", BN_num_bits(rsa->n));                                              "key verify error(remote rsa key length is too short %d-bit) "
5828                                                "@ handle_SSH2_dh_kex_reply()", BN_num_bits(rsa->n));
5829                            }
5830                  }                  }
5831                  else {                  else {
5832                          _snprintf_s(emsg_tmp, sizeof(emsg_tmp), _TRUNCATE,                          _snprintf_s(emsg_tmp, sizeof(emsg_tmp), _TRUNCATE,
# Line 6177  static BOOL handle_SSH2_dh_gex_reply(PTI Line 6179  static BOOL handle_SSH2_dh_gex_reply(PTI
6179    
6180          if ((ret = key_verify(rsa, dsa, signature, siglen, hash, 20)) != 1) {          if ((ret = key_verify(rsa, dsa, signature, siglen, hash, 20)) != 1) {
6181                  if (ret == -3 && rsa != NULL) {                  if (ret == -3 && rsa != NULL) {
6182                          _snprintf_s(emsg_tmp, sizeof(emsg_tmp), _TRUNCATE,                          if (!pvar->settings.EnableRsaShortKeyServer) {
6183                                      "key verify error(remote rsa key length is too short %d-bit) "                                  _snprintf_s(emsg_tmp, sizeof(emsg_tmp), _TRUNCATE,
6184                                      "@ SSH2_DH_GEX", BN_num_bits(rsa->n));                                              "key verify error(remote rsa key length is too short %d-bit) "
6185                                                "@ SSH2_DH_GEX", BN_num_bits(rsa->n));
6186                            }
6187                  }                  }
6188                  else {                  else {
6189                          _snprintf_s(emsg_tmp, sizeof(emsg_tmp), _TRUNCATE,                          _snprintf_s(emsg_tmp, sizeof(emsg_tmp), _TRUNCATE,

Legend:
Removed from v.3145  
changed lines
  Added in v.3146

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