wolfssl: Correctly enable Brainpool curves

This commit is contained in:
Tobias Brunner 2021-01-04 15:58:59 +01:00
parent f397fc02e9
commit 6e2e359f38
2 changed files with 3 additions and 3 deletions

View File

@ -333,7 +333,7 @@ wolfssl_ec_diffie_hellman_t *wolfssl_ec_diffie_hellman_create(diffie_hellman_gro
this->curve_id = ECC_SECP521R1;
this->keysize = (521 + 7) / 8;
break;
#ifdef HAVE_BRAINPOOL
#ifdef HAVE_ECC_BRAINPOOL
case ECP_224_BP:
this->curve_id = ECC_BRAINPOOLP224R1;
this->keysize = 224 / 8;

View File

@ -209,8 +209,8 @@ METHOD(plugin_t, get_features, int,
#if defined(HAVE_ECC192) || defined(HAVE_ALL_CURVES)
PLUGIN_PROVIDE(DH, ECP_192_BIT),
#endif
#ifdef HAVE_BRAINPOOL
#if !define(NO_ECC256) || defined(HAVE_ALL_CURVES)
#ifdef HAVE_ECC_BRAINPOOL
#if !defined(NO_ECC256) || defined(HAVE_ALL_CURVES)
PLUGIN_PROVIDE(DH, ECP_256_BP),
#endif
#if defined(HAVE_ECC384) || defined(HAVE_ALL_CURVES)