[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.78 and 1.79

version 1.78, 2001/12/20 22:50:24 version 1.79, 2001/12/28 12:14:27
Line 144 
Line 144 
         u_int len;          u_int len;
         int accept = 0;          int accept = 0;
         char *service = packet_get_string(&len);          char *service = packet_get_string(&len);
         packet_done();          packet_check_eom();
   
         if (authctxt == NULL)          if (authctxt == NULL)
                 fatal("input_service_request: no authctxt");                  fatal("input_service_request: no authctxt");
Line 308 
Line 308 
         Authmethod *m = authmethod_lookup("none");          Authmethod *m = authmethod_lookup("none");
         if (m != NULL)          if (m != NULL)
                 m->enabled = NULL;                  m->enabled = NULL;
         packet_done();          packet_check_eom();
         userauth_banner();          userauth_banner();
         return authctxt->valid ? auth_password(authctxt, "") : 0;          return authctxt->valid ? auth_password(authctxt, "") : 0;
 }  }
Line 324 
Line 324 
         if (change)          if (change)
                 log("password change not supported");                  log("password change not supported");
         password = packet_get_string(&len);          password = packet_get_string(&len);
         packet_done();          packet_check_eom();
         if (authctxt->valid &&          if (authctxt->valid &&
             auth_password(authctxt, password) == 1)              auth_password(authctxt, password) == 1)
                 authenticated = 1;                  authenticated = 1;
Line 341 
Line 341 
   
         lang = packet_get_string(NULL);          lang = packet_get_string(NULL);
         devs = packet_get_string(NULL);          devs = packet_get_string(NULL);
         packet_done();          packet_check_eom();
   
         debug("keyboard-interactive devs %s", devs);          debug("keyboard-interactive devs %s", devs);
   
Line 393 
Line 393 
         if (key != NULL) {          if (key != NULL) {
                 if (have_sig) {                  if (have_sig) {
                         sig = packet_get_string(&slen);                          sig = packet_get_string(&slen);
                         packet_done();                          packet_check_eom();
                         buffer_init(&b);                          buffer_init(&b);
                         if (datafellows & SSH_OLD_SESSIONID) {                          if (datafellows & SSH_OLD_SESSIONID) {
                                 buffer_append(&b, session_id2, session_id2_len);                                  buffer_append(&b, session_id2, session_id2_len);
Line 426 
Line 426 
                         xfree(sig);                          xfree(sig);
                 } else {                  } else {
                         debug("test whether pkalg/pkblob are acceptable");                          debug("test whether pkalg/pkblob are acceptable");
                         packet_done();                          packet_check_eom();
   
                         /* XXX fake reply and always send PK_OK ? */                          /* XXX fake reply and always send PK_OK ? */
                         /*                          /*

Legend:
Removed from v.1.78  
changed lines
  Added in v.1.79