diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2020-06-07 16:59:46 +0000 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2021-03-02 21:43:42 +0000 |
commit | b22d4c1607b6488b378d3427a708bd71f12f7276 (patch) | |
tree | 0ccf88ba2948a72de3c8b31fdcb1cf0ccacdd05c /src/netbase.h | |
parent | b9f41df1ead4b6a83a51fc41966b111c8459c313 (diff) |
fuzz: Add fuzzing harness for Socks5(...)
Diffstat (limited to 'src/netbase.h')
-rw-r--r-- | src/netbase.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 |