mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
ssl_tls: Enable Suite B with subset of ECP curves
Make sure the code compiles even if some curves are not defined. Fixes #1591
This commit is contained in:
committed by
Jaeden Amero
parent
4f4af6e2ef
commit
d431104926
@ -70,6 +70,8 @@ Bugfix
|
|||||||
* Fix Visual Studio Release x64 build configuration by inheriting
|
* Fix Visual Studio Release x64 build configuration by inheriting
|
||||||
PlatformToolset from the project configuration. Fixes #1430 reported by
|
PlatformToolset from the project configuration. Fixes #1430 reported by
|
||||||
irwir.
|
irwir.
|
||||||
|
* Enable Suite B with subset of ECP curves. Make sure the code compiles even
|
||||||
|
if some curves are not defined. Fixes #1591 reported by dbedev.
|
||||||
|
|
||||||
API Changes
|
API Changes
|
||||||
* Extend the MBEDTLS_SSL_EXPORT_KEYS to export the handshake randbytes,
|
* Extend the MBEDTLS_SSL_EXPORT_KEYS to export the handshake randbytes,
|
||||||
|
@ -10536,8 +10536,12 @@ static int ssl_preset_suiteb_hashes[] = {
|
|||||||
|
|
||||||
#if defined(MBEDTLS_ECP_C)
|
#if defined(MBEDTLS_ECP_C)
|
||||||
static mbedtls_ecp_group_id ssl_preset_suiteb_curves[] = {
|
static mbedtls_ecp_group_id ssl_preset_suiteb_curves[] = {
|
||||||
|
#if defined(MBEDTLS_ECP_DP_SECP256R1_ENABLED)
|
||||||
MBEDTLS_ECP_DP_SECP256R1,
|
MBEDTLS_ECP_DP_SECP256R1,
|
||||||
|
#endif
|
||||||
|
#if defined(MBEDTLS_ECP_DP_SECP384R1_ENABLED)
|
||||||
MBEDTLS_ECP_DP_SECP384R1,
|
MBEDTLS_ECP_DP_SECP384R1,
|
||||||
|
#endif
|
||||||
MBEDTLS_ECP_DP_NONE
|
MBEDTLS_ECP_DP_NONE
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user