block some RPC commands from being used remotely

This commit is contained in:
jed
2012-06-22 09:14:45 -07:00
parent f91ab9d011
commit ab15f65aeb
4 changed files with 78 additions and 40 deletions

View File

@@ -22,6 +22,7 @@ public:
// Misc failure
rpcLOAD_FAILED,
rpcNO_PERMISSION,
// Networking
rpcNO_CLOSED,
@@ -87,6 +88,9 @@ private:
HttpRequest mIncomingRequest;
HttpRequestParser mRequestParser;
enum { GUEST, USER, ADMIN };
int mRole;
RPCServer(boost::asio::io_service& io_service, NetworkOPs* nopNetwork);
RPCServer(const RPCServer&); // no implementation
@@ -159,6 +163,8 @@ private:
Json::Value doWalletUnlock(Json::Value& params);
Json::Value doWalletVerify(Json::Value& params);
Json::Value doLogin(Json::Value& params);
public:
typedef boost::shared_ptr<RPCServer> pointer;