diff options
author | Tobias Brunner <tobias@strongswan.org> | 2016-12-10 12:26:31 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2016-12-10 12:27:47 +0100 |
commit | f20b3f7b2c1adc4f5c76caa3236976904573531f (patch) | |
tree | c67ecf058387c772db7acce9d4ec17cae528e21b /src/libstrongswan | |
parent | aae9a9e678ba735495199c7cc5df1e315759318b (diff) | |
download | strongswan-f20b3f7b2c1adc4f5c76caa3236976904573531f.tar.bz2 strongswan-f20b3f7b2c1adc4f5c76caa3236976904573531f.tar.xz |
openssl: BoringSSL doesn't provide curve data for ECC Brainpool curves
Diffstat (limited to 'src/libstrongswan')
-rw-r--r-- | src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c b/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c index 11d6e8ec5..11185e0c7 100644 --- a/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c +++ b/src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c @@ -327,9 +327,12 @@ METHOD(diffie_hellman_t, destroy, void, /** * ECC Brainpool curves are not available in OpenSSL releases < 1.0.2, but we * don't check the version in case somebody backported them. + * + * BoringSSL defines the constants but not the curves. */ #if (!defined(NID_brainpoolP224r1) || !defined(NID_brainpoolP256r1) || \ - !defined(NID_brainpoolP384r1) || !defined(NID_brainpoolP512r1)) + !defined(NID_brainpoolP384r1) || !defined(NID_brainpoolP512r1) || \ + defined(OPENSSL_IS_BORINGSSL)) /** * Parameters for ECC Brainpool curves |