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

Add EC J-PAKE context in handshake structure

This commit is contained in:
Manuel Pégourié-Gonnard
2015-09-15 12:10:54 +02:00
parent f472179d44
commit 76cfd3f97f
2 changed files with 13 additions and 0 deletions

View File

@ -41,6 +41,10 @@
#include "sha512.h"
#endif
#if defined(MBEDTLS_ECJPAKE_C)
#include "ecjpake.h"
#endif
#if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && !defined(inline)
#define inline __inline
#endif
@ -168,6 +172,9 @@ struct mbedtls_ssl_handshake_params
#if defined(MBEDTLS_ECDH_C)
mbedtls_ecdh_context ecdh_ctx; /*!< ECDH key exchange */
#endif
#if defined(MBEDTLS_ECJPAKE_C)
mbedtls_ecjpake_context ecjpake_ctx; /*!< EC J-PAKE key exchange */
#endif
#if defined(MBEDTLS_ECDH_C) || defined(MBEDTLS_ECDSA_C) || \
defined(MBEDTLS_ECJPAKE_C)
const mbedtls_ecp_curve_info **curves; /*!< Supported elliptic curves */