wolfssl: Correctly enable Brainpool curves
This commit is contained in:
parent
f397fc02e9
commit
6e2e359f38
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue