CERTS_C depends on PEM_PARSE_C

This commit is contained in:
Manuel Pégourié-Gonnard 2013-10-27 14:35:02 +01:00 committed by Paul Bakker
parent 7c3291ea87
commit 18dc0e2746

View File

@ -916,6 +916,8 @@
* Module: library/certs.c * Module: library/certs.c
* Caller: * Caller:
* *
* Requires: POLARSSL_PEM_PARSE_C
*
* This module is used for testing (ssl_client/server). * This module is used for testing (ssl_client/server).
*/ */
#define POLARSSL_CERTS_C #define POLARSSL_CERTS_C
@ -1721,14 +1723,18 @@
/* /*
* Sanity checks on defines and dependencies * Sanity checks on defines and dependencies
*/ */
#if defined(POLARSSL_DHM_C) && !defined(POLARSSL_BIGNUM_C) #if defined(POLARSSL_CERTS_C) && !defined(POLARSSL_PEM_PARSE_C)
#error "POLARSSL_DHM_C defined, but not all prerequisites" #error "POLARSSL_CERTS_C defined, but not all prerequisites"
#endif #endif
#if defined(POLARSSL_CTR_DRBG_C) && !defined(POLARSSL_AES_C) #if defined(POLARSSL_CTR_DRBG_C) && !defined(POLARSSL_AES_C)
#error "POLARSSL_CTR_DRBG_C defined, but not all prerequisites" #error "POLARSSL_CTR_DRBG_C defined, but not all prerequisites"
#endif #endif
#if defined(POLARSSL_DHM_C) && !defined(POLARSSL_BIGNUM_C)
#error "POLARSSL_DHM_C defined, but not all prerequisites"
#endif
#if defined(POLARSSL_ECDH_C) && !defined(POLARSSL_ECP_C) #if defined(POLARSSL_ECDH_C) && !defined(POLARSSL_ECP_C)
#error "POLARSSL_ECDH_C defined, but not all prerequisites" #error "POLARSSL_ECDH_C defined, but not all prerequisites"
#endif #endif