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 4322 by maya, Sat Feb 19 07:49:51 2011 UTC revision 4327 by maya, Sun Feb 20 03:29:43 2011 UTC
# Line 4910  static void SSH2_ecdh_kex_init(PTInstVar Line 4910  static void SSH2_ecdh_kex_init(PTInstVar
4910          if (client_key == NULL) {          if (client_key == NULL) {
4911                  goto error;                  goto error;
4912          }          }
4913          switch (pvar->kex_type) {          client_key = EC_KEY_new_by_curve_name(kextype_to_cipher_nid(pvar->kex_type));
                 case KEX_ECDH_SHA2_256:  
                         client_key = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);  
                         break;  
                 case KEX_ECDH_SHA2_384:  
                         client_key = EC_KEY_new_by_curve_name(NID_secp384r1);  
                         break;  
                 case KEX_ECDH_SHA2_521:  
                         client_key = EC_KEY_new_by_curve_name(NID_secp521r1);  
                         break;  
                 default:  
                         goto error;  
         }  
4914          if (client_key == NULL) {          if (client_key == NULL) {
4915                  goto error;                  goto error;
4916          }          }

Legend:
Removed from v.4322  
changed lines
  Added in v.4327

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