Improve SSLHTTPDownloader:

* Use TLS 1.2
* Make certificate verification configurable
This commit is contained in:
Miguel Portilla
2019-01-11 15:59:36 -05:00
committed by Nik Bougalis
parent 1084dc6dd3
commit 56bc2a2ade
2 changed files with 47 additions and 18 deletions

View File

@@ -65,8 +65,10 @@ public:
private:
boost::asio::ssl::context ctx_;
boost::asio::io_service::strand strand_;
boost::asio::ssl::stream<boost::asio::ip::tcp::socket> stream_;
boost::optional<
boost::asio::ssl::stream<boost::asio::ip::tcp::socket>> stream_;
boost::beast::flat_buffer read_buf_;
bool ssl_verify_;
beast::Journal j_;
void