diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-07-11 17:09:04 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-07-11 17:09:04 +0000 |
commit | f598cd13a3a194bf51bba32fc45751f392609898 (patch) | |
tree | 39c1639fa30263cd18bcff9b804fee3924319fa9 /crypto/evp/p5_crpt2.c | |
parent | f513939ebba7e6461319f58254f072023763cde3 (diff) |
Various changes to stop VC++ choking under Win32.
Diffstat (limited to 'crypto/evp/p5_crpt2.c')
-rw-r--r-- | crypto/evp/p5_crpt2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/evp/p5_crpt2.c b/crypto/evp/p5_crpt2.c index 2de3a2c9d2..65c4afa9bb 100644 --- a/crypto/evp/p5_crpt2.c +++ b/crypto/evp/p5_crpt2.c @@ -92,10 +92,10 @@ int PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen, /* We are unlikely to ever use more than 256 blocks (5120 bits!) * but just in case... */ - itmp[0] = (i >> 24) & 0xff; - itmp[1] = (i >> 16) & 0xff; - itmp[2] = (i >> 8) & 0xff; - itmp[3] = i & 0xff; + itmp[0] = (unsigned char)((i >> 24) & 0xff); + itmp[1] = (unsigned char)((i >> 16) & 0xff); + itmp[2] = (unsigned char)((i >> 8) & 0xff); + itmp[3] = (unsigned char)(i & 0xff); HMAC_Init(&hctx, pass, passlen, EVP_sha1()); HMAC_Update(&hctx, salt, saltlen); HMAC_Update(&hctx, itmp, 4); |