1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Rename ERR_xxx_MALLOC_FAILED to ..._ALLOC_FAILED

This commit is contained in:
Manuel Pégourié-Gonnard
2015-05-28 09:33:39 +02:00
parent 160e384360
commit 6a8ca33fa5
30 changed files with 130 additions and 130 deletions

View File

@ -363,7 +363,7 @@ static int x509_get_subject_alt_name( unsigned char **p,
if( cur->next == NULL )
return( MBEDTLS_ERR_X509_INVALID_EXTENSIONS +
MBEDTLS_ERR_ASN1_MALLOC_FAILED );
MBEDTLS_ERR_ASN1_ALLOC_FAILED );
cur = cur->next;
}
@ -554,7 +554,7 @@ static int x509_crt_parse_der_core( mbedtls_x509_crt *crt, const unsigned char *
p = mbedtls_calloc( 1, len = buflen );
if( p == NULL )
return( MBEDTLS_ERR_X509_MALLOC_FAILED );
return( MBEDTLS_ERR_X509_ALLOC_FAILED );
memcpy( p, buf, buflen );
@ -810,7 +810,7 @@ int mbedtls_x509_crt_parse_der( mbedtls_x509_crt *chain, const unsigned char *bu
crt->next = mbedtls_calloc( 1, sizeof( mbedtls_x509_crt ) );
if( crt->next == NULL )
return( MBEDTLS_ERR_X509_MALLOC_FAILED );
return( MBEDTLS_ERR_X509_ALLOC_FAILED );
prev = crt;
mbedtls_x509_crt_init( crt->next );
@ -919,7 +919,7 @@ int mbedtls_x509_crt_parse( mbedtls_x509_crt *chain, const unsigned char *buf, s
/*
* Quit parsing on a memory error
*/
if( ret == MBEDTLS_ERR_X509_MALLOC_FAILED )
if( ret == MBEDTLS_ERR_X509_ALLOC_FAILED )
return( ret );
if( first_error == 0 )