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

Diff for /src/usr.bin/ssh/kexgex.c between version 1.13 and 1.14

version 1.13, 2001/12/28 12:14:27 version 1.14, 2001/12/28 13:57:33
Line 107 
Line 107 
         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 klen, kout, slen, sbloblen;          u_int klen, kout, slen, sbloblen;
         int dlen, plen, min, max, nbits;          int plen, min, max, nbits;
         DH *dh;          DH *dh;
   
         nbits = dh_estimate(kex->we_need * 8);          nbits = dh_estimate(kex->we_need * 8);
Line 142 
Line 142 
   
         if ((p = BN_new()) == NULL)          if ((p = BN_new()) == NULL)
                 fatal("BN_new");                  fatal("BN_new");
         packet_get_bignum2(p, &dlen);          packet_get_bignum2(p);
         if ((g = BN_new()) == NULL)          if ((g = BN_new()) == NULL)
                 fatal("BN_new");                  fatal("BN_new");
         packet_get_bignum2(g, &dlen);          packet_get_bignum2(g);
         packet_check_eom();          packet_check_eom();
   
         if (BN_num_bits(p) < min || BN_num_bits(p) > max)          if (BN_num_bits(p) < min || BN_num_bits(p) > max)
Line 185 
Line 185 
         /* DH paramter f, server public DH key */          /* DH paramter f, server public DH key */
         if ((dh_server_pub = BN_new()) == NULL)          if ((dh_server_pub = BN_new()) == NULL)
                 fatal("dh_server_pub == NULL");                  fatal("dh_server_pub == NULL");
         packet_get_bignum2(dh_server_pub, &dlen);          packet_get_bignum2(dh_server_pub);
   
 #ifdef DEBUG_KEXDH  #ifdef DEBUG_KEXDH
         fprintf(stderr, "dh_server_pub= ");          fprintf(stderr, "dh_server_pub= ");
Line 261 
Line 261 
         DH *dh = 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;          u_int sbloblen, klen, kout;
         int min = -1, max = -1, nbits = -1, type, plen, dlen, slen;          int min = -1, max = -1, nbits = -1, type, plen, slen;
   
         if (kex->load_host_key == NULL)          if (kex->load_host_key == NULL)
                 fatal("Cannot load hostkey");                  fatal("Cannot load hostkey");
Line 317 
Line 317 
         /* key, cert */          /* key, cert */
         if ((dh_client_pub = BN_new()) == NULL)          if ((dh_client_pub = BN_new()) == NULL)
                 fatal("dh_client_pub == NULL");                  fatal("dh_client_pub == NULL");
         packet_get_bignum2(dh_client_pub, &dlen);          packet_get_bignum2(dh_client_pub);
   
 #ifdef DEBUG_KEXDH  #ifdef DEBUG_KEXDH
         fprintf(stderr, "dh_client_pub= ");          fprintf(stderr, "dh_client_pub= ");

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14