Add new error code PLATFORM_ALLOC_FAILED for mbedtls_platform_memmove()
Signed-off-by: Piotr Nowicki <piotr.nowicki@arm.com>
This commit is contained in:
parent
5d5841f450
commit
ce0aab4474
9 changed files with 23 additions and 19 deletions
|
@ -843,6 +843,8 @@ void mbedtls_strerror( int ret, char *buf, size_t buflen )
|
|||
mbedtls_snprintf( buf, buflen, "PLATFORM - The requested feature is not supported by the platform" );
|
||||
if( use_ret == -(MBEDTLS_ERR_PLATFORM_FAULT_DETECTED) )
|
||||
mbedtls_snprintf( buf, buflen, "PLATFORM - A hardware fault was detected in a critical path. As a security precaution this should be treated as a potential physical attack" );
|
||||
if( use_ret == -(MBEDTLS_ERR_PLATFORM_ALLOC_FAILED) )
|
||||
mbedtls_snprintf( buf, buflen, "PLATFORM - Memory allocation failed" );
|
||||
#endif /* MBEDTLS_PLATFORM_C */
|
||||
|
||||
#if defined(MBEDTLS_POLY1305_C)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue