mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-25 17:35:38 +00:00
Add MPS compile time option for enabling/disabling assertions
This commit adds the compile-time option MBEDTLS_MPS_ENABLE_ASSERTIONS which controls the presence of runtime assertions in MPS code. See the documentation in the header for more information. Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
parent
108fc84b04
commit
6ed183cf00
|
@ -26,6 +26,27 @@
|
|||
#ifndef MBEDTLS_MPS_COMMON_H
|
||||
#define MBEDTLS_MPS_COMMON_H
|
||||
|
||||
/* To be populated */
|
||||
/**
|
||||
* \name SECTION: MPS Configuration
|
||||
*
|
||||
* \{
|
||||
*/
|
||||
|
||||
/*! This flag enables/disables assertions on the internal state of MPS.
|
||||
*
|
||||
* Assertions are sanity checks that should never trigger when MPS
|
||||
* is used within the bounds of its API and preconditions.
|
||||
*
|
||||
* Enabling this increases security by limiting the scope of
|
||||
* potential bugs, but comes at the cost of increased code size.
|
||||
*
|
||||
* Note: So far, there is no guiding principle as to what
|
||||
* expected conditions merit an assertion, and which don't.
|
||||
*
|
||||
* Comment this to disable assertions.
|
||||
*/
|
||||
#define MBEDTLS_MPS_ENABLE_ASSERTIONS
|
||||
|
||||
/* \} name SECTION: MPS Configuration */
|
||||
|
||||
#endif /* MBEDTLS_MPS_COMMON_H */
|
||||
|
|
Loading…
Reference in a new issue