diff options
Diffstat (limited to 'src/cli/tls_utils.cpp')
-rw-r--r-- | src/cli/tls_utils.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/cli/tls_utils.cpp b/src/cli/tls_utils.cpp index 2429b5de6..16813c13a 100644 --- a/src/cli/tls_utils.cpp +++ b/src/cli/tls_utils.cpp @@ -55,8 +55,8 @@ class TLS_All_Policy final : public Botan::TLS::Policy return { "ECDSA", "RSA", "DSA" }; } - bool allow_tls10() const override { return false; } - bool allow_tls11() const override { return false; } + bool allow_tls10() const override { return true; } + bool allow_tls11() const override { return true; } bool allow_tls12() const override { return true; } }; @@ -138,6 +138,12 @@ class TLS_Ciphersuites final : public Command policy.reset(new Botan::TLS::Text_Policy(policy_txt)); } + if(policy->acceptable_protocol_version(version) == false) + { + error_output() << "Error: the policy specified does not allow the given TLS version\n"; + return; + } + for(uint16_t suite_id : policy->ciphersuite_list(version, with_srp)) { const Botan::TLS::Ciphersuite suite(Botan::TLS::Ciphersuite::by_id(suite_id)); |