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

Diff for /src/usr.bin/passwd/Attic/pwd_gensalt.c between version 1.15 and 1.16

version 1.15, 2002/11/21 15:02:03 version 1.16, 2003/04/05 15:56:27
Line 121 
Line 121 
                 strlcpy(salt, "$1$", saltlen);                  strlcpy(salt, "$1$", saltlen);
                 to64(&salt[3], arc4random(), 4);                  to64(&salt[3], arc4random(), 4);
                 to64(&salt[7], arc4random(), 4);                  to64(&salt[7], arc4random(), 4);
                 strcpy(&salt[11], "$");                  strlcpy(&salt[11], "$", saltlen - 11);
         } else if (!strcmp(now, "blowfish")) {          } else if (!strcmp(now, "blowfish")) {
                 int rounds = atoi(next);                  int rounds = atoi(next);
   

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16