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

Diff for /src/usr.bin/ssh/sshconnect2.c between version 1.250 and 1.251

version 1.250, 2016/09/28 20:32:42 version 1.251, 2016/12/04 23:54:02
Line 310 
Line 310 
 static int sign_and_send_pubkey(Authctxt *, Identity *);  static int sign_and_send_pubkey(Authctxt *, Identity *);
 static void pubkey_prepare(Authctxt *);  static void pubkey_prepare(Authctxt *);
 static void pubkey_cleanup(Authctxt *);  static void pubkey_cleanup(Authctxt *);
   static void pubkey_reset(Authctxt *);
 static Key *load_identity_file(Identity *);  static Key *load_identity_file(Identity *);
   
 static Authmethod *authmethod_get(char *authlist);  static Authmethod *authmethod_get(char *authlist);
Line 552 
Line 553 
         if (partial != 0) {          if (partial != 0) {
                 verbose("Authenticated with partial success.");                  verbose("Authenticated with partial success.");
                 /* reset state */                  /* reset state */
                 pubkey_cleanup(authctxt);                  pubkey_reset(authctxt);
                 pubkey_prepare(authctxt);  
         }          }
         debug("Authentications that can continue: %s", authlist);          debug("Authentications that can continue: %s", authlist);
   
Line 1406 
Line 1406 
         }          }
 }  }
   
   static void
   pubkey_reset(Authctxt *authctxt)
   {
           Identity *id;
   
           TAILQ_FOREACH(id, &authctxt->keys, next)
                   id->tried = 0;
   }
   
 static int  static int
 try_identity(Identity *id)  try_identity(Identity *id)
 {  {
Line 1454 
Line 1463 
                                 }                                  }
                                 key_free(id->key);                                  key_free(id->key);
                                 id->key = NULL;                                  id->key = NULL;
                                   id->isprivate = 0;
                         }                          }
                 }                  }
                 if (sent)                  if (sent)

Legend:
Removed from v.1.250  
changed lines
  Added in v.1.251