[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.48 and 1.49

version 1.48, 2001/03/21 11:43:44 version 1.49, 2001/03/28 22:43:31
Line 77 
Line 77 
   
 /* auth */  /* auth */
 void    userauth_banner(void);  void    userauth_banner(void);
   void    userauth_reply(Authctxt *authctxt, int authenticated);
 int     userauth_none(Authctxt *authctxt);  int     userauth_none(Authctxt *authctxt);
 int     userauth_passwd(Authctxt *authctxt);  int     userauth_passwd(Authctxt *authctxt);
 int     userauth_pubkey(Authctxt *authctxt);  int     userauth_pubkey(Authctxt *authctxt);
Line 221 
Line 222 
                 debug2("input_userauth_request: try method %s", method);                  debug2("input_userauth_request: try method %s", method);
                 authenticated = m->userauth(authctxt);                  authenticated = m->userauth(authctxt);
         }          }
           userauth_finish(authctxt, authenticated, method);
   
           xfree(service);
           xfree(user);
           xfree(method);
   }
   
   void
   userauth_finish(Authctxt *authctxt, int authenticated, char *method)
   {
         if (!authctxt->valid && authenticated)          if (!authctxt->valid && authenticated)
                 fatal("INTERNAL ERROR: authenticated invalid user %s",                  fatal("INTERNAL ERROR: authenticated invalid user %s",
                     authctxt->user);                      authctxt->user);
Line 235 
Line 246 
   
         if (!authctxt->postponed)          if (!authctxt->postponed)
                 userauth_reply(authctxt, authenticated);                  userauth_reply(authctxt, authenticated);
   
         xfree(service);  
         xfree(user);  
         xfree(method);  
 }  }
   
 void  void

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