Add error string for failure code in mbedtls_dhm_set_group
This commit is contained in:
parent
ab74056037
commit
a6dd90de30
1 changed files with 2 additions and 0 deletions
|
@ -206,6 +206,8 @@ void mbedtls_strerror( int ret, char *buf, size_t buflen )
|
||||||
mbedtls_snprintf( buf, buflen, "DHM - Allocation of memory failed" );
|
mbedtls_snprintf( buf, buflen, "DHM - Allocation of memory failed" );
|
||||||
if( use_ret == -(MBEDTLS_ERR_DHM_FILE_IO_ERROR) )
|
if( use_ret == -(MBEDTLS_ERR_DHM_FILE_IO_ERROR) )
|
||||||
mbedtls_snprintf( buf, buflen, "DHM - Read/write of file failed" );
|
mbedtls_snprintf( buf, buflen, "DHM - Read/write of file failed" );
|
||||||
|
if( use_ret == -(MBEDTLS_ERR_DHM_SET_GROUP_FAILED) )
|
||||||
|
mbedtls_snprintf( buf, buflen, "DHM - Setting modulus and generator failed" );
|
||||||
#endif /* MBEDTLS_DHM_C */
|
#endif /* MBEDTLS_DHM_C */
|
||||||
|
|
||||||
#if defined(MBEDTLS_ECP_C)
|
#if defined(MBEDTLS_ECP_C)
|
||||||
|
|
Loading…
Reference in a new issue