[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.346 and 1.347

version 1.346, 2021/01/27 10:05:28 version 1.347, 2021/04/03 06:18:41
Line 664 
Line 664 
         const char *note = "";          const char *note = "";
   
         if (id->key != NULL) {          if (id->key != NULL) {
              fp = sshkey_fingerprint(id->key, options.fingerprint_hash,                  fp = sshkey_fingerprint(id->key, options.fingerprint_hash,
                     SSH_FP_DEFAULT);                      SSH_FP_DEFAULT);
         }          }
         if (id->key) {          if (id->key) {
Line 1235 
Line 1235 
                         return SSH_ERR_KEY_NOT_FOUND;                          return SSH_ERR_KEY_NOT_FOUND;
                 if (id->key != NULL && !sshkey_equal_public(prv, id->key)) {                  if (id->key != NULL && !sshkey_equal_public(prv, id->key)) {
                         error_f("private key %s contents do not match public",                          error_f("private key %s contents do not match public",
                            id->filename);                              id->filename);
                         r = SSH_ERR_KEY_NOT_FOUND;                          r = SSH_ERR_KEY_NOT_FOUND;
                         goto out;                          goto out;
                 }                  }

Legend:
Removed from v.1.346  
changed lines
  Added in v.1.347