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

Diff for /src/usr.bin/ssh/auth2.c between version 1.35 and 1.36

version 1.35, 2001/02/04 13:30:11 version 1.36, 2001/02/04 15:32:22
Line 189 
Line 189 
         if ((style = strchr(user, ':')) != NULL)          if ((style = strchr(user, ':')) != NULL)
                 *style++ = 0;                  *style++ = 0;
   
         if (authctxt->attempt++ == 0) {          if (authctxt->attempt++ == 0) {
                 /* setup auth context */                  /* setup auth context */
                 struct passwd *pw = NULL;                  struct passwd *pw = NULL;
                 setproctitle("%s", user);                  setproctitle("%s", user);
Line 275 
Line 275 
         return;          return;
 }  }
   
 void  void
 userauth_reply(Authctxt *authctxt, int authenticated)  userauth_reply(Authctxt *authctxt, int authenticated)
 {  {
         char *methods;          char *methods;
Line 291 
Line 291 
                 authctxt->success = 1;                  authctxt->success = 1;
         } else {          } else {
                 if (authctxt->failures++ > AUTH_FAIL_MAX)                  if (authctxt->failures++ > AUTH_FAIL_MAX)
                         packet_disconnect(AUTH_FAIL_MSG, authctxt->user);                          packet_disconnect(AUTH_FAIL_MSG, authctxt->user);
                 methods = authmethods_get();                  methods = authmethods_get();
                 packet_start(SSH2_MSG_USERAUTH_FAILURE);                  packet_start(SSH2_MSG_USERAUTH_FAILURE);
                 packet_put_cstring(methods);                  packet_put_cstring(methods);

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36