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

Diff for /src/usr.bin/ssh/auth-rhosts.c between version 1.46 and 1.47

version 1.46, 2014/12/23 22:42:48 version 1.47, 2016/03/07 19:02:43
Line 26 
Line 26 
 #include <unistd.h>  #include <unistd.h>
   
 #include "packet.h"  #include "packet.h"
 #include "buffer.h"  
 #include "uidswap.h"  #include "uidswap.h"
 #include "pathnames.h"  #include "pathnames.h"
 #include "log.h"  #include "log.h"
 #include "misc.h"  #include "misc.h"
   #include "buffer.h" /* XXX */
   #include "key.h" /* XXX */
 #include "servconf.h"  #include "servconf.h"
 #include "canohost.h"  #include "canohost.h"
 #include "key.h"  #include "sshkey.h"
 #include "hostfile.h"  #include "hostfile.h"
 #include "auth.h"  #include "auth.h"
   
Line 185 
Line 186 
 int  int
 auth_rhosts(struct passwd *pw, const char *client_user)  auth_rhosts(struct passwd *pw, const char *client_user)
 {  {
           struct ssh *ssh = active_state; /* XXX */
         const char *hostname, *ipaddr;          const char *hostname, *ipaddr;
   
         hostname = get_canonical_hostname(options.use_dns);          hostname = auth_get_canonical_hostname(ssh, options.use_dns);
         ipaddr = get_remote_ipaddr();          ipaddr = ssh_remote_ipaddr(ssh);
         return auth_rhosts2(pw, client_user, hostname, ipaddr);          return auth_rhosts2(pw, client_user, hostname, ipaddr);
 }  }
   

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47