Wrong setting when verifyHost is false.
authorcantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Wed, 4 Feb 2009 20:11:23 +0000 (20:11 +0000)
committercantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Wed, 4 Feb 2009 20:11:23 +0000 (20:11 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/branches/REL_1@560 de75baf8-a10c-0410-a50a-987c0e22f00f

xmltooling/util/CurlURLInputStream.cpp

index 59ad097..7b84e91 100644 (file)
@@ -166,7 +166,7 @@ void CurlURLInputStream::init(const DOMElement* e)
     if (e) {
         const XMLCh* flag = e->getAttributeNS(NULL, verifyHost);
         if (flag && (*flag == chLatin_f || *flag == chDigit_0))
-            curl_easy_setopt(fEasy, CURLOPT_SSL_VERIFYHOST, 2);
+            curl_easy_setopt(fEasy, CURLOPT_SSL_VERIFYHOST, 0);
 
         // Process TransportOption elements.
         bool success;