From 240ebb9fb716bf5255d080a522bac146c5f18609 Mon Sep 17 00:00:00 2001 From: Omar Kallel Date: Tue, 15 Jan 2019 11:30:11 +0100 Subject: [PATCH] Ticket refs #16589: cwmp curl certificate check fail --- http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http.c b/http.c index 87c243f..2c4f9d3 100644 --- a/http.c +++ b/http.c @@ -241,7 +241,7 @@ http_send_message(struct cwmp *cwmp, char *msg_out, int msg_out_len,char **msg_i curl_easy_setopt(curl, CURLOPT_COOKIEJAR, fc_cookies); if (cwmp->conf.acs_ssl_capath) - curl_easy_setopt(curl, CURLOPT_CAPATH, cwmp->conf.acs_ssl_capath); + curl_easy_setopt(curl, CURLOPT_CAINFO, cwmp->conf.acs_ssl_capath); if (cwmp->conf.insecure_enable) { curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, false); curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);