[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.85 and 1.86

version 1.85, 2000/12/21 15:10:17 version 1.86, 2000/12/27 12:30:20
Line 491 
Line 491 
                 break;                  break;
         }          }
         if (local) {          if (local) {
                 debug("Forcing accepting of host key for loopback/localhost.");                  if (options.host_key_alias == NULL) {
                 return;                          debug("Forcing accepting of host key for "
                               "loopback/localhost.");
                           return;
                   }
                   if (options.check_host_ip)
                           options.check_host_ip = 0;
         }          }
   
         /*          /*
Line 504 
Line 509 
   
         if (options.proxy_command == NULL) {          if (options.proxy_command == NULL) {
                 if (getnameinfo(hostaddr, hostaddr->sa_len, ntop, sizeof(ntop),                  if (getnameinfo(hostaddr, hostaddr->sa_len, ntop, sizeof(ntop),
                                 NULL, 0, NI_NUMERICHOST) != 0)                      NULL, 0, NI_NUMERICHOST) != 0)
                         fatal("check_host_key: getnameinfo failed");                          fatal("check_host_key: getnameinfo failed");
                 ip = xstrdup(ntop);                  ip = xstrdup(ntop);
         } else {          } else {
                 ip = xstrdup("<no hostip for proxy command>");                  ip = xstrdup("<no hostip for proxy command>");
           }
   
           /*
            * Allow the user to record the key under a different name. This is
            * useful for ssh tunneling over forwarded connections or if you run
            * multiple sshd's on different ports on the same machine.
            */
           if (options.host_key_alias != NULL) {
                   host = options.host_key_alias;
                   debug("using hostkeyalias: %s", host);
         }          }
   
         /*          /*

Legend:
Removed from v.1.85  
changed lines
  Added in v.1.86