[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.326 and 1.327

version 1.326, 2020/09/18 05:23:03 version 1.327, 2020/10/03 08:11:28
Line 92 
Line 92 
 static int  static int
 verify_host_key_callback(struct sshkey *hostkey, struct ssh *ssh)  verify_host_key_callback(struct sshkey *hostkey, struct ssh *ssh)
 {  {
         if (verify_host_key(xxx_host, xxx_hostaddr, hostkey) == -1)          int cert_downgraded = 0;
   
           if (verify_host_key(xxx_host, xxx_hostaddr, hostkey,
               &cert_downgraded) == -1)
                 fatal("Host key verification failed.");                  fatal("Host key verification failed.");
           if (cert_downgraded)
                   ssh->kex->flags |= KEX_HOSTCERT_CONVERT;
         return 0;          return 0;
 }  }
   

Legend:
Removed from v.1.326  
changed lines
  Added in v.1.327