diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-30 00:50:14 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-30 00:50:14 +0900 |
| commit | 90515dfa50c676df37f440893de6e344fbfd2cdc (patch) | |
| tree | 257d86e0614b6eb0ea8e9384af3269d60a53dbbc /src/HttpServer.h | |
| parent | 4b94ede268ff2ff793b22a0730dcbda09d280618 (diff) | |
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.
Diffstat (limited to 'src/HttpServer.h')
| -rw-r--r-- | src/HttpServer.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/HttpServer.h b/src/HttpServer.h index c5b01530..602458e2 100644 --- a/src/HttpServer.h +++ b/src/HttpServer.h @@ -82,6 +82,7 @@ private: std::string password_; bool acceptsGZip_; std::string allowOrigin_; + bool secure_; public: HttpServer(const SharedHandle<SocketCore>& socket, DownloadEngine* e); @@ -178,6 +179,19 @@ public: { return lastRequestHeader_; } + + void setSecure(bool f) + { + secure_ = f; + } + + bool getSecure() const + { + return secure_; + } + + bool wantRead() const; + bool wantWrite() const; }; } // namespace aria2 |
