mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 05:35:38 +01:00
Remove the invalid input for platform module
Remove the invalid input for the platform module, as it's not currently used in the Mbed OS platform setup \ termination code.
This commit is contained in:
parent
0ff4e0b824
commit
b0ad581526
@ -80,7 +80,7 @@
|
|||||||
* CHACHA20 3 0x0051-0x0055
|
* CHACHA20 3 0x0051-0x0055
|
||||||
* POLY1305 3 0x0057-0x005B
|
* POLY1305 3 0x0057-0x005B
|
||||||
* CHACHAPOLY 2 0x0054-0x0056
|
* CHACHAPOLY 2 0x0054-0x0056
|
||||||
* PLATFORM 2 0x0080-0x0082
|
* PLATFORM 1 0x0080-0x0080
|
||||||
*
|
*
|
||||||
* High-level module nr (3 bits - 0x0...-0x7...)
|
* High-level module nr (3 bits - 0x0...-0x7...)
|
||||||
* Name ID Nr of Errors
|
* Name ID Nr of Errors
|
||||||
|
@ -43,8 +43,7 @@
|
|||||||
#include "platform_time.h"
|
#include "platform_time.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define MBEDTLS_ERR_PLATFORM_INVALID_DATA -0x0080 /**< Bad input parameters to the platform function. */
|
#define MBEDTLS_ERR_PLATFORM_HW_FAILED -0x0080 /**< Hardware platform function failed. */
|
||||||
#define MBEDTLS_ERR_PLATFORM_HW_FAILED -0x0082 /**< Hardware platform function failed. */
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
@ -826,8 +826,6 @@ 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_INVALID_DATA) )
|
|
||||||
mbedtls_snprintf( buf, buflen, "PLATFORM - Bad input parameters to the platform function" );
|
|
||||||
if( use_ret == -(MBEDTLS_ERR_PLATFORM_HW_FAILED) )
|
if( use_ret == -(MBEDTLS_ERR_PLATFORM_HW_FAILED) )
|
||||||
mbedtls_snprintf( buf, buflen, "PLATFORM - Hardware platform function failed" );
|
mbedtls_snprintf( buf, buflen, "PLATFORM - Hardware platform function failed" );
|
||||||
#endif /* MBEDTLS_PLATFORM_C */
|
#endif /* MBEDTLS_PLATFORM_C */
|
||||||
|
Loading…
Reference in New Issue
Block a user