initial attempt at verifying the certificate of ssl trackers, by including the certificate in the .torrent file
This commit is contained in:
@@ -216,7 +216,11 @@ namespace libtorrent
|
||||
, boost::bind(&http_tracker_connection::on_response, self(), _1, _2, _3, _4)
|
||||
, true
|
||||
, boost::bind(&http_tracker_connection::on_connect, self(), _1)
|
||||
, boost::bind(&http_tracker_connection::on_filter, self(), _1, _2)));
|
||||
, boost::bind(&http_tracker_connection::on_filter, self(), _1, _2)
|
||||
#ifdef TORRENT_USE_OPENSSL
|
||||
, tracker_req().ssl_ctx
|
||||
#endif
|
||||
));
|
||||
|
||||
int timeout = tracker_req().event==tracker_request::stopped
|
||||
?settings.stop_tracker_timeout
|
||||
|
Reference in New Issue
Block a user