From cc8c0f6b466df1329ab6e0f239bf3837adbb8c8d Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 15 Jan 2009 12:34:54 +0000 Subject: [PATCH] Stop warnings on WIN64 --- fips/sha/fips_standalone_sha1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fips/sha/fips_standalone_sha1.c b/fips/sha/fips_standalone_sha1.c index 058b71a20f..eec65dc39e 100644 --- a/fips/sha/fips_standalone_sha1.c +++ b/fips/sha/fips_standalone_sha1.c @@ -65,7 +65,7 @@ void OPENSSL_cleanse(void *p,size_t len) {} static void hmac_init(SHA_CTX *md_ctx,SHA_CTX *o_ctx, const char *key) { - int len=strlen(key); + size_t len=strlen(key); int i; unsigned char keymd[HMAC_MAX_MD_CBLOCK]; unsigned char pad[HMAC_MAX_MD_CBLOCK]; @@ -139,7 +139,7 @@ int main(int argc,char **argv) for( ; ; ) { char buf[1024]; - int l=fread(buf,1,sizeof buf,f); + size_t l=fread(buf,1,sizeof buf,f); if(l == 0) { -- 2.25.1