Skip to content

Commit

Permalink
Casts now unnecessary because of changed prototype.
Browse files Browse the repository at this point in the history
  • Loading branch information
45264 committed Feb 17, 2000
1 parent c417db4 commit 73c5591
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/passwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,13 +323,13 @@ static char *apr1_crypt(const char *passwd, const char *salt)
MD5_CTX md2;

MD5_Init(&md2);
MD5_Update(&md2, (i & 1) ? (unsigned char *) passwd : buf,
(i & 1) ? passwd_len : sizeof buf);
MD5_Update(&md2, (i & 1) ? passwd : buf,
(i & 1) ? passwd_len : sizeof buf);
if (i % 3)
MD5_Update(&md2, salt_out, salt_len);
if (i % 7)
MD5_Update(&md2, passwd, passwd_len);
MD5_Update(&md2, (i & 1) ? buf : (unsigned char *) passwd,
MD5_Update(&md2, (i & 1) ? buf : passwd,
(i & 1) ? sizeof buf : passwd_len);
MD5_Final(buf, &md2);
}
Expand Down

0 comments on commit 73c5591

Please sign in to comment.