Add 'MBEDTLS_DHM_ALT' #DEFINE to library/config.h

Add 'MBEDTLS_DHM_ALT' #DEFINE to library/config.h to support alternate DHM
This commit is contained in:
nirekh01 2017-12-25 06:46:48 +00:00
parent 1f35ca9471
commit 49762fa21f
3 changed files with 7 additions and 1 deletions

View file

@ -275,6 +275,8 @@
//#define MBEDTLS_SHA1_ALT
//#define MBEDTLS_SHA256_ALT
//#define MBEDTLS_SHA512_ALT
//#define MBEDTLS_DHM_ALT
/*
* When replacing the elliptic curve module, pleace consider, that it is
* implemented with two .c files:

View file

@ -580,7 +580,8 @@ int mbedtls_dhm_parse_dhmfile( mbedtls_dhm_context *dhm, const char *path )
}
#endif /* MBEDTLS_FS_IO */
#endif /* MBEDTLS_ASN1_PARSE_C */
#endif/*MBEDTLS_DHM_ALT*/
#endif /* MBEDTLS_DHM_ALT */
#if defined(MBEDTLS_SELF_TEST)
static const char mbedtls_test_dhm_params[] =

View file

@ -123,6 +123,9 @@ static const char *features[] = {
#if defined(MBEDTLS_SHA512_ALT)
"MBEDTLS_SHA512_ALT",
#endif /* MBEDTLS_SHA512_ALT */
#if defined(MBEDTLS_DHM_ALT)
"MBEDTLS_DHM_ALT",
#endif /* MBEDTLS_DHM_ALT */
#if defined(MBEDTLS_ECP_ALT)
"MBEDTLS_ECP_ALT",
#endif /* MBEDTLS_ECP_ALT */