diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-04-19 21:16:35 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-04-19 21:50:10 +0200 |
commit | 488d2b6349e3c07fec73c28a165f8d292b413362 (patch) | |
tree | 18f7e9fe4c7b2d6598efcdb244f978735284277c /libavutil/sha.c | |
parent | 31d76ec2883c04d29d1f173ea99e605a6936613a (diff) | |
download | ffmpeg-488d2b6349e3c07fec73c28a165f8d292b413362.tar.gz |
lavu: remove disabled sha1 cruft.
Diffstat (limited to 'libavutil/sha.c')
-rw-r--r-- | libavutil/sha.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/libavutil/sha.c b/libavutil/sha.c index 6d9c84ecfa..ae6069dd34 100644 --- a/libavutil/sha.c +++ b/libavutil/sha.c @@ -25,7 +25,6 @@ #include "avutil.h" #include "bswap.h" #include "sha.h" -#include "sha1.h" #include "intreadwrite.h" /** hash context */ @@ -324,29 +323,6 @@ void av_sha_final(AVSHA* ctx, uint8_t *digest) AV_WB32(digest + i*4, ctx->state[i]); } -#if LIBAVUTIL_VERSION_MAJOR < 51 -struct AVSHA1 { - AVSHA sha; -}; - -const int av_sha1_size = sizeof(struct AVSHA1); - -void av_sha1_init(struct AVSHA1* context) -{ - av_sha_init(&context->sha, 160); -} - -void av_sha1_update(struct AVSHA1* context, const uint8_t* data, unsigned int len) -{ - av_sha_update(&context->sha, data, len); -} - -void av_sha1_final(struct AVSHA1* context, uint8_t digest[20]) -{ - av_sha_final(&context->sha, digest); -} -#endif - #ifdef TEST #include <stdio.h> #undef printf |