aboutsummaryrefslogtreecommitdiffstats
path: root/checks/misc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'checks/misc.cpp')
-rw-r--r--checks/misc.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/checks/misc.cpp b/checks/misc.cpp
index ff95ed10f..31bc60435 100644
--- a/checks/misc.cpp
+++ b/checks/misc.cpp
@@ -8,10 +8,6 @@
#include <vector>
#include <string>
-#include <botan/pipe.h>
-#include <botan/hex.h>
-using namespace Botan;
-
#include "common.h"
void strip_comments(std::string& line)
@@ -40,29 +36,6 @@ void strip(std::string& line)
line = line.erase(line.find('\t'), 1);
}
-SecureVector<byte> decode_hex(const std::string& in)
- {
- SecureVector<byte> result;
-
- try {
- Botan::Pipe pipe(new Botan::Hex_Decoder);
- pipe.process_msg(in);
- result = pipe.read_all();
- }
- catch(std::exception)
- {
- result.destroy();
- }
- return result;
- }
-
-std::string hex_encode(const byte in[], u32bit len)
- {
- Botan::Pipe pipe(new Botan::Hex_Encoder);
- pipe.process_msg(in, len);
- return pipe.read_all_as_string();
- }
-
std::vector<std::string> parse(const std::string& line)
{
const char DELIMITER = ':';