1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Merge pull request #5703 from superna9999/5322-ecdh-remove-legacy-context

TLS ECDH 4: remove legacy context
This commit is contained in:
Manuel Pégourié-Gonnard
2022-04-22 14:27:06 +02:00
committed by GitHub
4 changed files with 178 additions and 257 deletions

View File

@ -616,7 +616,9 @@ struct mbedtls_ssl_handshake_params
* seem correct.
*/
#if defined(MBEDTLS_ECDH_C) || defined(MBEDTLS_ECDSA_C)
#if !defined(MBEDTLS_USE_PSA_CRYPTO)
mbedtls_ecdh_context ecdh_ctx; /*!< ECDH key exchange */
#endif /* !MBEDTLS_USE_PSA_CRYPTO */
#if defined(MBEDTLS_USE_PSA_CRYPTO) || defined(MBEDTLS_SSL_PROTO_TLS1_3)
psa_key_type_t ecdh_psa_type;