From: Maxim Mamontov Date: Tue, 16 Sep 2014 19:05:38 +0000 (+0300) Subject: Disabled verifying cert host. X-Git-Url: https://git.stg.codes/ssmd.git/commitdiff_plain/0bfa03722f65de7d08bfb8665054bff68e25ea20 Disabled verifying cert host. --- diff --git a/Makefile b/Makefile index ad08280..45aef9a 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ LIBS = 3rdparty/snmp++/libsnmp++.a \ -lcrypto \ -lpthread PROG = ssmd # SNMP Switch Management Daemon -VERSION = 1.1.6 +VERSION = 1.1.7 SOURCES = src/main.cpp \ src/pidfile.cpp \ diff --git a/src/syncer.cpp b/src/syncer.cpp index b8a22b2..fefd843 100644 --- a/src/syncer.cpp +++ b/src/syncer.cpp @@ -166,6 +166,7 @@ bool Syncer::getDBData(std::string & data) const if (handle) { char errorBuffer[CURL_ERROR_SIZE]; curl_easy_setopt(handle, CURLOPT_SSL_VERIFYPEER, 0); // Accept self-signed certs + curl_easy_setopt(handle, CURLOPT_SSL_VERIFYHOST, 0); // Accept certs for wrong hosts curl_easy_setopt(handle, CURLOPT_LOW_SPEED_LIMIT, 1); // Less than 1 bps curl_easy_setopt(handle, CURLOPT_LOW_SPEED_TIME, 60); // During 60 secs curl_easy_setopt(handle, CURLOPT_URL, _settingsParser.settings().dataURL().c_str()); // Our URL