aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/evp/digest.c
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2004-05-15 11:29:55 +0000
committerAndy Polyakov <appro@openssl.org>2004-05-15 11:29:55 +0000
commit9e0aad9fd60635e240f7742fa1497eced6f1cd0b (patch)
tree3bcdb1f59b421e626a2c94ea743ccc4d18628c1c /crypto/evp/digest.c
parent1c7a0e2856bce20267174375fd66007fa172354d (diff)
downloadopenssl-9e0aad9fd60635e240f7742fa1497eced6f1cd0b.tar.gz
size_t-fication of message digest APIs. We should size_t-fy more APIs...
Diffstat (limited to 'crypto/evp/digest.c')
-rw-r--r--crypto/evp/digest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/evp/digest.c b/crypto/evp/digest.c
index bd014ac81d..7d8421079b 100644
--- a/crypto/evp/digest.c
+++ b/crypto/evp/digest.c
@@ -208,9 +208,9 @@ skip_to_init:
}
int EVP_DigestUpdate(EVP_MD_CTX *ctx, const void *data,
- unsigned int count)
+ size_t count)
{
- return ctx->digest->update(ctx,data,(unsigned long)count);
+ return ctx->digest->update(ctx,data,count);
}
/* The caller can assume that this removes any secret data from the context */
@@ -285,7 +285,7 @@ int EVP_MD_CTX_copy_ex(EVP_MD_CTX *out, const EVP_MD_CTX *in)
return 1;
}
-int EVP_Digest(const void *data, unsigned int count,
+int EVP_Digest(const void *data, size_t count,
unsigned char *md, unsigned int *size, const EVP_MD *type, ENGINE *impl)
{
EVP_MD_CTX ctx;