diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-02-02 17:34:07 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-02-02 17:34:07 +0900 |
| commit | 7f6987a4b4950e77597fd1a4fd5d8c60e6209f07 (patch) | |
| tree | 8f7e29ddad65e1bf61abb406f01a4a342536c9f4 /src/RpcMethodImpl.h | |
| parent | 30e4077440e93a9e78cf55a3a1a4e295ae5e9a72 (diff) | |
Implement new RPC authorization using --rpc-secret option
Diffstat (limited to 'src/RpcMethodImpl.h')
| -rw-r--r-- | src/RpcMethodImpl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/RpcMethodImpl.h b/src/RpcMethodImpl.h index 5671d3f9..b20087ae 100644 --- a/src/RpcMethodImpl.h +++ b/src/RpcMethodImpl.h @@ -572,6 +572,14 @@ protected: virtual std::unique_ptr<ValueBase> process (const RpcRequest& req, DownloadEngine* e) CXX11_OVERRIDE; public: + virtual void authorize(RpcRequest& req, DownloadEngine* e) CXX11_OVERRIDE + { + // Batch calls (e.g., system.multicall) authorizes only nested + // methods. This is because XML-RPC system.multicall only accpets + // methods array and there is no room for us to insert token + // parameter. + } + static const char* getMethodName() { return "system.multicall"; |
