From: Remi Gacogne Date: Fri, 25 Dec 2015 15:29:26 +0000 (+0100) Subject: Fix build against old PolarSSL versions X-Git-Tag: dnsdist-1.0.0-alpha2~144^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=727b3ae9351521cd4fddcde4f637697fccc0d16f;p=pdns Fix build against old PolarSSL versions ctr_drbg_free() did not exist before PolarSSL 1.3.8 --- diff --git a/pdns/mbedtlscompat.hh b/pdns/mbedtlscompat.hh index e4601a7ef..cd66b8d5b 100644 --- a/pdns/mbedtlscompat.hh +++ b/pdns/mbedtlscompat.hh @@ -78,7 +78,11 @@ typedef md_type_t mbedtls_md_type_t; #define mbedtls_ctr_drbg_init #define mbedtls_ctr_drbg_seed ctr_drbg_init #define mbedtls_ctr_drbg_random ctr_drbg_random +#if POLARSSL_VERSION_NUMBER >= 0x01030800 #define mbedtls_ctr_drbg_free ctr_drbg_free +#else +#define mbedtls_ctr_drbg_free +#endif #define mbedtls_rsa_init rsa_init #define mbedtls_rsa_gen_key rsa_gen_key