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

Diff for /src/usr.bin/ssh/Attic/kexc25519c.c between version 1.10 and 1.11

version 1.10, 2018/12/27 03:25:25 version 1.11, 2019/01/21 09:55:52
Line 142 
Line 142 
             kex->hostkey_alg, ssh->compat)) != 0)              kex->hostkey_alg, ssh->compat)) != 0)
                 goto out;                  goto out;
   
         /* save session id */  
         if (kex->session_id == NULL) {  
                 kex->session_id_len = hashlen;  
                 kex->session_id = malloc(kex->session_id_len);  
                 if (kex->session_id == NULL) {  
                         r = SSH_ERR_ALLOC_FAIL;  
                         goto out;  
                 }  
                 memcpy(kex->session_id, hash, kex->session_id_len);  
         }  
   
         if ((r = kex_derive_keys(ssh, hash, hashlen, shared_secret)) == 0)          if ((r = kex_derive_keys(ssh, hash, hashlen, shared_secret)) == 0)
                 r = kex_send_newkeys(ssh);                  r = kex_send_newkeys(ssh);
 out:  out:

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11