diff options
author | Jack Lloyd <[email protected]> | 2016-12-30 21:46:04 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-12-30 21:46:04 -0500 |
commit | 122754bf3dd27ffb81262affc16c78b5a513ed9e (patch) | |
tree | b13f1efcb2a1b99e88e6b10c53b6e1d597b00337 /src/tests/unit_tls.cpp | |
parent | 0012c59f23ff0d99dc3fd91594040255cd2924bd (diff) |
Increase default TLS DH min to 2048 bits, and add BSI policy class.
Moves BSI policy file to test data dir where it can be compared with
what the hardcoded class outputs.
Diffstat (limited to 'src/tests/unit_tls.cpp')
-rw-r--r-- | src/tests/unit_tls.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/unit_tls.cpp b/src/tests/unit_tls.cpp index cb52b349b..6922dd2a8 100644 --- a/src/tests/unit_tls.cpp +++ b/src/tests/unit_tls.cpp @@ -918,6 +918,8 @@ std::string tls_policy_string(const std::string& policy_str) policy.reset(new Botan::TLS::Policy); else if(policy_str == "suiteb") policy.reset(new Botan::TLS::NSA_Suite_B_128); + else if(policy_str == "bsi") + policy.reset(new Botan::TLS::BSI_TR_02102_2); else if(policy_str == "strict") policy.reset(new Botan::TLS::Strict_Policy); else if(policy_str == "datagram") @@ -932,7 +934,7 @@ Test::Result test_tls_policy() { Test::Result result("TLS Policy"); - const std::vector<std::string> policies = { "default", "suiteb", "strict", "datagram" }; + const std::vector<std::string> policies = { "default", "suiteb", "strict", "datagram", "bsi" }; for(std::string policy : policies) { |