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

Diff for /src/usr.bin/ssh/Attic/kexdhs.c between version 1.7 and 1.8

version 1.7, 2006/08/03 03:34:42 version 1.8, 2006/10/31 16:33:12
Line 49 
Line 49 
         DH *dh;          DH *dh;
         Key *server_host_key;          Key *server_host_key;
         u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL;          u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL;
         u_int sbloblen, klen, kout, hashlen;          u_int sbloblen, klen, hashlen, slen;
         u_int slen;          int kout;
   
         /* generate server DH public key */          /* generate server DH public key */
         switch (kex->kex_type) {          switch (kex->kex_type) {
Line 98 
Line 98 
   
         klen = DH_size(dh);          klen = DH_size(dh);
         kbuf = xmalloc(klen);          kbuf = xmalloc(klen);
         kout = DH_compute_key(kbuf, dh_client_pub, dh);          if ((kout = DH_compute_key(kbuf, dh_client_pub, dh)) < 0)
                   fatal("DH_compute_key: failed");
 #ifdef DEBUG_KEXDH  #ifdef DEBUG_KEXDH
         dump_digest("shared secret", kbuf, kout);          dump_digest("shared secret", kbuf, kout);
 #endif  #endif

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8