]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/httpclient.php
ssl_verify_host option in config (default is true)
[quix0rs-gnu-social.git] / lib / httpclient.php
index 960cd400f4247284cfd3199c5858af8fe865d6e9..3e9f5d3ea746c562c9e5f6d42767d02cf389379b 100644 (file)
@@ -145,6 +145,10 @@ class HTTPClient extends HTTP_Request2
             $this->config['ssl_verify_peer'] = false;
         }
 
+        // This means "verify the cert hostname against what we connect to", it does not
+        // imply CA trust or anything like that. Just the hostname.
+        $this->config['ssl_verify_host'] = common_config('http', 'ssl_verify_host');
+
         if (common_config('http', 'curl') && extension_loaded('curl')) {
             $this->config['adapter'] = 'HTTP_Request2_Adapter_Curl';
         }