diff options
author | Clément Bœsch <cboesch@gopro.com> | 2017-05-05 13:04:24 +0200 |
---|---|---|
committer | Clément Bœsch <cboesch@gopro.com> | 2017-05-05 13:04:38 +0200 |
commit | 651ee9346105b9d492e01172ab447c04d03fa32e (patch) | |
tree | e0aa99cb1538dd8198ea50e0bf3c4fb57d489177 /libavutil/md5.c | |
parent | 20e72faef6946cde8e59981ef511b824a01c5adb (diff) | |
parent | e435beb1ea5380a90774dbf51fdc8c941e486551 (diff) | |
download | ffmpeg-651ee9346105b9d492e01172ab447c04d03fa32e.tar.gz |
Merge commit 'e435beb1ea5380a90774dbf51fdc8c941e486551'
* commit 'e435beb1ea5380a90774dbf51fdc8c941e486551':
crypto: consistently use size_t as type for length parameters
Merged-by: Clément Bœsch <cboesch@gopro.com>
Diffstat (limited to 'libavutil/md5.c')
-rw-r--r-- | libavutil/md5.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/md5.c b/libavutil/md5.c index 1069ef1efe..31e69925ae 100644 --- a/libavutil/md5.c +++ b/libavutil/md5.c @@ -150,7 +150,11 @@ void av_md5_init(AVMD5 *ctx) ctx->ABCD[3] = 0x67452301; } +#if FF_API_CRYPTO_SIZE_T void av_md5_update(AVMD5 *ctx, const uint8_t *src, int len) +#else +void av_md5_update(AVMD5 *ctx, const uint8_t *src, size_t len) +#endif { const uint8_t *end; int j; @@ -200,7 +204,11 @@ void av_md5_final(AVMD5 *ctx, uint8_t *dst) AV_WL32(dst + 4 * i, ctx->ABCD[3 - i]); } +#if FF_API_CRYPTO_SIZE_T void av_md5_sum(uint8_t *dst, const uint8_t *src, const int len) +#else +void av_md5_sum(uint8_t *dst, const uint8_t *src, size_t len) +#endif { AVMD5 ctx; |