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:
Mike Valentine
2014-04-12 14:06:22 -04:00
parent 38f39bdb23
commit 24f84214c8
3 changed files with 9 additions and 1 deletions
+4
View File
@@ -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;
};
}