summaryrefslogtreecommitdiffstats
path: root/libavutil/sha.h
diff options
context:
space:
mode:
authorClément Bœsch <cboesch@gopro.com>2017-05-05 13:04:24 +0200
committerClément Bœsch <cboesch@gopro.com>2017-05-05 13:04:38 +0200
commit651ee9346105b9d492e01172ab447c04d03fa32e (patch)
treee0aa99cb1538dd8198ea50e0bf3c4fb57d489177 /libavutil/sha.h
parent20e72faef6946cde8e59981ef511b824a01c5adb (diff)
parente435beb1ea5380a90774dbf51fdc8c941e486551 (diff)
downloadffmpeg-streaming-651ee9346105b9d492e01172ab447c04d03fa32e.zip
ffmpeg-streaming-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/sha.h')
-rw-r--r--libavutil/sha.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/libavutil/sha.h b/libavutil/sha.h
index c7558a8..c0180e5 100644
--- a/libavutil/sha.h
+++ b/libavutil/sha.h
@@ -27,6 +27,7 @@
#ifndef AVUTIL_SHA_H
#define AVUTIL_SHA_H
+#include <stddef.h>
#include <stdint.h>
#include "attributes.h"
@@ -69,11 +70,15 @@ int av_sha_init(struct AVSHA* context, int bits);
/**
* Update hash value.
*
- * @param context hash function context
+ * @param ctx hash function context
* @param data input data to update hash with
* @param len input data length
*/
-void av_sha_update(struct AVSHA* context, 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
/**
* Finish hashing and output digest value.
OpenPOWER on IntegriCloud