Fix ifdef conditions for EC-related extensions.

Was alternatively ECP_C and ECDH_C.
This commit is contained in:
Manuel Pégourié-Gonnard 2013-08-15 19:38:07 +02:00 committed by Paul Bakker
parent 5734b2d358
commit 0b2726732e
3 changed files with 16 additions and 14 deletions

View file

@ -428,7 +428,9 @@ struct _ssl_handshake_params
#if defined(POLARSSL_ECDH_C)
ecdh_context ecdh_ctx; /*!< ECDH key exchange */
#endif
#if defined(POLARSSL_ECDH_C) || defined(POLARSSL_ECDSA_C)
int ec_curve; /*!< Selected elliptic curve */
#endif
/*
* Checksum contexts