48 auto* auth = fuzzed_data_provider.
ConsumeBool() ? &proxy_credentials :
nullptr;
49 (void)
Socks5(str_dest, port, auth, fuzzed_sock);
std::string ConsumeRandomLengthString(size_t max_length)
std::chrono::milliseconds g_socks5_recv_timeout
CThreadInterrupt g_socks5_interrupt
Interrupt SOCKS5 reads or writes.
bool Socks5(const std::string &strDest, uint16_t port, const ProxyCredentials *auth, const Sock &sock)
Connect to a specified destination service through an already connected SOCKS5 proxy.
std::unique_ptr< T > MakeNoLogFileContext(const ChainType chain_type=ChainType::REGTEST, TestOpts opts={})
Make a test setup that has disk access to the debug.log file disabled.
Credentials for proxy authentication.
FuzzedSock ConsumeSock(FuzzedDataProvider &fuzzed_data_provider)
NodeSeconds ConsumeTime(FuzzedDataProvider &fuzzed_data_provider, const std::optional< int64_t > &min, const std::optional< int64_t > &max) noexcept
void SetMockTime(int64_t nMockTimeIn)
DEPRECATED Use SetMockTime with chrono type.