1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Cleaned up ECP error codes

This commit is contained in:
Paul Bakker
2013-06-29 23:31:33 +02:00
parent 5dc6b5fb05
commit fd3eac5786
5 changed files with 8 additions and 6 deletions

View File

@ -207,6 +207,8 @@ void polarssl_strerror( int ret, char *buf, size_t buflen )
snprintf( buf, buflen, "ECP - The buffer is too small to write to" );
if( use_ret == -(POLARSSL_ERR_ECP_GENERIC) )
snprintf( buf, buflen, "ECP - Generic ECP error" );
if( use_ret == -(POLARSSL_ERR_ECP_FEATURE_UNAVAILABLE) )
snprintf( buf, buflen, "ECP - Requested curve not available" );
#endif /* POLARSSL_ECP_C */
#if defined(POLARSSL_MD_C)