summaryrefslogtreecommitdiff
path: root/libavutil/sha.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil/sha.h')
-rw-r--r--libavutil/sha.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/libavutil/sha.h b/libavutil/sha.h
index 8350954c4b..4c9a0c9095 100644
--- a/libavutil/sha.h
+++ b/libavutil/sha.h
@@ -23,17 +23,27 @@
#include <stdint.h>
+#include "attributes.h"
+#include "version.h"
+
/**
* @defgroup lavu_sha SHA
* @ingroup lavu_crypto
* @{
*/
-extern const int av_sha_size;
+#if FF_API_CONTEXT_SIZE
+extern attribute_deprecated const int av_sha_size;
+#endif
struct AVSHA;
/**
+ * Allocate an AVSHA context.
+ */
+struct AVSHA *av_sha_alloc(void);
+
+/**
* Initialize SHA-1 or SHA-2 hashing.
*
* @param context pointer to the function context (of size av_sha_size)