aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_tls.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-05-29 14:48:15 -0400
committerJack Lloyd <[email protected]>2018-05-29 14:48:15 -0400
commit48fb47c2aad3d39c51d971685b0be3f6a9292e15 (patch)
treefaeca0d57adec9f76bc5fbe0f5f84383b79f787f /src/tests/test_tls.cpp
parent5b60dae056a652c9eb0b480db8bfa020ead9d4e1 (diff)
Make the tests VarMap an actual type instead of a hashmap typedef.
Diffstat (limited to 'src/tests/test_tls.cpp')
-rw-r--r--src/tests/test_tls.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tests/test_tls.cpp b/src/tests/test_tls.cpp
index 702919290..a64a3fa48 100644
--- a/src/tests/test_tls.cpp
+++ b/src/tests/test_tls.cpp
@@ -79,8 +79,8 @@ class TLS_CBC_Padding_Tests final : public Text_Based_Test
Test::Result run_one_test(const std::string&, const VarMap& vars) override
{
- const std::vector<uint8_t> record = get_req_bin(vars, "Record");
- const size_t output = get_req_sz(vars, "Output");
+ const std::vector<uint8_t> record = vars.get_req_bin("Record");
+ const size_t output = vars.get_req_sz("Output");
uint16_t res = Botan::TLS::check_tls_cbc_padding(record.data(), record.size());
@@ -163,10 +163,10 @@ class TLS_CBC_Tests final : public Text_Based_Test
{
Test::Result result("TLS CBC");
- const size_t block_size = get_req_sz(vars, "Blocksize");
- const size_t mac_len = get_req_sz(vars, "MACsize");
- const std::vector<uint8_t> record = get_req_bin(vars, "Record");
- const bool is_valid = get_req_sz(vars, "Valid") == 1;
+ const size_t block_size = vars.get_req_sz("Blocksize");
+ const size_t mac_len = vars.get_req_sz("MACsize");
+ const std::vector<uint8_t> record = vars.get_req_bin("Record");
+ const bool is_valid = vars.get_req_sz("Valid") == 1;
// todo test permutations
bool explicit_iv = true;