diff options
author | Jack Lloyd <[email protected]> | 2017-01-04 19:30:10 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-01-04 19:30:10 -0500 |
commit | 3eb6b8147e982d43d3ee1c5d69769222b031e835 (patch) | |
tree | c17c043760b6ec66026f89b193605e8ec0952bc7 /src/tests/unit_tls.cpp | |
parent | 51b83c2f3807cfd36744b94dfe337a6d31f00847 (diff) |
Avoid construct in test that causes compilation problem on XCode 6
GH #798
Diffstat (limited to 'src/tests/unit_tls.cpp')
-rw-r--r-- | src/tests/unit_tls.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/tests/unit_tls.cpp b/src/tests/unit_tls.cpp index 6922dd2a8..6b3eb753a 100644 --- a/src/tests/unit_tls.cpp +++ b/src/tests/unit_tls.cpp @@ -1002,8 +1002,21 @@ class TLS_Unit_Tests : public Test Botan::Credentials_Manager& creds, const std::string& kex_policy, const std::string& cipher_policy, - const std::string& mac_policy = "AEAD", - const std::map<std::string, std::string>& extra_policies = {}) + const std::string& mac_policy = "AEAD") + { + std::map<std::string, std::string> no_extra_policies; + return test_modern_versions(results, client_ses, server_ses, creds, + kex_policy, cipher_policy, mac_policy, no_extra_policies); + } + + void test_modern_versions(std::vector<Test::Result>& results, + Botan::TLS::Session_Manager& client_ses, + Botan::TLS::Session_Manager& server_ses, + Botan::Credentials_Manager& creds, + const std::string& kex_policy, + const std::string& cipher_policy, + const std::string& mac_policy, + const std::map<std::string, std::string>& extra_policies) { Test_Policy policy; policy.set("ciphers", cipher_policy); |