From 21e43940d00147a683e30b519c7138163629b19d Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Fri, 9 Oct 2015 09:24:12 -0400 Subject: [PATCH] Fix documentation of HTTPS in the remote backend. This changes the documentation to be consistent with the code, namely that HTTPS is not supported. Additionally, removes two parameters on the HttpConnector object that were unused due to 527f007409d5779155713a935561706e7f60dad6 and 1d0cc63227f1c7d0b15f873a2088c39ff354f73c. --- docs/markdown/authoritative/backend-remote.md | 4 ++-- modules/remotebackend/remotebackend.hh | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/markdown/authoritative/backend-remote.md b/docs/markdown/authoritative/backend-remote.md index b73a76483..444f28e8f 100644 --- a/docs/markdown/authoritative/backend-remote.md +++ b/docs/markdown/authoritative/backend-remote.md @@ -49,7 +49,7 @@ remote-connection-string=pipe:command=/path/to/executable,timeout=2000 ``` ### HTTP connector -parameters: url, url-suffix, post, post\_json, cafile, capath, timeout (default 2000) +parameters: url, url-suffix, post, post\_json, timeout (default 2000) ``` remote-connection-string=http:url=http://localhost:63636/dns,url-suffix=.php @@ -59,7 +59,7 @@ HTTP connector tries to do RESTful requests to your server. See examples. You ca URL should not end with /, and url-suffix is optional, but if you define it, it's up to you to write the ".php" or ".json". Lack of dot causes lack of dot in URL. Timeout is divided by 1000 because libcurl only supports seconds, but this is given in milliseconds for consistency with other connectors. -You can use HTTPS requests. If cafile and capath is left empty, remote SSL certificate is not checked. HTTP Authentication is not supported. SSL support requires that your cURL is compiled with it. +HTTPS is not supported. HTTP Authentication is not supported. ### ZeroMQ connector parameters: endpoint, timeout (default 2000ms) diff --git a/modules/remotebackend/remotebackend.hh b/modules/remotebackend/remotebackend.hh index b1b18083a..4f7886a76 100644 --- a/modules/remotebackend/remotebackend.hh +++ b/modules/remotebackend/remotebackend.hh @@ -76,8 +76,6 @@ class HTTPConnector: public Connector { int timeout; bool d_post; bool d_post_json; - std::string d_capath; - std::string d_cafile; bool json2string(const rapidjson::Value &input, std::string &output); void restful_requestbuilder(const std::string &method, const rapidjson::Value ¶meters, YaHTTP::Request& req); void post_requestbuilder(const rapidjson::Document &input, YaHTTP::Request& req); -- 2.40.0