aboutsummaryrefslogtreecommitdiff
path: root/src/netbase.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2020-06-07 16:59:46 +0000
committerpracticalswift <practicalswift@users.noreply.github.com>2021-03-02 21:43:42 +0000
commitb22d4c1607b6488b378d3427a708bd71f12f7276 (patch)
tree0ccf88ba2948a72de3c8b31fdcb1cf0ccacdd05c /src/netbase.cpp
parentb9f41df1ead4b6a83a51fc41966b111c8459c313 (diff)
fuzz: Add fuzzing harness for Socks5(...)
Diffstat (limited to 'src/netbase.cpp')
-rw-r--r--src/netbase.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/netbase.cpp b/src/netbase.cpp
index 7dc616080d..53d786084b 100644
--- a/src/netbase.cpp
+++ b/src/netbase.cpp
@@ -389,13 +389,6 @@ static IntrRecvError InterruptibleRecv(uint8_t* data, size_t len, int timeout, c
return len == 0 ? IntrRecvError::OK : IntrRecvError::Timeout;
}
-/** Credentials for proxy authentication */
-struct ProxyCredentials
-{
- std::string username;
- std::string password;
-};
-
/** Convert SOCKS5 reply to an error message */
static std::string Socks5ErrorString(uint8_t err)
{
@@ -439,7 +432,7 @@ static std::string Socks5ErrorString(uint8_t err)
* @see <a href="https://www.ietf.org/rfc/rfc1928.txt">RFC1928: SOCKS Protocol
* Version 5</a>
*/
-static bool Socks5(const std::string& strDest, int port, const ProxyCredentials* auth, const Sock& sock)
+bool Socks5(const std::string& strDest, int port, const ProxyCredentials* auth, const Sock& sock)
{
IntrRecvError recvr;
LogPrint(BCLog::NET, "SOCKS5 connecting %s\n", strDest);