diff options
author | Andy Polyakov <appro@openssl.org> | 2015-09-28 15:56:34 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2015-09-29 18:05:29 +0200 |
commit | 16a9542a1723828c5b2dbe854a2864aa3ed2b11e (patch) | |
tree | 7a2e6288abd7c78cf574de894e4993d2ee31ca61 /engines/e_ossltest.c | |
parent | 03cbd3b8fa0ceadd69cd41dbb2353e640ace40ae (diff) |
Fix prototypes in e_ossttest.c.
Problem was exposed in mingw64 build, or in other words on P64 platform.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'engines/e_ossltest.c')
-rw-r--r-- | engines/e_ossltest.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/e_ossltest.c b/engines/e_ossltest.c index c3390268a5..e9a071ce65 100644 --- a/engines/e_ossltest.c +++ b/engines/e_ossltest.c @@ -94,7 +94,7 @@ static int ossltest_digest_nids[] = { /* MD5 */ static int digest_md5_init(EVP_MD_CTX *ctx); static int digest_md5_update(EVP_MD_CTX *ctx, const void *data, - unsigned long count); + size_t count); static int digest_md5_final(EVP_MD_CTX *ctx, unsigned char *md); static const EVP_MD digest_md5 = { @@ -115,7 +115,7 @@ static const EVP_MD digest_md5 = { /* SHA1 */ static int digest_sha1_init(EVP_MD_CTX *ctx); static int digest_sha1_update(EVP_MD_CTX *ctx, const void *data, - unsigned long count); + size_t count); static int digest_sha1_final(EVP_MD_CTX *ctx, unsigned char *md); static const EVP_MD digest_sha1 = { @@ -136,7 +136,7 @@ static const EVP_MD digest_sha1 = { /* SHA256 */ static int digest_sha256_init(EVP_MD_CTX *ctx); static int digest_sha256_update(EVP_MD_CTX *ctx, const void *data, - unsigned long count); + size_t count); static int digest_sha256_final(EVP_MD_CTX *ctx, unsigned char *md); static const EVP_MD digest_sha256 = { @@ -158,7 +158,7 @@ static const EVP_MD digest_sha256 = { static int digest_sha384_init(EVP_MD_CTX *ctx); static int digest_sha512_init(EVP_MD_CTX *ctx); static int digest_sha512_update(EVP_MD_CTX *ctx, const void *data, - unsigned long count); + size_t count); static int digest_sha384_final(EVP_MD_CTX *ctx, unsigned char *md); static int digest_sha512_final(EVP_MD_CTX *ctx, unsigned char *md); @@ -377,7 +377,7 @@ static int digest_md5_init(EVP_MD_CTX *ctx) } static int digest_md5_update(EVP_MD_CTX *ctx, const void *data, - unsigned long count) + size_t count) { return MD5_Update(data(ctx), data, (size_t)count); } @@ -404,7 +404,7 @@ static int digest_sha1_init(EVP_MD_CTX *ctx) } static int digest_sha1_update(EVP_MD_CTX *ctx, const void *data, - unsigned long count) + size_t count) { return SHA1_Update(data(ctx), data, (size_t)count); } @@ -431,7 +431,7 @@ static int digest_sha256_init(EVP_MD_CTX *ctx) } static int digest_sha256_update(EVP_MD_CTX *ctx, const void *data, - unsigned long count) + size_t count) { return SHA256_Update(data(ctx), data, (size_t)count); } @@ -463,7 +463,7 @@ static int digest_sha512_init(EVP_MD_CTX *ctx) } static int digest_sha512_update(EVP_MD_CTX *ctx, const void *data, - unsigned long count) + size_t count) { return SHA512_Update(data(ctx), data, (size_t)count); } |