[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.71.2.4 and 1.71.2.5

version 1.71.2.4, 2002/06/22 07:23:16 version 1.71.2.5, 2002/10/11 14:53:06
Line 98 
Line 98 
 {  {
         Authctxt *authctxt = ctxt;          Authctxt *authctxt = ctxt;
         u_int len;          u_int len;
         int accept = 0;          int acceptit = 0;
         char *service = packet_get_string(&len);          char *service = packet_get_string(&len);
         packet_check_eom();          packet_check_eom();
   
Line 107 
Line 107 
   
         if (strcmp(service, "ssh-userauth") == 0) {          if (strcmp(service, "ssh-userauth") == 0) {
                 if (!authctxt->success) {                  if (!authctxt->success) {
                         accept = 1;                          acceptit = 1;
                         /* now we can handle user-auth requests */                          /* now we can handle user-auth requests */
                         dispatch_set(SSH2_MSG_USERAUTH_REQUEST, &input_userauth_request);                          dispatch_set(SSH2_MSG_USERAUTH_REQUEST, &input_userauth_request);
                 }                  }
         }          }
         /* XXX all other service requests are denied */          /* XXX all other service requests are denied */
   
         if (accept) {          if (acceptit) {
                 packet_start(SSH2_MSG_SERVICE_ACCEPT);                  packet_start(SSH2_MSG_SERVICE_ACCEPT);
                 packet_put_cstring(service);                  packet_put_cstring(service);
                 packet_send();                  packet_send();
Line 195 
Line 195 
                     authctxt->user);                      authctxt->user);
   
         /* Special handling for root */          /* Special handling for root */
         if (authenticated && authctxt->pw->pw_uid == 0 &&          if (!use_privsep &&
               authenticated && authctxt->pw->pw_uid == 0 &&
             !auth_root_allowed(method))              !auth_root_allowed(method))
                 authenticated = 0;                  authenticated = 0;
   

Legend:
Removed from v.1.71.2.4  
changed lines
  Added in v.1.71.2.5