[BACK]Return to kexecdh.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/kexecdh.c between version 1.3 and 1.4

version 1.3, 2010/09/22 05:01:29 version 1.4, 2013/04/19 01:06:50
Line 41 
Line 41 
 #include "kex.h"  #include "kex.h"
 #include "log.h"  #include "log.h"
   
 int  
 kex_ecdh_name_to_nid(const char *kexname)  
 {  
         if (strlen(kexname) < sizeof(KEX_ECDH_SHA2_STEM) - 1)  
                 fatal("%s: kexname too short \"%s\"", __func__, kexname);  
         return key_curve_name_to_nid(kexname + sizeof(KEX_ECDH_SHA2_STEM) - 1);  
 }  
   
 const EVP_MD *  
 kex_ecdh_name_to_evpmd(const char *kexname)  
 {  
         int nid = kex_ecdh_name_to_nid(kexname);  
   
         if (nid == -1)  
                 fatal("%s: unsupported ECDH curve \"%s\"", __func__, kexname);  
         return key_ec_nid_to_evpmd(nid);  
 }  
   
 void  void
 kex_ecdh_hash(  kex_ecdh_hash(
     const EVP_MD *evp_md,      const EVP_MD *evp_md,

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4