1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-07 06:42:56 +03:00

Assigned error codes to the error defines

This commit is contained in:
Paul Bakker
2013-08-25 11:21:30 +02:00
parent 82e2945ed2
commit 0e06c0fdb4
5 changed files with 37 additions and 21 deletions

View File

@@ -105,7 +105,7 @@ int x509write_csr_set_subject_name( x509_csr *ctx, char *subject_name )
oid = OID_AT_STATE;
else
{
ret = POLARSSL_ERR_X509_WRITE_UNKNOWN_OID;
ret = POLARSSL_ERR_X509WRITE_UNKNOWN_OID;
goto exit;
}
@@ -117,7 +117,7 @@ int x509write_csr_set_subject_name( x509_csr *ctx, char *subject_name )
{
if( c - s > 127 )
{
ret = POLARSSL_ERR_X509_WRITE_BAD_INPUT_DATA;
ret = POLARSSL_ERR_X509WRITE_BAD_INPUT_DATA;
goto exit;
}
@@ -125,7 +125,7 @@ int x509write_csr_set_subject_name( x509_csr *ctx, char *subject_name )
if( cur == NULL )
{
ret = POLARSSL_ERR_X509_WRITE_MALLOC_FAILED;
ret = POLARSSL_ERR_X509WRITE_MALLOC_FAILED;
goto exit;
}