mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-13 18:12:57 +00:00
Cleaned up ECP error codes
This commit is contained in:
@@ -604,7 +604,7 @@ int ecp_use_known_dp( ecp_group *grp, ecp_group_id id )
|
||||
#endif /* POLARSSL_ECP_DP_SECP521R1_ENABLED */
|
||||
}
|
||||
|
||||
return( POLARSSL_ERR_ECP_BAD_INPUT_DATA );
|
||||
return( POLARSSL_ERR_ECP_FEATURE_UNAVAILABLE );
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user