mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 00:05:36 +01:00
Rename platform error code and value
Rename the PLATFORM HW error, to avoid ABI breakage with Mbed OS. The value changed as well, as previous value was not in the range of Mbed TLS low level error codes.
This commit is contained in:
parent
54a7c620bb
commit
a27190b774
@ -43,7 +43,7 @@
|
|||||||
#include "platform_time.h"
|
#include "platform_time.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MBEDTLS_ERR_PLATFORM_HW_FAILED -0x0080 /**< Hardware failed platform operation. */
|
#define MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED -0x0070 /**< Hardware failed platform operation. */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -826,7 +826,7 @@ void mbedtls_strerror( int ret, char *buf, size_t buflen )
|
|||||||
#endif /* MBEDTLS_PADLOCK_C */
|
#endif /* MBEDTLS_PADLOCK_C */
|
||||||
|
|
||||||
#if defined(MBEDTLS_PLATFORM_C)
|
#if defined(MBEDTLS_PLATFORM_C)
|
||||||
if( use_ret == -(MBEDTLS_ERR_PLATFORM_HW_FAILED) )
|
if( use_ret == -(MBEDTLS_ERR_PLATFORM_HW_ACCEL_FAILED) )
|
||||||
mbedtls_snprintf( buf, buflen, "PLATFORM - Hardware failed platform operation" );
|
mbedtls_snprintf( buf, buflen, "PLATFORM - Hardware failed platform operation" );
|
||||||
#endif /* MBEDTLS_PLATFORM_C */
|
#endif /* MBEDTLS_PLATFORM_C */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user