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

Diff for /src/usr.bin/ssh/hostfile.c between version 1.66 and 1.67

version 1.66, 2015/05/04 06:10:48 version 1.67, 2016/09/17 18:00:27
Line 120 
Line 120 
         u_char salt[256], result[256];          u_char salt[256], result[256];
         char uu_salt[512], uu_result[512];          char uu_salt[512], uu_result[512];
         static char encoded[1024];          static char encoded[1024];
         u_int i, len;          u_int len;
   
         len = ssh_digest_bytes(SSH_DIGEST_SHA1);          len = ssh_digest_bytes(SSH_DIGEST_SHA1);
   
         if (name_from_hostfile == NULL) {          if (name_from_hostfile == NULL) {
                 /* Create new salt */                  /* Create new salt */
                 for (i = 0; i < len; i++)                  arc4random_buf(salt, len);
                         salt[i] = arc4random();  
         } else {          } else {
                 /* Extract salt from known host entry */                  /* Extract salt from known host entry */
                 if (extract_salt(name_from_hostfile, src_len, salt,                  if (extract_salt(name_from_hostfile, src_len, salt,

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.67