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

Diff for /src/usr.bin/ssh/sshconnect2.c between version 1.49 and 1.50

version 1.49, 2001/02/28 09:57:07 version 1.50, 2001/03/05 17:17:21
Line 171 
Line 171 
         debug("Sending SSH2_MSG_KEXDH_INIT.");          debug("Sending SSH2_MSG_KEXDH_INIT.");
         /* generate and send 'e', client DH public key */          /* generate and send 'e', client DH public key */
         dh = dh_new_group1();          dh = dh_new_group1();
         dh_gen_key(dh);          dh_gen_key(dh, kex->we_need * 8);
         packet_start(SSH2_MSG_KEXDH_INIT);          packet_start(SSH2_MSG_KEXDH_INIT);
         packet_put_bignum2(dh->pub_key);          packet_put_bignum2(dh->pub_key);
         packet_send();          packet_send();
Line 316 
Line 316 
         u_char *kbuf;          u_char *kbuf;
         u_char *hash;          u_char *hash;
   
         nbits = dh_estimate(kex->enc[MODE_OUT].cipher->key_len * 8);          nbits = dh_estimate(kex->we_need * 8);
   
         debug("Sending SSH2_MSG_KEX_DH_GEX_REQUEST.");          debug("Sending SSH2_MSG_KEX_DH_GEX_REQUEST.");
         packet_start(SSH2_MSG_KEX_DH_GEX_REQUEST);          packet_start(SSH2_MSG_KEX_DH_GEX_REQUEST);
Line 342 
Line 342 
         packet_get_bignum2(g, &dlen);          packet_get_bignum2(g, &dlen);
         dh = dh_new_group(g, p);          dh = dh_new_group(g, p);
   
         dh_gen_key(dh);          dh_gen_key(dh, kex->we_need * 8);
   
 #ifdef DEBUG_KEXDH  #ifdef DEBUG_KEXDH
         fprintf(stderr, "\np= ");          fprintf(stderr, "\np= ");

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.50