1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Remove MBEDTLS_ from internal macros

This commit is contained in:
Manuel Pégourié-Gonnard
2015-04-09 12:14:31 +02:00
parent a687baf195
commit 8408a94969
7 changed files with 86 additions and 86 deletions

View File

@ -702,7 +702,7 @@ static int compat_snprintf( char *str, size_t size, const char *format, ... )
#define snprintf compat_snprintf
#endif /* _MSC_VER && !snprintf && !EFIX64 && !EFI32 */
#define MBEDTLS_ERR_DEBUG_BUF_TOO_SMALL -2
#define ERR_BUF_TOO_SMALL -2
#define SAFE_SNPRINTF() \
{ \
@ -711,7 +711,7 @@ static int compat_snprintf( char *str, size_t size, const char *format, ... )
\
if( (unsigned int) ret > n ) { \
p[n - 1] = '\0'; \
return( MBEDTLS_ERR_DEBUG_BUF_TOO_SMALL ); \
return( ERR_BUF_TOO_SMALL ); \
} \
\
n -= (unsigned int) ret; \
@ -870,7 +870,7 @@ int mbedtls_x509_key_size_helper( char *buf, size_t size, const char *name )
int ret;
if( strlen( name ) + sizeof( " key size" ) > size )
return( MBEDTLS_ERR_DEBUG_BUF_TOO_SMALL );
return( ERR_BUF_TOO_SMALL );
ret = mbedtls_snprintf( p, n, "%s key size", name );
SAFE_SNPRINTF();