From: Hallvard Furuseth Date: Sat, 20 Feb 1999 08:13:35 +0000 (+0000) Subject: cast pw_in to const unsigned char * X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~561 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=14705241f6814447a5541f3293d77051a503f12f;p=openldap cast pw_in to const unsigned char * --- diff --git a/clients/tools/ldappasswd.c b/clients/tools/ldappasswd.c index da2473a463..30eed38e78 100644 --- a/clients/tools/ldappasswd.c +++ b/clients/tools/ldappasswd.c @@ -205,7 +205,8 @@ hash_md5 (const char *pw_in, Salt * salt) unsigned char MD5digest[16]; lutil_MD5Init (&MD5context); - lutil_MD5Update (&MD5context, pw_in, strlen(pw_in)); + lutil_MD5Update (&MD5context, + (const unsigned char *)pw_in, strlen(pw_in)); if (salt && salt->salt && salt->len) lutil_MD5Update (&MD5context, salt->salt, salt->len); lutil_MD5Final (MD5digest, &MD5context); @@ -220,7 +221,8 @@ hash_sha1 (const char *pw_in, Salt * salt) unsigned char SHA1digest[20]; lutil_SHA1Init (&SHA1context); - lutil_SHA1Update (&SHA1context, pw_in, strlen(pw_in)); + lutil_SHA1Update (&SHA1context, + (const unsigned char *)pw_in, strlen(pw_in)); if (salt && salt->salt && salt->len) lutil_SHA1Update (&SHA1context, salt->salt, salt->len); lutil_SHA1Final (SHA1digest, &SHA1context);