diff options
author | Diego Biurrun | 2016-12-15 12:46:03 +0100 |
---|---|---|
committer | Diego Biurrun | 2017-01-09 15:17:43 +0100 |
commit | e435beb1ea5380a90774dbf51fdc8c941e486551 (patch) | |
tree | abfca5d84053a357e12b423938a1f3415ea0aa88 /libavutil/md5.h | |
parent | f1af37b51033ad90e56a8d7dfcc366f2bd9d2fed (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/md5.h')
-rw-r--r-- | libavutil/md5.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libavutil/md5.h b/libavutil/md5.h index c26318c01d..55e7c23417 100644 --- a/libavutil/md5.h +++ b/libavutil/md5.h @@ -21,6 +21,7 @@ #ifndef AVUTIL_MD5_H #define AVUTIL_MD5_H +#include <stddef.h> #include <stdint.h> #include "attributes.h" @@ -36,9 +37,14 @@ struct AVMD5; struct AVMD5 *av_md5_alloc(void); void av_md5_init(struct AVMD5 *ctx); -void av_md5_update(struct AVMD5 *ctx, const uint8_t *src, const int len); void av_md5_final(struct AVMD5 *ctx, uint8_t *dst); +#if FF_API_CRYPTO_SIZE_T +void av_md5_update(struct AVMD5 *ctx, const uint8_t *src, const int len); void av_md5_sum(uint8_t *dst, const uint8_t *src, const int len); +#else +void av_md5_update(struct AVMD5 *ctx, const uint8_t *src, size_t len); +void av_md5_sum(uint8_t *dst, const uint8_t *src, size_t len); +#endif /** * @} |