diff options
author | Jack Lloyd <[email protected]> | 2016-10-08 23:40:33 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-10-08 23:40:33 -0400 |
commit | 4d1f71b1aa66ec915dd7ce7eab462f1a1faa17b2 (patch) | |
tree | f5572e9db93c8ef51bee535a732885fbecbf1832 /src/tests | |
parent | 62cd6e3651711f759f870460599596ff5be904a5 (diff) |
Make TLS CBC optional
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/unit_tls.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/unit_tls.cpp b/src/tests/unit_tls.cpp index f869f426b..49fb07131 100644 --- a/src/tests/unit_tls.cpp +++ b/src/tests/unit_tls.cpp @@ -880,6 +880,7 @@ class TLS_Unit_Tests : public Test std::unique_ptr<Botan::Credentials_Manager> creds(create_creds(rng)); std::vector<Test::Result> results; +#if defined(BOTAN_HAS_TLS_CBC) for(std::string etm_setting : { "true", "false" }) { test_all_versions(results, *creds, "RSA", "AES-128", "SHA-256 SHA-1", etm_setting); @@ -904,6 +905,8 @@ class TLS_Unit_Tests : public Test } test_modern_versions(results, *creds, "DH", "AES-128", "SHA-256"); +#endif + test_modern_versions(results, *creds, "RSA", "AES-128/GCM"); test_modern_versions(results, *creds, "ECDH", "AES-128/GCM"); test_modern_versions(results, *creds, "ECDH", "AES-128/GCM", "AEAD", @@ -927,9 +930,11 @@ class TLS_Unit_Tests : public Test test_modern_versions(results, *creds, "PSK", "AES-128/CCM(8)"); #endif +#if defined(BOTAN_HAS_TLS_CBC) // For whatever reason no (EC)DHE_PSK GCM ciphersuites are defined test_modern_versions(results, *creds, "ECDHE_PSK", "AES-128", "SHA-256"); test_modern_versions(results, *creds, "DHE_PSK", "AES-128", "SHA-1"); +#endif return results; } |