[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.97 and 1.98

version 1.97, 2013/05/17 00:13:13 version 1.98, 2013/11/21 00:45:43
Line 144 
Line 144 
   
         cipher_set_key_string(&ciphercontext, cipher, passphrase,          cipher_set_key_string(&ciphercontext, cipher, passphrase,
             CIPHER_ENCRYPT);              CIPHER_ENCRYPT);
         cipher_crypt(&ciphercontext, cp,          cipher_crypt(&ciphercontext, 0, cp,
             buffer_ptr(&buffer), buffer_len(&buffer), 0, 0);              buffer_ptr(&buffer), buffer_len(&buffer), 0, 0);
         cipher_cleanup(&ciphercontext);          cipher_cleanup(&ciphercontext);
         memset(&ciphercontext, 0, sizeof(ciphercontext));          memset(&ciphercontext, 0, sizeof(ciphercontext));
Line 462 
Line 462 
         /* Rest of the buffer is encrypted.  Decrypt it using the passphrase. */          /* Rest of the buffer is encrypted.  Decrypt it using the passphrase. */
         cipher_set_key_string(&ciphercontext, cipher, passphrase,          cipher_set_key_string(&ciphercontext, cipher, passphrase,
             CIPHER_DECRYPT);              CIPHER_DECRYPT);
         cipher_crypt(&ciphercontext, cp,          cipher_crypt(&ciphercontext, 0, cp,
             buffer_ptr(&copy), buffer_len(&copy), 0, 0);              buffer_ptr(&copy), buffer_len(&copy), 0, 0);
         cipher_cleanup(&ciphercontext);          cipher_cleanup(&ciphercontext);
         memset(&ciphercontext, 0, sizeof(ciphercontext));          memset(&ciphercontext, 0, sizeof(ciphercontext));

Legend:
Removed from v.1.97  
changed lines
  Added in v.1.98