diff --git a/src/test/torcontrol_tests.cpp b/src/test/torcontrol_tests.cpp --- a/src/test/torcontrol_tests.cpp +++ b/src/test/torcontrol_tests.cpp @@ -3,10 +3,17 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. // #include -#include +#include #include +#include +#include +#include + +std::pair SplitTorReplyLine(const std::string &s); +std::map ParseTorReplyMapping(const std::string &s); + BOOST_FIXTURE_TEST_SUITE(torcontrol_tests, BasicTestingSetup) static void CheckSplitTorReplyLine(std::string input, std::string command, diff --git a/src/torcontrol.cpp b/src/torcontrol.cpp --- a/src/torcontrol.cpp +++ b/src/torcontrol.cpp @@ -274,8 +274,7 @@ * Grammar is implicitly defined in https://spec.torproject.org/control-spec by * the server reply formats for PROTOCOLINFO (S3.21) and AUTHCHALLENGE (S3.24). */ -static std::pair -SplitTorReplyLine(const std::string &s) { +std::pair SplitTorReplyLine(const std::string &s) { size_t ptr = 0; std::string type; while (ptr < s.size() && s[ptr] != ' ') { @@ -297,8 +296,7 @@ * the server reply formats for PROTOCOLINFO (S3.21), AUTHCHALLENGE (S3.24), * and ADD_ONION (S3.27). See also sections 2.1 and 2.3. */ -static std::map -ParseTorReplyMapping(const std::string &s) { +std::map ParseTorReplyMapping(const std::string &s) { std::map mapping; size_t ptr = 0; while (ptr < s.size()) {