summaryrefslogtreecommitdiff
path: root/libavutil/sha.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-12-15 12:46:03 +0100
committerDiego Biurrun <diego@biurrun.de>2017-01-09 15:17:43 +0100
commite435beb1ea5380a90774dbf51fdc8c941e486551 (patch)
treeabfca5d84053a357e12b423938a1f3415ea0aa88 /libavutil/sha.c
parentf1af37b51033ad90e56a8d7dfcc366f2bd9d2fed (diff)
crypto: consistently use size_t as type for length parameters
size_t is the correct type to use for sizes.
Diffstat (limited to 'libavutil/sha.c')
-rw-r--r--libavutil/sha.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavutil/sha.c b/libavutil/sha.c
index 404effade2..03f93aed8c 100644
--- a/libavutil/sha.c
+++ b/libavutil/sha.c
@@ -290,7 +290,11 @@ av_cold int av_sha_init(AVSHA *ctx, int bits)
return 0;
}
-void av_sha_update(AVSHA* ctx, const uint8_t* data, unsigned int len)
+#if FF_API_CRYPTO_SIZE_T
+void av_sha_update(struct AVSHA *ctx, const uint8_t *data, unsigned int len)
+#else
+void av_sha_update(struct AVSHA *ctx, const uint8_t *data, size_t len)
+#endif
{
unsigned int i, j;