[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.6 and 1.7

version 1.6, 2000/06/19 22:42:28 version 1.7, 2000/06/19 23:06:25
Line 65 
Line 65 
                 tcfs_error(ER_CUSTOM, "Who are you?!");                  tcfs_error(ER_CUSTOM, "Who are you?!");
   
         if (!tcfs_getpwnam(user, &user_info))          if (!tcfs_getpwnam(user, &user_info))
                 tcfs_error(ER_CUSTOM, "You do not have an entry in the TCFS key database.");                  tcfs_error(ER_CUSTOM,
                       "You do not have an entry in the TCFS key database.");
   
         if (strlen(user_info->upw))          if (strlen(user_info->upw))
                 tcfs_error(ER_CUSTOM, "You already have a TCFS key.");                  tcfs_error(ER_CUSTOM, "You already have a TCFS key.");
Line 78 
Line 79 
         /*          /*
          * Encrypt the generated key with user password           * Encrypt the generated key with user password
          */           */
         cryptedkey = (char*)calloc(UUKEYSIZE + 1, 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(passwd, newkey, KEYSIZE, cryptedkey, UUKEYSIZE + 1))          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.6  
changed lines
  Added in v.1.7