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

Diff for /src/usr.bin/ssh/auth2-chall.c between version 1.34 and 1.35

version 1.34, 2008/12/09 04:32:22 version 1.35, 2012/12/02 20:34:09
Line 238 
Line 238 
         KbdintAuthctxt *kbdintctxt;          KbdintAuthctxt *kbdintctxt;
         int authenticated = 0, res;          int authenticated = 0, res;
         u_int i, nresp;          u_int i, nresp;
         char **response = NULL, *method;          char *devicename = NULL, **response = NULL;
   
         if (authctxt == NULL)          if (authctxt == NULL)
                 fatal("input_userauth_info_response: no authctxt");                  fatal("input_userauth_info_response: no authctxt");
Line 284 
Line 284 
                 /* Failure! */                  /* Failure! */
                 break;                  break;
         }          }
           devicename = kbdintctxt->device->name;
         xasprintf(&method, "keyboard-interactive/%s", kbdintctxt->device->name);  
   
         if (!authctxt->postponed) {          if (!authctxt->postponed) {
                 if (authenticated) {                  if (authenticated) {
                         auth2_challenge_stop(authctxt);                          auth2_challenge_stop(authctxt);
Line 296 
Line 294 
                         auth2_challenge_start(authctxt);                          auth2_challenge_start(authctxt);
                 }                  }
         }          }
         userauth_finish(authctxt, authenticated, method);          userauth_finish(authctxt, authenticated, "keyboard-interactive",
         xfree(method);              devicename);
 }  }
   
 void  void

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