aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-10-08 23:40:33 -0400
committerJack Lloyd <[email protected]>2016-10-08 23:40:33 -0400
commit4d1f71b1aa66ec915dd7ce7eab462f1a1faa17b2 (patch)
treef5572e9db93c8ef51bee535a732885fbecbf1832 /src/tests
parent62cd6e3651711f759f870460599596ff5be904a5 (diff)
Make TLS CBC optional
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/unit_tls.cpp5
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;
}