mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-17 16:13:48 +00:00
Remove designated initializers from ECDH compile time initializers
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
This commit is contained in:
parent
7817da0833
commit
947afa05d6
@ -170,27 +170,15 @@ mbedtls_ecdh_context;
|
||||
MBEDTLS_MPI_INIT }
|
||||
#endif /* MBEDTLS_ECP_RESTARTABLE */
|
||||
#else
|
||||
#if !defined(MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED)
|
||||
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
||||
#define MBEDTLS_ECDH_CONTEXT_INIT { MBEDTLS_ECP_PF_UNCOMPRESSED, MBEDTLS_ECP_DP_NONE, \
|
||||
MBEDTLS_ECDH_VARIANT_NONE, \
|
||||
{ .mbed_ecdh = MBEDTLS_ECDH_CONTEXT_MBED_INIT }, 0 }
|
||||
{ MBEDTLS_ECDH_CONTEXT_MBED_INIT }, 0 }
|
||||
#else
|
||||
#define MBEDTLS_ECDH_CONTEXT_INIT { MBEDTLS_ECP_PF_UNCOMPRESSED, MBEDTLS_ECP_DP_NONE, \
|
||||
MBEDTLS_ECDH_VARIANT_NONE, \
|
||||
{ .mbed_ecdh = MBEDTLS_ECDH_CONTEXT_MBED_INIT } }
|
||||
{ MBEDTLS_ECDH_CONTEXT_MBED_INIT } }
|
||||
#endif /* MBEDTLS_ECP_RESTARTABLE */
|
||||
#else
|
||||
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
||||
#define MBEDTLS_ECDH_CONTEXT_INIT { MBEDTLS_ECP_PF_UNCOMPRESSED, MBEDTLS_ECP_DP_NONE, \
|
||||
MBEDTLS_ECDH_VARIANT_NONE, \
|
||||
{ .everest_ecdh = MBEDTLS_ECDH_CONTEXT_EVEREST_INIT }, 0 }
|
||||
#else
|
||||
#define MBEDTLS_ECDH_CONTEXT_INIT { MBEDTLS_ECP_PF_UNCOMPRESSED, MBEDTLS_ECP_DP_NONE, \
|
||||
MBEDTLS_ECDH_VARIANT_NONE, \
|
||||
{ .everest_ecdh = MBEDTLS_ECDH_CONTEXT_EVEREST_INIT } }
|
||||
#endif /* MBEDTLS_ECP_RESTARTABLE */
|
||||
#endif /* !MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED */
|
||||
#endif /* MBEDTLS_ECDH_LEGACY_CONTEXT */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user