summaryrefslogtreecommitdiffstats
path: root/apps/passwd.c
diff options
context:
space:
mode:
authorNils Larsch <nils@openssl.org>2005-04-05 19:11:19 +0000
committerNils Larsch <nils@openssl.org>2005-04-05 19:11:19 +0000
commit7d727231b735750c0876089204fe46c058e3f675 (patch)
tree298aa8583aa08f1f6d06cf6aac5cb394ba70e108 /apps/passwd.c
parent69740c2b3f3bce9791d1a597c558c9829b9e7b69 (diff)
some const fixes
Diffstat (limited to 'apps/passwd.c')
-rw-r--r--apps/passwd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/passwd.c b/apps/passwd.c
index b9d9d7a36a..6965c6e090 100644
--- a/apps/passwd.c
+++ b/apps/passwd.c
@@ -359,13 +359,13 @@ static char *md5crypt(const char *passwd, const char *magic, const char *salt)
for (i = 0; i < 1000; i++)
{
EVP_DigestInit_ex(&md2,EVP_md5(), NULL);
- EVP_DigestUpdate(&md2, (i & 1) ? (unsigned char *) passwd : buf,
+ EVP_DigestUpdate(&md2, (i & 1) ? (unsigned const char *) passwd : buf,
(i & 1) ? passwd_len : sizeof buf);
if (i % 3)
EVP_DigestUpdate(&md2, salt_out, salt_len);
if (i % 7)
EVP_DigestUpdate(&md2, passwd, passwd_len);
- EVP_DigestUpdate(&md2, (i & 1) ? buf : (unsigned char *) passwd,
+ EVP_DigestUpdate(&md2, (i & 1) ? buf : (unsigned const char *) passwd,
(i & 1) ? sizeof buf : passwd_len);
EVP_DigestFinal_ex(&md2, buf, NULL);
}