mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 03:25:38 +01:00
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:
parent
1f35ca9471
commit
49762fa21f
@ -275,6 +275,8 @@
|
|||||||
//#define MBEDTLS_SHA1_ALT
|
//#define MBEDTLS_SHA1_ALT
|
||||||
//#define MBEDTLS_SHA256_ALT
|
//#define MBEDTLS_SHA256_ALT
|
||||||
//#define MBEDTLS_SHA512_ALT
|
//#define MBEDTLS_SHA512_ALT
|
||||||
|
//#define MBEDTLS_DHM_ALT
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* When replacing the elliptic curve module, pleace consider, that it is
|
* When replacing the elliptic curve module, pleace consider, that it is
|
||||||
* implemented with two .c files:
|
* implemented with two .c files:
|
||||||
|
@ -580,7 +580,8 @@ int mbedtls_dhm_parse_dhmfile( mbedtls_dhm_context *dhm, const char *path )
|
|||||||
}
|
}
|
||||||
#endif /* MBEDTLS_FS_IO */
|
#endif /* MBEDTLS_FS_IO */
|
||||||
#endif /* MBEDTLS_ASN1_PARSE_C */
|
#endif /* MBEDTLS_ASN1_PARSE_C */
|
||||||
#endif/*MBEDTLS_DHM_ALT*/
|
#endif /* MBEDTLS_DHM_ALT */
|
||||||
|
|
||||||
#if defined(MBEDTLS_SELF_TEST)
|
#if defined(MBEDTLS_SELF_TEST)
|
||||||
|
|
||||||
static const char mbedtls_test_dhm_params[] =
|
static const char mbedtls_test_dhm_params[] =
|
||||||
|
@ -123,6 +123,9 @@ static const char *features[] = {
|
|||||||
#if defined(MBEDTLS_SHA512_ALT)
|
#if defined(MBEDTLS_SHA512_ALT)
|
||||||
"MBEDTLS_SHA512_ALT",
|
"MBEDTLS_SHA512_ALT",
|
||||||
#endif /* MBEDTLS_SHA512_ALT */
|
#endif /* MBEDTLS_SHA512_ALT */
|
||||||
|
#if defined(MBEDTLS_DHM_ALT)
|
||||||
|
"MBEDTLS_DHM_ALT",
|
||||||
|
#endif /* MBEDTLS_DHM_ALT */
|
||||||
#if defined(MBEDTLS_ECP_ALT)
|
#if defined(MBEDTLS_ECP_ALT)
|
||||||
"MBEDTLS_ECP_ALT",
|
"MBEDTLS_ECP_ALT",
|
||||||
#endif /* MBEDTLS_ECP_ALT */
|
#endif /* MBEDTLS_ECP_ALT */
|
||||||
|
Loading…
Reference in New Issue
Block a user