From b22d4c1607b6488b378d3427a708bd71f12f7276 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Sun, 7 Jun 2020 16:59:46 +0000 Subject: fuzz: Add fuzzing harness for Socks5(...) --- src/netbase.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/netbase.h') diff --git a/src/netbase.h b/src/netbase.h index 847a72ca8e..b225f128e7 100644 --- a/src/netbase.h +++ b/src/netbase.h @@ -40,6 +40,13 @@ public: bool randomize_credentials; }; +/** Credentials for proxy authentication */ +struct ProxyCredentials +{ + std::string username; + std::string password; +}; + enum Network ParseNetwork(const std::string& net); std::string GetNetworkName(enum Network net); /** Return a vector of publicly routable Network names; optionally append NET_UNROUTABLE. */ @@ -77,4 +84,6 @@ bool SetSocketNonBlocking(const SOCKET& hSocket, bool fNonBlocking); bool SetSocketNoDelay(const SOCKET& hSocket); void InterruptSocks5(bool interrupt); +bool Socks5(const std::string& strDest, int port, const ProxyCredentials* auth, const Sock& socket); + #endif // BITCOIN_NETBASE_H -- cgit v1.2.3