Manuel Pégourié-Gonnard 3caa0edb9b Remove dead preprocessor code
There's no way currently (see below regarding the future) that ECC-based
key exchanges are enabled without ECP_C being defined. So, the #if was
fully redundant with the checks surrounding the function, as it always
evaluated to true.

The situation arose as, in the old days (before Mbed TLS 2.0),
mbedtls_ssl_conf_curves() (or ssl_set_curves() as it was called back
then) was optional, controlled by its own compile-time option
POLARSSL_SSL_SET_CURVES. So, in turn mbedtls_ssl_check_curve() depended
on POLARSSL_SSL_SET_CURVES too, and all calls to it were guarded by
that.

When it was made non-optional, a blind
s/POLARSSL_SSL_SET_CURVES/MBEDTLS_ECP_C/ was done, which resulted in
stupid situations like this with redundant checks for ECP_C.

Note regarding the future: at some point it will be possible to compile
with ECC-based key exchanges but without ECP_C. This doesn't change
anything to the reasoning above: mbedtls_ssl_check_curve() will be
available in all builds where ECC is used; it will just need a new
definition (with new guards), but that doesn't change anything for its
callers.

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
2022-02-03 11:08:15 +01:00
..
2021-09-27 16:22:08 +02:00
2021-06-28 09:24:07 +01:00
2021-08-19 09:55:41 +01:00
2021-10-21 11:33:37 +02:00
2021-12-19 13:37:37 +05:30
2021-06-17 21:46:29 +02:00
2021-09-27 16:22:08 +02:00
2021-06-25 12:46:40 +01:00
2021-09-27 16:34:58 +08:00
2021-06-08 16:45:41 +02:00
2021-12-19 13:37:37 +05:30
2021-08-19 09:31:55 +01:00
2021-06-28 09:24:07 +01:00
2021-06-16 10:34:25 +02:00
2021-06-16 10:34:25 +02:00
2021-06-28 09:24:07 +01:00
2021-06-08 16:45:41 +02:00
2021-12-02 18:03:12 +00:00
2021-09-08 22:04:13 +05:30
2021-12-06 07:50:27 +01:00
2021-08-19 09:31:55 +01:00
2021-08-19 09:31:55 +01:00
2021-08-19 09:31:55 +01:00
2021-08-19 09:56:47 +01:00
2022-02-03 11:08:15 +01:00
2022-01-25 12:46:17 +08:00
2021-08-31 22:54:27 +02:00
2021-12-02 06:36:27 +00:00
2021-12-15 12:56:54 +01:00
2021-06-28 09:28:33 +01:00