mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 06:02: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:
@@ -106,6 +106,9 @@ class CurlStack : std::deque<CurlGet*> {
|
||||
long dns_timeout() const { return m_dns_timeout; }
|
||||
void set_dns_timeout(long timeout) { m_dns_timeout = timeout; }
|
||||
|
||||
long ssl_verify_host() const { return m_ssl_verify_host; }
|
||||
void set_ssl_verify_host(long s) { m_ssl_verify_host = s; }
|
||||
|
||||
static void global_init();
|
||||
static void global_cleanup();
|
||||
|
||||
@@ -140,6 +143,7 @@ class CurlStack : std::deque<CurlGet*> {
|
||||
|
||||
bool m_ssl_verify_peer;
|
||||
long m_dns_timeout;
|
||||
long m_ssl_verify_host;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user