char * php_md5_crypt_r(const char *pw, const char *salt, char *out) {
HCRYPTPROV hCryptProv;
HCRYPTHASH ctx, ctx1;
- unsigned int i, pwl, sl;
+ DWORD i, pwl, sl;
const BYTE magic_md5[4] = "$1$";
const DWORD magic_md5_len = 3;
DWORD dwHashLen;
return NULL;
}
- pwl = (unsigned int) strlen(pw);
+ pwl = (DWORD) strlen(pw);
/* Refine the salt first */
sp = salt;
}
/* get the length of the true salt */
- sl = ep - sp;
+ sl = (DWORD)(ep - sp);
/* Create an empty hash object. */
if(!CryptCreateHash(hCryptProv, CALG_MD5, 0, 0, &ctx)) {