Update mps_common.h
Signed-off-by: Simon <siwon_97@hotmail.com>
This commit is contained in:
parent
52f83dc471
commit
5205fb42a1
1 changed files with 2 additions and 2 deletions
|
@ -169,7 +169,7 @@
|
|||
*
|
||||
*/
|
||||
typedef size_t mbedtls_mps_stored_size_t;
|
||||
#define MBEDTLS_MPS_STORED_SIZE_MAX ( (mbedtls_mps_stored_size_t) -1 )
|
||||
#define MBEDTLS_MPS_STORED_SIZE_MAX (SIZE_MAX)
|
||||
|
||||
/** \brief The type of buffer sizes and offsets used in the MPS API
|
||||
* and implementation.
|
||||
|
@ -183,7 +183,7 @@ typedef size_t mbedtls_mps_stored_size_t;
|
|||
* so almost 10%.
|
||||
*/
|
||||
typedef size_t mbedtls_mps_size_t;
|
||||
#define MBEDTLS_MPS_SIZE_MAX ( (mbedtls_mps_size_t) -1 )
|
||||
#define MBEDTLS_MPS_SIZE_MAX (SIZE_MAX)
|
||||
|
||||
#if MBEDTLS_MPS_STORED_SIZE_MAX > MBEDTLS_MPS_SIZE_MAX
|
||||
#error "Misconfiguration of mbedtls_mps_size_t and mbedtls_mps_stored_size_t."
|
||||
|
|
Loading…
Reference in a new issue