[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.255 and 1.256

version 1.255, 2017/03/11 23:40:26 version 1.256, 2017/04/28 03:24:53
Line 1471 
Line 1471 
 {  {
         Identity *id;          Identity *id;
         int sent = 0;          int sent = 0;
           char *fp;
   
         while ((id = TAILQ_FIRST(&authctxt->keys))) {          while ((id = TAILQ_FIRST(&authctxt->keys))) {
                 if (id->tried++)                  if (id->tried++)
Line 1485 
Line 1486 
                  */                   */
                 if (id->key != NULL) {                  if (id->key != NULL) {
                         if (try_identity(id)) {                          if (try_identity(id)) {
                                 debug("Offering %s public key: %s",                                  if ((fp = sshkey_fingerprint(id->key,
                                     key_type(id->key), id->filename);                                      options.fingerprint_hash,
                                       SSH_FP_DEFAULT)) == NULL) {
                                           error("%s: sshkey_fingerprint failed",
                                               __func__);
                                           return 0;
                                   }
                                   debug("Offering public key: %s %s %s",
                                       sshkey_type(id->key), fp, id->filename);
                                   free(fp);
                                 sent = send_pubkey_test(authctxt, id);                                  sent = send_pubkey_test(authctxt, id);
                         }                          }
                 } else {                  } else {

Legend:
Removed from v.1.255  
changed lines
  Added in v.1.256