aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_tls_cbc.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-01-28 16:12:25 -0500
committerJack Lloyd <[email protected]>2018-01-28 16:12:25 -0500
commitec2718a583ee6a4c6273fa0b2b8f86c961eb1d94 (patch)
treeb9263c9f4e674c2566f99126ef8a9d1f5d02d8d4 /src/tests/test_tls_cbc.cpp
parentaa2d16c81404ced37df474ab49fa980739e29294 (diff)
Move generic TLS tests to test_tls.cpp
Leaves unit_tls.cpp for the handshake level tests. Add some basic tests of the string<->enum conversions in tls_algos.h
Diffstat (limited to 'src/tests/test_tls_cbc.cpp')
-rw-r--r--src/tests/test_tls_cbc.cpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/src/tests/test_tls_cbc.cpp b/src/tests/test_tls_cbc.cpp
deleted file mode 100644
index b8359d483..000000000
--- a/src/tests/test_tls_cbc.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
-* (C) 2017 Jack Lloyd
-*
-* Botan is released under the Simplified BSD License (see license.txt)
-*/
-
-#include "tests.h"
-
-#if defined(BOTAN_HAS_TLS_CBC)
- #include <botan/internal/tls_cbc.h>
-#endif
-
-namespace Botan_Tests {
-
-#if defined(BOTAN_HAS_TLS_CBC)
-
-class TLS_CBC_Padding_Tests final : public Text_Based_Test
- {
- public:
- TLS_CBC_Padding_Tests() : Text_Based_Test("tls_cbc.vec", "Record,Output") {}
-
- 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");
-
- uint16_t res = Botan::TLS::check_tls_cbc_padding(record.data(), record.size());
-
- Test::Result result("TLS CBC padding check");
- result.test_eq("Expected", res, output);
- return result;
- }
- };
-
-BOTAN_REGISTER_TEST("tls_cbc_padding", TLS_CBC_Padding_Tests);
-
-#endif
-
-}
-