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

Diff for /src/usr.bin/ssh/sshconnect.c between version 1.310 and 1.311

version 1.310, 2019/01/19 21:31:32 version 1.311, 2019/01/19 21:36:38
Line 56 
Line 56 
 #include "authfd.h"  #include "authfd.h"
 #include "kex.h"  #include "kex.h"
   
 #include "opacket.h" /* XXX */  
 extern struct ssh *active_state; /* XXX */  
   
 struct sshkey *previous_host_key = NULL;  struct sshkey *previous_host_key = NULL;
   
 static int matching_host_key_dns = 0;  static int matching_host_key_dns = 0;
Line 1243 
Line 1240 
         ssh_kex2(ssh, host, hostaddr, port);          ssh_kex2(ssh, host, hostaddr, port);
         ssh_userauth2(ssh, local_user, server_user, host, sensitive);          ssh_userauth2(ssh, local_user, server_user, host, sensitive);
         free(local_user);          free(local_user);
 }  
   
 void  
 ssh_put_password(char *password)  
 {  
         int size;  
         char *padded;  
   
         if (datafellows & SSH_BUG_PASSWORDPAD) {  
                 packet_put_cstring(password);  
                 return;  
         }  
         size = ROUNDUP(strlen(password) + 1, 32);  
         padded = xcalloc(1, size);  
         strlcpy(padded, password, size);  
         packet_put_string(padded, size);  
         explicit_bzero(padded, size);  
         free(padded);  
 }  }
   
 /* print all known host keys for a given host, but skip keys of given type */  /* print all known host keys for a given host, but skip keys of given type */

Legend:
Removed from v.1.310  
changed lines
  Added in v.1.311