Adding early key computation config check

This commit is contained in:
Hannes Tschofenig 2020-12-03 17:35:06 +01:00
parent 2279ffd2a0
commit 3cb3db7961

View File

@ -914,6 +914,11 @@
#error "MBEDTLS_DELAYED_SERVER_CERT_VERIFICATION can only be used with MBEDTLS_SSL_KEEP_PEER_CERTIFICATE"
#endif
#if defined(MBEDTLS_EARLY_KEY_COMPUTATION) && !defined(MBEDTLS_USE_TINYCRYPT)
#error "MBEDTLS_EARLY_KEY_COMPUTATION can only be used with MBEDTLS_USE_TINYCRYPT"
#endif
/*
* Note: the dependency on TinyCrypt is reflected in several ways in the code:
*