aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/hlsenc.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2016-11-23 16:42:00 +0100
committerDiego Biurrun <diego@biurrun.de>2016-11-25 18:46:53 +0100
commite122b12c88487ac8766ff4eb071856b0666f0134 (patch)
tree86b90ad795786a71da458d74c0a5c35dcb615c16 /libavformat/hlsenc.c
parentbf2f748fc74fff5272075e1fe1c07b4152421526 (diff)
downloadffmpeg-e122b12c88487ac8766ff4eb071856b0666f0134.tar.gz
build: Drop gcrypt support
GnuTLS in combination with gcrypt has been deprecated since 2010.
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r--libavformat/hlsenc.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 625531b881..05c9adb959 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -24,9 +24,7 @@
#include <config.h>
-#if CONFIG_GCRYPT
-#include <gcrypt.h>
-#elif CONFIG_OPENSSL
+#if CONFIG_OPENSSL
#include <openssl/rand.h>
#endif
@@ -86,10 +84,7 @@ typedef struct HLSContext {
static int randomize(uint8_t *buf, int len)
{
-#if CONFIG_GCRYPT
- gcry_randomize(buf, len, GCRY_VERY_STRONG_RANDOM);
- return 0;
-#elif CONFIG_OPENSSL
+#if CONFIG_OPENSSL
if (RAND_bytes(buf, len))
return 0;
return AVERROR(EIO);