mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-12 21:22:31 +00:00
Added config parameter network.http.ssl_verify_host to support certificates.
Added config parameter network.http.ssl_verify_host to support certificates with a mismatched or empty CN. Default is 2 (verify name match). Use 1 to simply verify the presence of a name or 0 to allow for missing names.
This commit is contained in:
@@ -52,7 +52,8 @@ CurlStack::CurlStack() :
|
||||
m_active(0),
|
||||
m_maxActive(32),
|
||||
m_ssl_verify_peer(true),
|
||||
m_dns_timeout(60) {
|
||||
m_dns_timeout(60),
|
||||
m_ssl_verify_host(2) {
|
||||
|
||||
m_taskTimeout.slot() = std::tr1::bind(&CurlStack::receive_timeout, this);
|
||||
|
||||
@@ -167,6 +168,7 @@ CurlStack::add_get(CurlGet* get) {
|
||||
|
||||
curl_easy_setopt(get->handle(), CURLOPT_SSL_VERIFYPEER, (long)m_ssl_verify_peer);
|
||||
curl_easy_setopt(get->handle(), CURLOPT_DNS_CACHE_TIMEOUT, m_dns_timeout);
|
||||
curl_easy_setopt(get->handle(), CURLOPT_SSL_VERIFYHOST, m_ssl_verify_host);
|
||||
|
||||
base_type::push_back(get);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user