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

Diff for /src/usr.bin/ssh/kexgexs.c between version 1.8 and 1.9

version 1.8, 2006/08/03 03:34:42 version 1.9, 2006/10/31 16:33:12
Line 52 
Line 52 
         Key *server_host_key;          Key *server_host_key;
         DH *dh;          DH *dh;
         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, slen, hashlen;          u_int sbloblen, klen, slen, hashlen;
         int min = -1, max = -1, nbits = -1, type;          int min = -1, max = -1, nbits = -1, type, kout;
   
         if (kex->load_host_key == NULL)          if (kex->load_host_key == NULL)
                 fatal("Cannot load hostkey");                  fatal("Cannot load hostkey");
Line 131 
Line 131 
   
         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.8  
changed lines
  Added in v.1.9