summaryrefslogtreecommitdiff
path: root/libavformat/rtmpdh.h
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2015-05-31 23:46:56 +0300
committerMartin Storsjö <martin@martin.st>2015-06-01 10:38:54 +0300
commit63ce9fd23cfa5ac0d9a862be0da138108dc1c505 (patch)
tree989301804d28fa26eb3a3a1a7c0b861c69469f8d /libavformat/rtmpdh.h
parent84c5ff911f3f0557c8f97a964f74ceb01dd6d214 (diff)
rtmpdh: Use GMP functions directly, instead of nettle wrappers
mpz_import and mpz_export were added in GMP 4.1, in 2002. This simplifies the DH code by clarifying that it only uses pure bignum functions, no other parts of nettle/hogweed. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtmpdh.h')
-rw-r--r--libavformat/rtmpdh.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavformat/rtmpdh.h b/libavformat/rtmpdh.h
index eab0b4adc8..21ad13ea16 100644
--- a/libavformat/rtmpdh.h
+++ b/libavformat/rtmpdh.h
@@ -25,10 +25,9 @@
#include "avformat.h"
#include "config.h"
-#if CONFIG_NETTLE || CONFIG_GCRYPT
-#if CONFIG_NETTLE
+#if CONFIG_GMP || CONFIG_GCRYPT
+#if CONFIG_GMP
#include <gmp.h>
-#include <nettle/bignum.h>
typedef mpz_ptr FFBigNum;
#elif CONFIG_GCRYPT