From 727b3ae9351521cd4fddcde4f637697fccc0d16f Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 25 Dec 2015 16:29:26 +0100 Subject: [PATCH] Fix build against old PolarSSL versions ctr_drbg_free() did not exist before PolarSSL 1.3.8 --- pdns/mbedtlscompat.hh | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.40.0