Rename ERR_xxx_MALLOC_FAILED to ..._ALLOC_FAILED
diff --git a/include/mbedtls/x509_crt.h b/include/mbedtls/x509_crt.h
index dbc39e5..19df51e 100644
--- a/include/mbedtls/x509_crt.h
+++ b/include/mbedtls/x509_crt.h
@@ -435,7 +435,7 @@
* \param val value of the extension OCTET STRING
* \param val_len length of the value data
*
- * \return 0 if successful, or a MBEDTLS_ERR_X509_MALLOC_FAILED
+ * \return 0 if successful, or a MBEDTLS_ERR_X509_ALLOC_FAILED
*/
int mbedtls_x509write_crt_set_extension( mbedtls_x509write_cert *ctx,
const char *oid, size_t oid_len,
@@ -451,7 +451,7 @@
* certificate (only for CA certificates, -1 is
* inlimited)
*
- * \return 0 if successful, or a MBEDTLS_ERR_X509_MALLOC_FAILED
+ * \return 0 if successful, or a MBEDTLS_ERR_X509_ALLOC_FAILED
*/
int mbedtls_x509write_crt_set_basic_constraints( mbedtls_x509write_cert *ctx,
int is_ca, int max_pathlen );
@@ -464,7 +464,7 @@
*
* \param ctx CRT context to use
*
- * \return 0 if successful, or a MBEDTLS_ERR_X509_MALLOC_FAILED
+ * \return 0 if successful, or a MBEDTLS_ERR_X509_ALLOC_FAILED
*/
int mbedtls_x509write_crt_set_subject_key_identifier( mbedtls_x509write_cert *ctx );
@@ -475,7 +475,7 @@
*
* \param ctx CRT context to use
*
- * \return 0 if successful, or a MBEDTLS_ERR_X509_MALLOC_FAILED
+ * \return 0 if successful, or a MBEDTLS_ERR_X509_ALLOC_FAILED
*/
int mbedtls_x509write_crt_set_authority_key_identifier( mbedtls_x509write_cert *ctx );
#endif /* MBEDTLS_SHA1_C */
@@ -487,7 +487,7 @@
* \param ctx CRT context to use
* \param key_usage key usage flags to set
*
- * \return 0 if successful, or MBEDTLS_ERR_X509_MALLOC_FAILED
+ * \return 0 if successful, or MBEDTLS_ERR_X509_ALLOC_FAILED
*/
int mbedtls_x509write_crt_set_key_usage( mbedtls_x509write_cert *ctx, unsigned char key_usage );
@@ -498,7 +498,7 @@
* \param ctx CRT context to use
* \param ns_cert_type Netscape Cert Type flags to set
*
- * \return 0 if successful, or MBEDTLS_ERR_X509_MALLOC_FAILED
+ * \return 0 if successful, or MBEDTLS_ERR_X509_ALLOC_FAILED
*/
int mbedtls_x509write_crt_set_ns_cert_type( mbedtls_x509write_cert *ctx,
unsigned char ns_cert_type );