From b49fa9658a436c31ffc40100d5a55bee5a3f861e Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 29 Dec 2017 12:50:12 +0100 Subject: Tools/Patcher: Properly sign certificate bundle --- src/tools/connection_patcher/Helper.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/tools/connection_patcher/Helper.cpp') diff --git a/src/tools/connection_patcher/Helper.cpp b/src/tools/connection_patcher/Helper.cpp index 50ad301132d..3dc1b10b9cf 100644 --- a/src/tools/connection_patcher/Helper.cpp +++ b/src/tools/connection_patcher/Helper.cpp @@ -126,15 +126,6 @@ namespace Connection_Patcher return Constants::BinaryTypes(*reinterpret_cast(data.data())); } - std::string GetFileChecksum(std::vector const& data) - { - SHA256Hash h; - h.UpdateData(data.data(), data.size()); - h.Finalize(); - - return ByteArrayToHexStr(h.GetDigest(), h.GetLength()); - } - std::set SearchOffset(std::vector const& binary, std::vector const& pattern) { std::set offsets; @@ -144,12 +135,6 @@ namespace Connection_Patcher for (size_t j = 0; j < pattern.size(); j++) { - if (pattern[j] == 0) - { - matches++; - continue; - } - if (binary[i + j] != pattern[j]) break; -- cgit v1.2.3