Add MPS configuration option for state validation

See the documentation in library/mps/common.h which
this commit modifies.

Signed-off-by: Hanno Becker <hanno.becker@arm.com>
This commit is contained in:
Hanno Becker 2021-01-12 07:25:41 +00:00
parent 447e8a5ecd
commit ac267f3485
2 changed files with 81 additions and 0 deletions

View file

@ -42,6 +42,24 @@
#define MBEDTLS_MPS_ERR_BASE ( 1 << 0 )
#endif
/**
* \name SECTION: MPS general error codes
*
* \{
*/
#ifndef MBEDTLS_MPS_ERR_BASE
#define MBEDTLS_MPS_ERR_BASE ( 1 << 10 )
#endif
#define MBEDTLS_MPS_MAKE_ERROR(code) \
( -( MBEDTLS_MPS_ERR_BASE | (code) ) )
#define MBEDTLS_ERR_MPS_OPERATION_UNEXPECTED MBEDTLS_MPS_MAKE_ERROR( 0x1 )
/* \} name SECTION: MPS general error codes */
/**
* \name SECTION: MPS Reader error codes
*