diff --git a/include/polarssl/check_config.h b/include/polarssl/check_config.h index e6df92f21..62975a9b6 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