]> git.stg.codes - ssmd.git/commitdiff
Disabled verifying cert host.
authorMaxim Mamontov <faust.madf@gmail.com>
Tue, 16 Sep 2014 19:05:38 +0000 (22:05 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Tue, 16 Sep 2014 19:05:38 +0000 (22:05 +0300)
Makefile
src/syncer.cpp

index ad08280c53b744c73e80359af424e54c8bbb7540..45aef9a28ae52d773390a5a21aead017d75d2dc3 100644 (file)
--- 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 \
index b8a22b2ae3c7836aa31cfa4b10f143552ac3f2c4..fefd843259cd7f1ce55a43dba4c67ecd169df60c 100644 (file)
@@ -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