wolfssl: Correctly enable Brainpool curves

This commit is contained in:
Tobias Brunner
2021-01-04 16:09:22 +01:00
parent f397fc02e9
commit 6e2e359f38
2 changed files with 3 additions and 3 deletions
@@ -333,7 +333,7 @@ wolfssl_ec_diffie_hellman_t *wolfssl_ec_diffie_hellman_create(diffie_hellman_gro
this->curve_id = ECC_SECP521R1; this->curve_id = ECC_SECP521R1;
this->keysize = (521 + 7) / 8; this->keysize = (521 + 7) / 8;
break; break;
#ifdef HAVE_BRAINPOOL #ifdef HAVE_ECC_BRAINPOOL
case ECP_224_BP: case ECP_224_BP:
this->curve_id = ECC_BRAINPOOLP224R1; this->curve_id = ECC_BRAINPOOLP224R1;
this->keysize = 224 / 8; this->keysize = 224 / 8;
@@ -209,8 +209,8 @@ METHOD(plugin_t, get_features, int,
#if defined(HAVE_ECC192) || defined(HAVE_ALL_CURVES) #if defined(HAVE_ECC192) || defined(HAVE_ALL_CURVES)
PLUGIN_PROVIDE(DH, ECP_192_BIT), PLUGIN_PROVIDE(DH, ECP_192_BIT),
#endif #endif
#ifdef HAVE_BRAINPOOL #ifdef HAVE_ECC_BRAINPOOL
#if !define(NO_ECC256) || defined(HAVE_ALL_CURVES) #if !defined(NO_ECC256) || defined(HAVE_ALL_CURVES)
PLUGIN_PROVIDE(DH, ECP_256_BP), PLUGIN_PROVIDE(DH, ECP_256_BP),
#endif #endif
#if defined(HAVE_ECC384) || defined(HAVE_ALL_CURVES) #if defined(HAVE_ECC384) || defined(HAVE_ALL_CURVES)