]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
wolfssl: Correctly enable Brainpool curves
authorTobias Brunner <tobias@strongswan.org>
Mon, 4 Jan 2021 14:58:59 +0000 (15:58 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 4 Jan 2021 15:09:22 +0000 (16:09 +0100)
src/libstrongswan/plugins/wolfssl/wolfssl_ec_diffie_hellman.c
src/libstrongswan/plugins/wolfssl/wolfssl_plugin.c

index ceff4172c14ab5bcd669c737b9bd2ac88d322541..ba650069483570c94d2cc62415c729620f1f6054 100644 (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;
index 4de89e54c6bde5857d8b5e4c468724033269db00..8c0cbdcac80ba838a8f90bd11efcdc569294b93b 100644 (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)