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

Diff for /src/usr.bin/ssh/kexdh.c between version 1.11 and 1.12

version 1.11, 2001/12/28 13:57:33 version 1.12, 2001/12/28 14:50:54
Line 97 
Line 97 
         u_char *server_host_key_blob = NULL, *signature = NULL;          u_char *server_host_key_blob = NULL, *signature = NULL;
         u_char *kbuf, *hash;          u_char *kbuf, *hash;
         u_int klen, kout, slen, sbloblen;          u_int klen, kout, slen, sbloblen;
         int plen;  
   
         /* generate and send 'e', client DH public key */          /* generate and send 'e', client DH public key */
         dh = dh_new_group1();          dh = dh_new_group1();
Line 115 
Line 114 
 #endif  #endif
   
         debug("expecting SSH2_MSG_KEXDH_REPLY");          debug("expecting SSH2_MSG_KEXDH_REPLY");
         packet_read_expect(&plen, SSH2_MSG_KEXDH_REPLY);          packet_read_expect(SSH2_MSG_KEXDH_REPLY);
   
         /* key, cert */          /* key, cert */
         server_host_key_blob = packet_get_string(&sbloblen);          server_host_key_blob = packet_get_string(&sbloblen);
Line 201 
Line 200 
         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;          u_int sbloblen, klen, kout;
         int slen, plen;          int slen;
   
         /* generate server DH public key */          /* generate server DH public key */
         dh = dh_new_group1();          dh = dh_new_group1();
         dh_gen_key(dh, kex->we_need * 8);          dh_gen_key(dh, kex->we_need * 8);
   
         debug("expecting SSH2_MSG_KEXDH_INIT");          debug("expecting SSH2_MSG_KEXDH_INIT");
         packet_read_expect(&plen, SSH2_MSG_KEXDH_INIT);          packet_read_expect(SSH2_MSG_KEXDH_INIT);
   
         if (kex->load_host_key == NULL)          if (kex->load_host_key == NULL)
                 fatal("Cannot load hostkey");                  fatal("Cannot load hostkey");

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