X-Git-Url: http://git.videolan.org/?p=ffmpeg.git;a=blobdiff_plain;f=libavformat%2Frtmpdh.h;h=b4d6121d85292df531db39142e3a3c9c69b84b40;hp=425113f78e6ca34ea0d07cae41840b5ebfbd0205;hb=e122b12c88487ac8766ff4eb071856b0666f0134;hpb=0508faaa11bf7507ffdd655aee57c9dc5a8203f4 diff --git a/libavformat/rtmpdh.h b/libavformat/rtmpdh.h index 425113f78e..b4d6121d85 100644 --- a/libavformat/rtmpdh.h +++ b/libavformat/rtmpdh.h @@ -22,37 +22,30 @@ #ifndef AVFORMAT_RTMPDH_H #define AVFORMAT_RTMPDH_H -#include "avformat.h" +#include + #include "config.h" -#if CONFIG_NETTLE || CONFIG_GCRYPT -#if CONFIG_NETTLE +#if CONFIG_GMP #include -#include typedef mpz_ptr FFBigNum; -#elif CONFIG_GCRYPT -#include - -typedef gcry_mpi_t FFBigNum; -#endif - -typedef struct FF_DH { - FFBigNum p; - FFBigNum g; - FFBigNum pub_key; - FFBigNum priv_key; - long length; -} FF_DH; - #elif CONFIG_OPENSSL #include #include typedef BIGNUM *FFBigNum; -typedef DH FF_DH; #endif +typedef struct FF_DH { + FFBigNum p; + FFBigNum g; + FFBigNum pub_key; + FFBigNum priv_key; + long length; +} FF_DH; + + /** * Initialize a Diffie-Hellmann context. *