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

Diff for /src/usr.bin/ssh/sshconnect.c between version 1.19 and 1.20

version 1.19, 1999/10/15 20:51:01 version 1.20, 1999/10/16 19:23:35
Line 1014 
Line 1014 
   unsigned int supported_ciphers, supported_authentications, protocol_flags;    unsigned int supported_ciphers, supported_authentications, protocol_flags;
   HostStatus host_status;    HostStatus host_status;
   HostStatus ip_status;    HostStatus ip_status;
     int host_ip_differ = 0;
   int local = (ntohl(hostaddr->sin_addr.s_addr) >> 24) == IN_LOOPBACKNET;    int local = (ntohl(hostaddr->sin_addr.s_addr) >> 24) == IN_LOOPBACKNET;
   int payload_len, clen, sum_len = 0;    int payload_len, clen, sum_len = 0;
   u_int32_t rand = 0;    u_int32_t rand = 0;
Line 1137 
Line 1138 
                                          BN_num_bits(host_key->n),                                           BN_num_bits(host_key->n),
                                          host_key->e, host_key->n,                                           host_key->e, host_key->n,
                                          ip_key->e, ip_key->n);                                           ip_key->e, ip_key->n);
     if (ip_status == HOST_CHANGED && host_status == HOST_CHANGED &&      if (host_status == HOST_CHANGED &&
         (BN_cmp(ip_key->e, file_key->e) || BN_cmp(ip_key->n, file_key->n)))          (ip_status != HOST_CHANGED ||
       ip_status = HOST_DIFFER;           (BN_cmp(ip_key->e, file_key->e) || BN_cmp(ip_key->n, file_key->n))))
         host_ip_differ = 1;
   
     RSA_free(ip_key);      RSA_free(ip_key);
   } else    } else
Line 1203 
Line 1205 
     }      }
   case HOST_CHANGED:    case HOST_CHANGED:
     if (options->check_host_ip) {      if (options->check_host_ip) {
       if (ip_status != HOST_CHANGED) {        if (host_ip_differ) {
         error("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");          error("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");
         error("@       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @");          error("@       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @");
         error("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");          error("@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@");

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20