Bitcoin ABC 0.26.3
P2P Digital Currency
|
#include <httprpc.h>
#include <chainparams.h>
#include <common/args.h>
#include <config.h>
#include <crypto/hmac_sha256.h>
#include <logging.h>
#include <rpc/protocol.h>
#include <util/strencodings.h>
#include <util/string.h>
#include <util/translation.h>
#include <walletinitinterface.h>
#include <boost/algorithm/string.hpp>
#include <algorithm>
#include <cstdio>
#include <functional>
#include <iterator>
#include <map>
#include <memory>
#include <set>
#include <string>
Go to the source code of this file.
Classes | |
class | HTTPRPCTimer |
Simple one-shot callback timer to be used by the RPC mechanism to e.g. More... | |
class | HTTPRPCTimerInterface |
Functions | |
static void | JSONErrorReply (HTTPRequest *req, const UniValue &objError, const UniValue &id) |
static bool | multiUserAuthorized (std::string strUserPass) |
static bool | RPCAuthorized (const std::string &strAuth, std::string &strAuthUsernameOut) |
static bool | checkCORS (HTTPRequest *req) |
static bool | InitRPCAuthentication () |
bool | StartHTTPRPC (HTTPRPCRequestProcessor &httpRPCRequestProcessor) |
Start HTTP RPC subsystem. | |
void | InterruptHTTPRPC () |
Interrupt HTTP RPC subsystem. | |
void | StopHTTPRPC () |
Stop HTTP RPC subsystem. | |
Variables | |
static const char * | WWW_AUTH_HEADER_DATA = "Basic realm=\"jsonrpc\"" |
WWW-Authenticate to present with 401 Unauthorized response. | |
static const int64_t | RPC_AUTH_BRUTE_FORCE_DELAY = 250 |
RPC auth failure delay to make brute-forcing expensive. | |
static std::string | strRPCUserColonPass |
static std::string | strRPCCORSDomain |
static std::unique_ptr< HTTPRPCTimerInterface > | httpRPCTimerInterface |
static std::map< std::string, std::set< std::string > > | g_rpc_whitelist |
static bool | g_rpc_whitelist_default = false |
|
static |
Definition at line 174 of file httprpc.cpp.
Definition at line 409 of file httprpc.cpp.
void InterruptHTTPRPC | ( | ) |
Interrupt HTTP RPC subsystem.
Definition at line 477 of file httprpc.cpp.
|
static |
Definition at line 79 of file httprpc.cpp.
Definition at line 101 of file httprpc.cpp.
Definition at line 143 of file httprpc.cpp.
bool StartHTTPRPC | ( | HTTPRPCRequestProcessor & | httpRPCRequestProcessor | ) |
Start HTTP RPC subsystem.
Precondition; HTTP and RPC has been started.
Definition at line 456 of file httprpc.cpp.
void StopHTTPRPC | ( | ) |
Stop HTTP RPC subsystem.
Precondition; HTTP and RPC has been stopped.
Definition at line 481 of file httprpc.cpp.
Definition at line 76 of file httprpc.cpp.
Definition at line 77 of file httprpc.cpp.
|
static |
Definition at line 74 of file httprpc.cpp.
|
static |
RPC auth failure delay to make brute-forcing expensive.
Definition at line 33 of file httprpc.cpp.
|
static |
Definition at line 72 of file httprpc.cpp.
|
static |
Definition at line 70 of file httprpc.cpp.
|
static |
WWW-Authenticate to present with 401 Unauthorized response.
Definition at line 30 of file httprpc.cpp.