fix(mbedtls): bring back deprecated config MBEDTLS_ECJPAKE_C

This commit is contained in:
Ashish Sharma
2026-05-13 14:25:28 +08:00
parent f1d85b531f
commit 881dc4193a
8 changed files with 26 additions and 1 deletions

View File

@@ -728,7 +728,7 @@ menu "mbedTLS"
config MBEDTLS_KEY_EXCHANGE_ECJPAKE
bool "Enable ECJPAKE based ciphersuite modes"
depends on MBEDTLS_ECP_DP_SECP256R1_ENABLED
depends on MBEDTLS_ECJPAKE_C && MBEDTLS_ECP_DP_SECP256R1_ENABLED
default n
help
Enable to support ciphersuites with prefix TLS-ECJPAKE-WITH-
@@ -1093,6 +1093,13 @@ menu "mbedTLS"
help
Enable ECDH. Needed to use ECDHE-xxx TLS ciphersuites.
config MBEDTLS_ECJPAKE_C
bool "Elliptic curve J-PAKE"
depends on MBEDTLS_ECP_C
default n
help
Enable ECJPAKE. Needed to use ECJPAKE-xxx TLS ciphersuites.
config MBEDTLS_ECDSA_C
bool "Elliptic Curve DSA"
depends on MBEDTLS_ECDH_C && MBEDTLS_ECP_C

View File

@@ -115,6 +115,7 @@ CONFIG_MBEDTLS_ECP_C=y
CONFIG_MBEDTLS_ECP_NIST_OPTIM=y
CONFIG_MBEDTLS_ECP_FIXED_POINT_OPTIM=n
CONFIG_MBEDTLS_ECDH_C=y
CONFIG_MBEDTLS_ECJPAKE_C=n
CONFIG_MBEDTLS_ECDSA_C=y
CONFIG_MBEDTLS_PK_PARSE_EC_EXTENDED=y
CONFIG_MBEDTLS_PK_PARSE_EC_COMPRESSED=y

View File

@@ -2095,6 +2095,18 @@
#undef PSA_WANT_ALG_ECDH
#endif
/**
* \def MBEDTLS_ECJPAKE_C
*
* Enable the ECJPAKE based ciphersuites.
*/
#ifdef CONFIG_MBEDTLS_ECJPAKE_C
#define PSA_WANT_ALG_JPAKE 1
#else
#undef PSA_WANT_ALG_JPAKE
#undef PSA_WANT_ALG_TLS12_ECJPAKE_TO_PMS
#endif
/**
* \def MBEDTLS_ECDSA_C
*

View File

@@ -12,6 +12,7 @@ CONFIG_PARTITION_TABLE_MD5=y
#
CONFIG_MBEDTLS_SSL_PROTO_DTLS=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ECJPAKE=y
CONFIG_MBEDTLS_ECJPAKE_C=y
# end of TLS Key Exchange Methods
# end of mbedTLS

View File

@@ -13,6 +13,7 @@ CONFIG_PARTITION_TABLE_MD5=y
#
CONFIG_MBEDTLS_SSL_PROTO_DTLS=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ECJPAKE=y
CONFIG_MBEDTLS_ECJPAKE_C=y
# end of mbedTLS
#

View File

@@ -11,6 +11,7 @@ CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"
#
CONFIG_MBEDTLS_SSL_PROTO_DTLS=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ECJPAKE=y
CONFIG_MBEDTLS_ECJPAKE_C=y
# end of mbedTLS
#

View File

@@ -11,6 +11,7 @@ CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"
#
CONFIG_MBEDTLS_SSL_PROTO_DTLS=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ECJPAKE=y
CONFIG_MBEDTLS_ECJPAKE_C=y
# end of mbedTLS
#

View File

@@ -13,6 +13,7 @@ CONFIG_PARTITION_TABLE_MD5=y
#
CONFIG_MBEDTLS_SSL_PROTO_DTLS=y
CONFIG_MBEDTLS_KEY_EXCHANGE_ECJPAKE=y
CONFIG_MBEDTLS_ECJPAKE_C=y
# end of mbedTLS
#