From 90515dfa50c676df37f440893de6e344fbfd2cdc Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 30 Sep 2012 00:50:14 +0900 Subject: RPC over SSL/TLS transport To enable RPC over SSL/TLS, specify server certificate and private key using --rpc-certificate and --rpc-private-key options and enable --rpc-secure option. After the encryption is enabled, use https and wss scheme to access RPC server. --- src/HttpServerBodyCommand.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/HttpServerBodyCommand.h') diff --git a/src/HttpServerBodyCommand.h b/src/HttpServerBodyCommand.h index 30ed7851..46c86919 100644 --- a/src/HttpServerBodyCommand.h +++ b/src/HttpServerBodyCommand.h @@ -53,6 +53,8 @@ private: SharedHandle socket_; SharedHandle httpServer_; Timer timeoutTimer_; + bool writeCheck_; + void sendJsonRpcErrorResponse (const std::string& httpStatus, int code, @@ -66,6 +68,7 @@ private: (const std::vector& results, const std::string& callback); void addHttpServerResponseCommand(); + void updateWriteCheck(); public: HttpServerBodyCommand(cuid_t cuid, const SharedHandle& httpServer, @@ -73,10 +76,10 @@ public: const SharedHandle& socket); virtual ~HttpServerBodyCommand(); - + virtual bool execute(); }; -} // namespace aria2 +} // namespace aria2 #endif // D_HTTP_SERVER_BODY_COMMAND_H -- cgit