diff options
author | Hannes Rantzsch <[email protected]> | 2022-02-01 11:40:51 +0100 |
---|---|---|
committer | Hannes Rantzsch <[email protected]> | 2022-02-01 11:40:51 +0100 |
commit | 204138a9652b20d76575b6d7d4db709dae02adf4 (patch) | |
tree | 718ea6d45c00c0d45ef2da8efd968c617436ec2a /src/lib/tls | |
parent | 05543ea58f85abfdea72f4617c753b9466f8e202 (diff) |
Text_Policy ignores 25519 if unsupported by build
Co-authored-by: René Meusel <[email protected]>
Diffstat (limited to 'src/lib/tls')
-rw-r--r-- | src/lib/tls/tls_text_policy.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/tls/tls_text_policy.cpp b/src/lib/tls/tls_text_policy.cpp index 675d74ca0..1a072433b 100644 --- a/src/lib/tls/tls_text_policy.cpp +++ b/src/lib/tls/tls_text_policy.cpp @@ -115,6 +115,11 @@ std::vector<Group_Params> Text_Policy::key_exchange_groups() const { Group_Params group_id = group_param_from_string(group_name); +#if !defined(BOTAN_HAS_CURVE_25519) + if(group_id == Group_Params::X25519) + continue; +#endif + if(group_id == Group_Params::NONE) { try |