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

Diff for /src/usr.bin/tcfs/Attic/tcfsgenkey.c between version 1.2 and 1.3

version 1.2, 2000/06/19 01:00:35 version 1.3, 2000/06/19 14:24:07
Line 75 
Line 75 
         /*          /*
          * Encrypt the generated key with user password           * Encrypt the generated key with user password
          */           */
         cryptedkey = (char*)calloc(UUKEYSIZE, sizeof(char));          cryptedkey = (char*)calloc(UUKEYSIZE + 1, sizeof(char));
         if (!cryptedkey)          if (!cryptedkey)
                 tcfs_error (ER_MEM, NULL);                  tcfs_error (ER_MEM, NULL);
   
   
         if (!tcfs_encrypt_key (user, passwd, newkey, cryptedkey, USERKEY))          if (!tcfs_encrypt_key (passwd, newkey, KEYSIZE, cryptedkey, UUKEYSIZE + 1))
                 tcfs_error (ER_MEM, NULL);                  tcfs_error (ER_MEM, NULL);
   
         /*          /*

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3