From ecd54fb8978d80d20330ad9f8c8d5b52e6257a32 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Wed, 3 Jul 2013 14:48:29 +0200 Subject: [PATCH] Disable POLARSSL_TIMING_C by default (only required for HAVEGE) --- include/polarssl/config.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/polarssl/config.h b/include/polarssl/config.h index d2387b051..84f4fe12b 100644 --- a/include/polarssl/config.h +++ b/include/polarssl/config.h @@ -1187,8 +1187,8 @@ * Caller: library/havege.c * * This module is used by the HAVEGE random number generator. - */ #define POLARSSL_TIMING_C + */ /** * \def POLARSSL_VERSION_C @@ -1332,6 +1332,10 @@ #error "POLARSSL_GCM_C defined, but not all prerequisites" #endif +#if defined(POLARSSL_HAVEGE_C) && !defined(POLARSSL_TIMING_C) +#error "POLARSSL_HAVEGE_C defined, but not all prerequisites" +#endif + #if defined(POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED) && !defined(POLARSSL_DHM_C) #error "POLARSSL_KEY_EXCHANGE_DHE_PSK_ENABLED defined, but not all prerequisites" #endif