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

Diff for /src/usr.bin/ssh/auth.c between version 1.46.2.2 and 1.47

version 1.46.2.2, 2004/03/04 18:18:15 version 1.47, 2003/04/08 20:21:28
Line 91 
Line 91 
         }          }
   
         if (options.num_deny_users > 0 || options.num_allow_users > 0) {          if (options.num_deny_users > 0 || options.num_allow_users > 0) {
                 hostname = get_canonical_hostname(options.use_dns);                  hostname = get_canonical_hostname(options.verify_reverse_mapping);
                 ipaddr = get_remote_ipaddr();                  ipaddr = get_remote_ipaddr();
         }          }
   
Line 153 
Line 153 
         return 1;          return 1;
 }  }
   
   Authctxt *
   authctxt_new(void)
   {
           Authctxt *authctxt = xmalloc(sizeof(*authctxt));
           memset(authctxt, 0, sizeof(*authctxt));
           return authctxt;
   }
   
 void  void
 auth_log(Authctxt *authctxt, int authenticated, char *method, char *info)  auth_log(Authctxt *authctxt, int authenticated, char *method, char *info)
 {  {
Line 462 
Line 470 
                 buffer_init(&auth_debug);                  buffer_init(&auth_debug);
                 auth_debug_init = 1;                  auth_debug_init = 1;
         }          }
 }  
   
 struct passwd *  
 fakepw(void)  
 {  
         static struct passwd fake;  
   
         memset(&fake, 0, sizeof(fake));  
         fake.pw_name = "NOUSER";  
         fake.pw_passwd =  
             "$2a$06$r3.juUaHZDlIbQaO2dS9FuYxL1W9M81R1Tc92PoSNmzvpEqLkLGrK";  
         fake.pw_gecos = "NOUSER";  
         fake.pw_uid = -1;  
         fake.pw_gid = -1;  
         fake.pw_class = "";  
         fake.pw_dir = "/nonexist";  
         fake.pw_shell = "/nonexist";  
   
         return (&fake);  
 }  }

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