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

Diff for /src/usr.bin/ssh/authfile.c between version 1.56 and 1.57

version 1.56, 2004/05/11 19:01:43 version 1.57, 2004/06/21 17:36:31
Line 72 
Line 72 
         int fd, i, cipher_num;          int fd, i, cipher_num;
         CipherContext ciphercontext;          CipherContext ciphercontext;
         Cipher *cipher;          Cipher *cipher;
         u_int32_t rand;          u_int32_t rnd;
   
         /*          /*
          * If the passphrase is empty, use SSH_CIPHER_NONE to ease converting           * If the passphrase is empty, use SSH_CIPHER_NONE to ease converting
Line 87 
Line 87 
         buffer_init(&buffer);          buffer_init(&buffer);
   
         /* Put checkbytes for checking passphrase validity. */          /* Put checkbytes for checking passphrase validity. */
         rand = arc4random();          rnd = arc4random();
         buf[0] = rand & 0xff;          buf[0] = rnd & 0xff;
         buf[1] = (rand >> 8) & 0xff;          buf[1] = (rnd >> 8) & 0xff;
         buf[2] = buf[0];          buf[2] = buf[0];
         buf[3] = buf[1];          buf[3] = buf[1];
         buffer_append(&buffer, buf, 4);          buffer_append(&buffer, buf, 4);

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57