[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.46 and 1.47

version 1.46, 2001/03/11 13:25:36 version 1.47, 2001/03/20 18:57:04
Line 208 
Line 208 
         /* reset state */          /* reset state */
         dispatch_set(SSH2_MSG_USERAUTH_INFO_RESPONSE, &protocol_error);          dispatch_set(SSH2_MSG_USERAUTH_INFO_RESPONSE, &protocol_error);
         authctxt->postponed = 0;          authctxt->postponed = 0;
   #ifdef BSD_AUTH
           if (authctxt->as) {
                   auth_close(authctxt->as);
                   authctxt->as = NULL;
           }
   #endif
   
         /* try to authenticate user */          /* try to authenticate user */
         m = authmethod_lookup(method);          m = authmethod_lookup(method);
Line 305 
Line 311 
                 m->enabled = NULL;                  m->enabled = NULL;
         packet_done();          packet_done();
         userauth_banner();          userauth_banner();
         return authctxt->valid ? auth_password(authctxt->pw, "") : 0;          return authctxt->valid ? auth_password(authctxt, "") : 0;
 }  }
   
 int  int
Line 321 
Line 327 
         password = packet_get_string(&len);          password = packet_get_string(&len);
         packet_done();          packet_done();
         if (authctxt->valid &&          if (authctxt->valid &&
             auth_password(authctxt->pw, password) == 1)              auth_password(authctxt, password) == 1)
                 authenticated = 1;                  authenticated = 1;
         memset(password, 0, len);          memset(password, 0, len);
         xfree(password);          xfree(password);

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