From b45a4adc43ce4e58db3fd2001eecf9c4f4e3d8b4 Mon Sep 17 00:00:00 2001 From: anis Ellouze Date: Thu, 10 Sep 2015 10:42:01 +0100 Subject: [PATCH] fiw compilation issue since CURL_SSLVERSION_SSLv3 is no more used --- http.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/http.c b/http.c index 49385f3..d6e2ae5 100644 --- a/http.c +++ b/http.c @@ -188,26 +188,10 @@ http_send_message(struct cwmp *cwmp, char *msg_out, char **msg_in) curl_easy_setopt(curl, CURLOPT_COOKIEFILE, fc_cookies); curl_easy_setopt(curl, CURLOPT_COOKIEJAR, fc_cookies); - - if (cwmp->conf.acs_ssl_version) { - if (strcmp(cwmp->conf.acs_ssl_version, "sslv3") == 0) - curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_SSLv3); - else if (strcmp(cwmp->conf.acs_ssl_version, "sslv2") == 0) - curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_SSLv2); - else if (strcmp(cwmp->conf.acs_ssl_version, "tlsv1") == 0) - curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1); - else if (strcmp(cwmp->conf.acs_ssl_version, "tlsv1.0") == 0) - curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_0); - else if (strcmp(cwmp->conf.acs_ssl_version, "tlsv1.1") == 0) - curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_1); - else if (strcmp(cwmp->conf.acs_ssl_version, "tlsv1.2") == 0) - curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1_2); - } if (cwmp->conf.acs_ssl_capath) curl_easy_setopt(curl, CURLOPT_CAPATH, cwmp->conf.acs_ssl_capath); - *msg_in = (char *) calloc (1, sizeof(char)); res = curl_easy_perform(curl);