Changeset View
Changeset View
Standalone View
Standalone View
src/httprpc.cpp
Show All 14 Lines | |||||
#include <sync.h> | #include <sync.h> | ||||
#include <ui_interface.h> | #include <ui_interface.h> | ||||
#include <util/strencodings.h> | #include <util/strencodings.h> | ||||
#include <util/system.h> | #include <util/system.h> | ||||
#include <boost/algorithm/string.hpp> // boost::trim | #include <boost/algorithm/string.hpp> // boost::trim | ||||
#include <cstdio> | #include <cstdio> | ||||
#include <memory> | |||||
/** WWW-Authenticate to present with 401 Unauthorized response */ | /** WWW-Authenticate to present with 401 Unauthorized response */ | ||||
static const char *WWW_AUTH_HEADER_DATA = "Basic realm=\"jsonrpc\""; | static const char *WWW_AUTH_HEADER_DATA = "Basic realm=\"jsonrpc\""; | ||||
/** RPC auth failure delay to make brute-forcing expensive */ | /** RPC auth failure delay to make brute-forcing expensive */ | ||||
static const int64_t RPC_AUTH_BRUTE_FORCE_DELAY = 250; | static const int64_t RPC_AUTH_BRUTE_FORCE_DELAY = 250; | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 386 Lines • Show Last 20 Lines |