mbed TLS upgraded to 2.6.0
Fork of mbedtls by
Diff: library/error.c
- Revision:
- 2:bbdeda018a3c
- Parent:
- 0:cdf462088d13
diff -r 9ebc941037d5 -r bbdeda018a3c library/error.c --- a/library/error.c Fri Sep 29 18:41:59 2017 +0100 +++ b/library/error.c Fri Sep 29 19:50:30 2017 +0100 @@ -480,6 +480,8 @@ mbedtls_snprintf( buf, buflen, "X509 - Read/write of file failed" ); if( use_ret == -(MBEDTLS_ERR_X509_BUFFER_TOO_SMALL) ) mbedtls_snprintf( buf, buflen, "X509 - Destination buffer is too small" ); + if( use_ret == -(MBEDTLS_ERR_X509_FATAL_ERROR) ) + mbedtls_snprintf( buf, buflen, "X509 - A fatal error occured, eg the chain is too long or the vrfy callback failed" ); #endif /* MBEDTLS_X509_USE_C || MBEDTLS_X509_CREATE_C */ // END generated code