mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-05 06:26:52 +00:00
Merge remote-tracking branch 'public/pr/2877' into baremetal
This commit is contained in:
commit
e2bf54d3d1
58 changed files with 221 additions and 196 deletions
|
|
@ -28,6 +28,7 @@
|
|||
#if defined(MBEDTLS_ERROR_C) || defined(MBEDTLS_ERROR_STRERROR_DUMMY)
|
||||
#include "mbedtls/error.h"
|
||||
#include <string.h>
|
||||
#include "mbedtls/platform_util.h"
|
||||
#endif
|
||||
|
||||
#if defined(MBEDTLS_PLATFORM_C)
|
||||
|
|
@ -51,7 +52,7 @@ void mbedtls_strerror( int ret, char *buf, size_t buflen )
|
|||
if( buflen == 0 )
|
||||
return;
|
||||
|
||||
memset( buf, 0x00, buflen );
|
||||
mbedtls_platform_memset( buf, 0x00, buflen );
|
||||
|
||||
if( ret < 0 )
|
||||
ret = -ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue