diff options
author | Jack Lloyd <[email protected]> | 2020-10-22 10:38:10 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2020-10-22 10:38:10 -0400 |
commit | fac3bede710df9943fc5489178f52274dd9f41ac (patch) | |
tree | f95ded20507b9a668c7e6a999f10e29bd54da6e6 /src | |
parent | f33f00e5d0add6b17c3a51407720710a58bacd0b (diff) |
Run TLS DSA tests only in long test mode
They take a long time under qemu and are pretty marginal from a
protocol perspective.
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/unit_tls.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/tests/unit_tls.cpp b/src/tests/unit_tls.cpp index 527d797d7..cf7017433 100644 --- a/src/tests/unit_tls.cpp +++ b/src/tests/unit_tls.cpp @@ -271,7 +271,7 @@ create_creds(Botan::RandomNumberGenerator& rng, std::unique_ptr<Botan::X509_Certificate> dsa_ca_cert; #if defined(BOTAN_HAS_DSA) - const Botan::DL_Group dsa_params("modp/ietf/2048"); + const Botan::DL_Group dsa_params("dsa/jce/1024"); dsa_ca_key.reset(new Botan::DSA_PrivateKey(rng, dsa_params)); dsa_srv_key.reset(new Botan::DSA_PrivateKey(rng, dsa_params)); @@ -781,6 +781,11 @@ class Test_Policy final : public Botan::TLS::Text_Policy return 1024; } + size_t minimum_dsa_group_size() const override + { + return 1024; + } + size_t minimum_signature_strength() const override { return 80; @@ -973,11 +978,14 @@ class TLS_Unit_Tests final : public Test test_modern_versions("AES-128 DH", results, *client_ses, *server_ses, *creds, "DH", "AES-128", "SHA-256"); #if defined(BOTAN_HAS_DSA) - test_modern_versions("AES-128 DSA", results, *client_ses, *server_ses, *creds, "DH", "AES-128", "SHA-256", - { { "signature_methods", "DSA" } }); + if(Test::run_long_tests()) + { + test_modern_versions("AES-128 DSA", results, *client_ses, *server_ses, *creds, "DH", "AES-128", "SHA-256", + { { "signature_methods", "DSA" } }); - test_modern_versions("AES-128/GCM DSA", results, *client_ses, *server_ses, *creds, "DH", "AES-128/GCM", "AEAD", - { { "signature_methods", "DSA" } }); + test_modern_versions("AES-128/GCM DSA", results, *client_ses, *server_ses, *creds, "DH", "AES-128/GCM", "AEAD", + { { "signature_methods", "DSA" } }); + } #endif #if defined(BOTAN_HAS_SRP6) |