Making sure that keep peer certificate option is set when server cert verification is used.

This commit is contained in:
Hannes Tschofenig 2020-12-03 15:47:31 +01:00
parent b0b1cdc059
commit c7f6d7f75c

View file

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