Set CURLOPT_SSL_VERIFYHOST explicitly.
The default value for CURLOPT_SSL_VERIFYHOST is already 2, but it
doesn't hurt to make that value explicit, as we do with
CURLOPT_SSL_VERIFYPEER.
Bug: 29603063
Change-Id: I89a07a905f959bab889da02a4cb6c9be714887cb
TEST: Sent a payload request to an https:// URL, still works.
diff --git a/common/libcurl_http_fetcher.cc b/common/libcurl_http_fetcher.cc
index 9e40eeb..a222139 100644
--- a/common/libcurl_http_fetcher.cc
+++ b/common/libcurl_http_fetcher.cc
@@ -249,6 +249,8 @@
LOG(INFO) << "Setting up curl options for HTTPS";
CHECK_EQ(curl_easy_setopt(curl_handle_, CURLOPT_SSL_VERIFYPEER, 1),
CURLE_OK);
+ CHECK_EQ(curl_easy_setopt(curl_handle_, CURLOPT_SSL_VERIFYHOST, 2),
+ CURLE_OK);
CHECK_EQ(curl_easy_setopt(curl_handle_, CURLOPT_CAPATH,
constants::kCACertificatesPath),
CURLE_OK);