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

Diff for /src/usr.bin/ssh/kex.c between version 1.147 and 1.148

version 1.147, 2019/01/21 10:20:12 version 1.148, 2019/01/21 10:33:49
Line 1025 
Line 1025 
         return 0;          return 0;
 }  }
   
 #ifdef WITH_OPENSSL  
 int  
 kex_derive_keys_bn(struct ssh *ssh, u_char *hash, u_int hashlen,  
     const BIGNUM *secret)  
 {  
         struct sshbuf *shared_secret;  
         int r;  
   
         if ((shared_secret = sshbuf_new()) == NULL)  
                 return SSH_ERR_ALLOC_FAIL;  
         if ((r = sshbuf_put_bignum2(shared_secret, secret)) == 0)  
                 r = kex_derive_keys(ssh, hash, hashlen, shared_secret);  
         sshbuf_free(shared_secret);  
         return r;  
 }  
 #endif  
   
 int  int
 kex_load_hostkey(struct ssh *ssh, struct sshkey **pubp, struct sshkey **prvp)  kex_load_hostkey(struct ssh *ssh, struct sshkey **pubp, struct sshkey **prvp)
 {  {

Legend:
Removed from v.1.147  
changed lines
  Added in v.1.148