aboutsummaryrefslogtreecommitdiff
path: root/library/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'library/error.c')
-rw-r--r--library/error.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/error.c b/library/error.c
index ac99091..0292480 100644
--- a/library/error.c
+++ b/library/error.c
@@ -246,6 +246,8 @@ void mbedtls_strerror( int ret, char *buf, size_t buflen )
mbedtls_snprintf( buf, buflen, "DHM - Read or write of file failed" );
if( use_ret == -(MBEDTLS_ERR_DHM_HW_ACCEL_FAILED) )
mbedtls_snprintf( buf, buflen, "DHM - DHM hardware accelerator failed" );
+ if( use_ret == -(MBEDTLS_ERR_DHM_SET_GROUP_FAILED) )
+ mbedtls_snprintf( buf, buflen, "DHM - Setting the modulus and generator failed" );
#endif /* MBEDTLS_DHM_C */
#if defined(MBEDTLS_ECP_C)