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

Diff for /src/usr.bin/ssh/Attic/auth1.c between version 1.55.2.1 and 1.56

version 1.55.2.1, 2004/08/19 04:13:26 version 1.56, 2004/05/09 01:19:27
Line 71 
Line 71 
         int type = 0;          int type = 0;
   
         debug("Attempting authentication for %s%.100s.",          debug("Attempting authentication for %s%.100s.",
             authctxt->valid ? "" : "invalid user ", authctxt->user);              authctxt->valid ? "" : "illegal user ", authctxt->user);
   
         /* If the user has no password, accept authentication immediately. */          /* If the user has no password, accept authentication immediately. */
         if (options.password_authentication &&          if (options.password_authentication &&
Line 220 
Line 220 
                 if (authenticated)                  if (authenticated)
                         return;                          return;
   
                 if (authctxt->failures++ > options.max_authtries)                  if (authctxt->failures++ > AUTH_FAIL_MAX)
                         packet_disconnect(AUTH_FAIL_MSG, authctxt->user);                          packet_disconnect(AUTH_FAIL_MSG, authctxt->user);
   
                 packet_start(SSH_SMSG_FAILURE);                  packet_start(SSH_SMSG_FAILURE);
Line 256 
Line 256 
         if ((authctxt->pw = PRIVSEP(getpwnamallow(user))) != NULL)          if ((authctxt->pw = PRIVSEP(getpwnamallow(user))) != NULL)
                 authctxt->valid = 1;                  authctxt->valid = 1;
         else {          else {
                 debug("do_authentication: invalid user %s", user);                  debug("do_authentication: illegal user %s", user);
                 authctxt->pw = fakepw();                  authctxt->pw = fakepw();
         }          }
   
         setproctitle("%s%s", authctxt->valid ? user : "unknown",          setproctitle("%s%s", authctxt->pw ? user : "unknown",
             use_privsep ? " [net]" : "");              use_privsep ? " [net]" : "");
   
         /*          /*

Legend:
Removed from v.1.55.2.1  
changed lines
  Added in v.1.56