[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.328 and 1.329

version 1.328, 2020/10/04 09:45:01 version 1.329, 2020/10/07 02:22:23
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)
 {  {
         int cert_downgraded = 0;          if (verify_host_key(xxx_host, xxx_hostaddr, hostkey) == -1)
   
         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.328  
changed lines
  Added in v.1.329