[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.20 and 1.20.8.2

version 1.20, 2002/06/30 21:59:45 version 1.20.8.2, 2005/03/10 17:15:04
Line 31 
Line 31 
 #include "packet.h"  #include "packet.h"
 #include "xmalloc.h"  #include "xmalloc.h"
 #include "dispatch.h"  #include "dispatch.h"
 #include "auth.h"  
 #include "log.h"  #include "log.h"
   
 static int auth2_challenge_start(Authctxt *);  static int auth2_challenge_start(Authctxt *);
Line 269 
Line 268 
         }          }
         packet_check_eom();          packet_check_eom();
   
         if (authctxt->valid) {          res = kbdintctxt->device->respond(kbdintctxt->ctxt, nresp, response);
                 res = kbdintctxt->device->respond(kbdintctxt->ctxt,  
                     nresp, response);  
         } else {  
                 res = -1;  
         }  
   
         for (i = 0; i < nresp; i++) {          for (i = 0; i < nresp; i++) {
                 memset(response[i], 'r', strlen(response[i]));                  memset(response[i], 'r', strlen(response[i]));
Line 286 
Line 280 
         switch (res) {          switch (res) {
         case 0:          case 0:
                 /* Success! */                  /* Success! */
                 authenticated = 1;                  authenticated = authctxt->valid ? 1 : 0;
                 break;                  break;
         case 1:          case 1:
                 /* Authentication needs further interaction */                  /* Authentication needs further interaction */

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.20.8.2