mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
lib/libcrypt: remove trailing whitespace
No functional change intended. MFC after: 2 weeks (cherry picked from commit 8ef8da882ff475e3da3bde57d97593a68f7d97b2)
This commit is contained in:
parent
c2dca1b560
commit
c6961c90fd
1 changed files with 4 additions and 4 deletions
|
|
@ -57,17 +57,17 @@ crypt_nthash(const char *pw, const char *salt __unused, char *buffer)
|
|||
u_char hash[MD4_SIZE];
|
||||
const char *s;
|
||||
MD4_CTX ctx;
|
||||
|
||||
bzero(unipw, sizeof(unipw));
|
||||
|
||||
bzero(unipw, sizeof(unipw));
|
||||
/* convert to unicode (thanx Archie) */
|
||||
unipwLen = 0;
|
||||
for (s = pw; unipwLen < sizeof(unipw) / 2 && *s; s++)
|
||||
unipw[unipwLen++] = htons(*s << 8);
|
||||
|
||||
|
||||
/* Compute MD4 of Unicode password */
|
||||
MD4Init(&ctx);
|
||||
MD4Update(&ctx, (u_char *)unipw, unipwLen*sizeof(u_int16_t));
|
||||
MD4Final(hash, &ctx);
|
||||
MD4Final(hash, &ctx);
|
||||
|
||||
buffer = stpcpy(buffer, magic);
|
||||
*buffer++ = '$';
|
||||
|
|
|
|||
Loading…
Reference in a new issue