[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.7 and 1.8

version 1.7, 2001/09/17 19:27:15 version 1.8, 2001/12/27 18:22:16
Line 129 
Line 129 
                 fatal("server_host_key verification failed");                  fatal("server_host_key verification failed");
   
         /* DH paramter f, server public DH key */          /* DH paramter f, server public DH key */
         dh_server_pub = BN_new();          if ((dh_server_pub = BN_new()) == NULL)
         if (dh_server_pub == NULL)  
                 fatal("dh_server_pub == NULL");                  fatal("dh_server_pub == NULL");
         packet_get_bignum2(dh_server_pub, &dlen);          packet_get_bignum2(dh_server_pub, &dlen);
   
Line 154 
Line 153 
 #ifdef DEBUG_KEXDH  #ifdef DEBUG_KEXDH
         dump_digest("shared secret", kbuf, kout);          dump_digest("shared secret", kbuf, kout);
 #endif  #endif
         shared_secret = BN_new();          if ((shared_secret = BN_new()) == NULL)
                   fatal("kexdh_client: BN_new failed");
         BN_bin2bn(kbuf, kout, shared_secret);          BN_bin2bn(kbuf, kout, shared_secret);
         memset(kbuf, 0, klen);          memset(kbuf, 0, klen);
         xfree(kbuf);          xfree(kbuf);
Line 217 
Line 217 
                 fatal("Unsupported hostkey type %d", kex->hostkey_type);                  fatal("Unsupported hostkey type %d", kex->hostkey_type);
   
         /* key, cert */          /* key, cert */
         dh_client_pub = BN_new();          if ((dh_client_pub = BN_new()) == NULL)
         if (dh_client_pub == NULL)  
                 fatal("dh_client_pub == NULL");                  fatal("dh_client_pub == NULL");
         packet_get_bignum2(dh_client_pub, &dlen);          packet_get_bignum2(dh_client_pub, &dlen);
   
Line 244 
Line 243 
 #ifdef DEBUG_KEXDH  #ifdef DEBUG_KEXDH
         dump_digest("shared secret", kbuf, kout);          dump_digest("shared secret", kbuf, kout);
 #endif  #endif
         shared_secret = BN_new();          if ((shared_secret = BN_new()) == NULL)
                   fatal("kexdh_server: BN_new failed");
         BN_bin2bn(kbuf, kout, shared_secret);          BN_bin2bn(kbuf, kout, shared_secret);
         memset(kbuf, 0, klen);          memset(kbuf, 0, klen);
         xfree(kbuf);          xfree(kbuf);

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