From 94de33140bb0d33052472632f16f731f7ef00f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 28 Jan 2015 16:32:36 +0000 Subject: [PATCH] Fix dependency that was not checked --- include/polarssl/check_config.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/polarssl/check_config.h b/include/polarssl/check_config.h index e6df92f217..62975a9b69 100644 --- a/include/polarssl/check_config.h +++ b/include/polarssl/check_config.h @@ -181,6 +181,11 @@ #error "POLARSSL_PEM_WRITE_C defined, but not all prerequisites" #endif +#if defined(POLARSSL_PK_C) && \ + ( !defined(POLARSSL_RSA_C) && !defined(POLARSSL_ECP_C) ) +#error "POLARSSL_PK_C defined, but not all prerequisites" +#endif + #if defined(POLARSSL_PK_PARSE_C) && !defined(POLARSSL_PK_C) #error "POLARSSL_PK_PARSE_C defined, but not all prerequisites" #endif