[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.47 and 1.48

version 1.47, 2016/03/07 19:02:43 version 1.48, 2016/08/13 17:47:41
Line 182 
Line 182 
  * true if authentication succeeds.  If ignore_rhosts is true, only   * true if authentication succeeds.  If ignore_rhosts is true, only
  * /etc/hosts.equiv will be considered (.rhosts and .shosts are ignored).   * /etc/hosts.equiv will be considered (.rhosts and .shosts are ignored).
  */   */
   
 int  int
 auth_rhosts(struct passwd *pw, const char *client_user)  auth_rhosts2(struct passwd *pw, const char *client_user, const char *hostname,
 {  
         struct ssh *ssh = active_state; /* XXX */  
         const char *hostname, *ipaddr;  
   
         hostname = auth_get_canonical_hostname(ssh, options.use_dns);  
         ipaddr = ssh_remote_ipaddr(ssh);  
         return auth_rhosts2(pw, client_user, hostname, ipaddr);  
 }  
   
 static int  
 auth_rhosts2_raw(struct passwd *pw, const char *client_user, const char *hostname,  
     const char *ipaddr)      const char *ipaddr)
 {  {
         char buf[1024];          char buf[1024];
Line 329 
Line 317 
         /* Restore the privileged uid. */          /* Restore the privileged uid. */
         restore_uid();          restore_uid();
         return 0;          return 0;
 }  
   
 int  
 auth_rhosts2(struct passwd *pw, const char *client_user, const char *hostname,  
     const char *ipaddr)  
 {  
        return auth_rhosts2_raw(pw, client_user, hostname, ipaddr);  
 }  }

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