Disable SSL verify option 85/249085/1 accepted/tizen/unified/20201209.124926 submit/tizen/20201208.040226
authorYu <jiung.yu@samsung.com>
Mon, 7 Dec 2020 04:29:33 +0000 (13:29 +0900)
committerYu <jiung.yu@samsung.com>
Mon, 7 Dec 2020 04:32:55 +0000 (13:32 +0900)
Description: Sometimes there's case that target device has
different certification folder. Default certification location is
/etc/ssl for curl.
[
Change-Id: Ie7330d3f8b4c637cfa86ef2aba6fb00646c0814a
Signed-off-by: Yu Jiung <jiung.yu@samsung.com>
packaging/inm-manager.spec
src/inm-reacher.c

index f7818c20f0c2f467399cfd675c89f64ffe88fd41..761ccd44f3689c06e2886f994c89a10ce42a0720 100644 (file)
@@ -2,7 +2,7 @@
 
 Name:       inm-manager
 Summary:    INM(Intelligent Network Monitoring) daemon
-Version:    0.0.31
+Version:    0.0.32
 Release:    1
 Group:      Network & Connectivity/Other
 License:    Apache-2.0
index 008e6490c89516bc243b4660ae888a9ae7b7adbd..205a0642d1f58d0f3a941cf1e3b1b9f3a41df816 100644 (file)
@@ -233,6 +233,8 @@ static inline int __add_easy_to_multi(conn_info_s *conn)
        curl_easy_setopt(p_eh, CURLOPT_LOW_SPEED_TIME, 30L);
        curl_easy_setopt(p_eh, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
        curl_easy_setopt(p_eh, CURLOPT_URL, conn->url);
+       curl_easy_setopt(p_eh, CURLOPT_SSL_VERIFYPEER, 0L);
+       curl_easy_setopt(p_eh, CURLOPT_SSL_VERIFYHOST, 0L);
        ret = curl_multi_add_handle(g_reacher->p_mh, p_eh);
        /* Check for errors */
        if (ret != CURLE_OK) {