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:
@ -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();
|
||||
|
Reference in New Issue
Block a user