Remove MBEDTLS_ from internal macros
diff --git a/library/x509_crt.c b/library/x509_crt.c
index 78dfabb..bc360dc 100644
--- a/library/x509_crt.c
+++ b/library/x509_crt.c
@@ -1108,7 +1108,7 @@
#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() \
{ \
@@ -1117,7 +1117,7 @@
\
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; \
@@ -1139,7 +1139,7 @@
if( cur->buf.len + sep_len >= n )
{
*p = '\0';
- return( MBEDTLS_ERR_DEBUG_BUF_TOO_SMALL );
+ return( ERR_BUF_TOO_SMALL );
}
n -= cur->buf.len + sep_len;