![]() |
Bitcoin Core 32.99.0
P2P Digital Currency
|
#include <httprpc.h>#include <common/args.h>#include <crypto/hmac_sha256.h>#include <httpserver.h>#include <netaddress.h>#include <rpc/protocol.h>#include <rpc/server.h>#include <util/fs.h>#include <util/fs_helpers.h>#include <util/log.h>#include <util/strencodings.h>#include <util/string.h>#include <walletinitinterface.h>#include <algorithm>#include <iterator>#include <map>#include <memory>#include <optional>#include <set>#include <string>#include <vector>Go to the source code of this file.
Functions | |
| static UniValue | JSONErrorReply (UniValue objError, const JSONRPCRequest &jreq, HTTPStatusCode &nStatus) |
| static bool | CheckUserAuthorized (std::string_view user, std::string_view pass) |
| static bool | RPCAuthorized (const std::string &strAuth, std::string &strAuthUsernameOut) |
| UniValue | ExecuteHTTPRPC (const UniValue &valRequest, JSONRPCRequest &jreq, HTTPStatusCode &status) |
| Execute a single HTTP request containing one or more JSONRPC requests. | |
| static void | HTTPReq_JSONRPC (const std::any &context, HTTPRequest *req) |
| static bool | InitRPCAuthentication () |
| bool | StartHTTPRPC (const std::any &context) |
| 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 std::vector< std::vector< std::string > > | g_rpcauth |
| static std::map< std::string, std::set< std::string > > | g_rpc_whitelist |
| static bool | g_rpc_whitelist_default = false |
|
static |
Definition at line 62 of file httprpc.cpp.
| UniValue ExecuteHTTPRPC | ( | const UniValue & | valRequest, |
| JSONRPCRequest & | jreq, | ||
| HTTPStatusCode & | status | ||
| ) |
Execute a single HTTP request containing one or more JSONRPC requests.
Specified jreq will be modified and status will be returned.
Definition at line 103 of file httprpc.cpp.
|
static |
Definition at line 196 of file httprpc.cpp.
Definition at line 248 of file httprpc.cpp.
| void InterruptHTTPRPC | ( | ) |
Interrupt HTTP RPC subsystem.
Definition at line 353 of file httprpc.cpp.
|
static |
Definition at line 41 of file httprpc.cpp.
Definition at line 83 of file httprpc.cpp.
Start HTTP RPC subsystem.
Precondition; HTTP and RPC has been started.
Definition at line 339 of file httprpc.cpp.
| void StopHTTPRPC | ( | ) |
Stop HTTP RPC subsystem.
Precondition; HTTP and RPC has been stopped.
Definition at line 358 of file httprpc.cpp.
|
static |
Definition at line 38 of file httprpc.cpp.
Definition at line 39 of file httprpc.cpp.
|
static |
Definition at line 36 of file httprpc.cpp.
|
static |
WWW-Authenticate to present with 401 Unauthorized response.
Definition at line 33 of file httprpc.cpp.