From 9e0aad9fd60635e240f7742fa1497eced6f1cd0b Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sat, 15 May 2004 11:29:55 +0000 Subject: size_t-fication of message digest APIs. We should size_t-fy more APIs... --- crypto/evp/digest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crypto/evp/digest.c') 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; -- cgit v1.2.3