Deprecate pubkey-pinning 56/226356/2 accepted/tizen/unified/20200304.123854 submit/tizen/20200304.015236
authorSangwan Kwon <sangwan.kwon@samsung.com>
Mon, 2 Mar 2020 03:56:22 +0000 (12:56 +0900)
committerSangwan Kwon <sangwan.kwon@samsung.com>
Wed, 4 Mar 2020 01:14:34 +0000 (10:14 +0900)
Pubkey pinning is not supported from tizen-6.0.

Change-Id: Ie3541d9780e70de55d2355e2e2544961a142aa80
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
agent/CMakeLists.txt
agent/download-agent-plugin-libcurl.c
packaging/download-provider.spec

index 1808dcc5a8bd64a6fed8af88b1db2f8d84647665..af218921d22b20e248308a69af45ecbea147ac6b 100755 (executable)
@@ -44,7 +44,6 @@ pkg_check_modules(subpkgs REQUIRED
        capi-network-connection
        dlog
        storage
-       tpkp-curl
 )
 
 IF ("${HTTP_LIB}" MATCHES "libcurl")
index 90ce634b8a88aac8e45aeff2813ff57d40b27f45..deb9aed5227b4ac976ce35796c3db4f874ddc494 100755 (executable)
@@ -20,8 +20,6 @@
 
 #include "glib.h"
 
-#include <tpkp_curl.h>
-
 #include "download-agent-dl-info.h"
 #include "download-agent-http-msg-handler.h"
 #include "download-agent-plugin-libcurl.h"
@@ -535,7 +533,6 @@ da_ret_t PI_http_start(da_info_t *da_info)
 #endif
        }
        http_msg->curl = curl;
-       curl_easy_setopt(curl, CURLOPT_SSL_CTX_FUNCTION, tpkp_curl_ssl_ctx_callback);
        res = curl_easy_perform(curl);
        DA_LOGD("perform done! res[%d]", res);
        if (res != CURLE_OK) {
@@ -584,7 +581,6 @@ da_ret_t PI_http_start(da_info_t *da_info)
        if (DA_NULL != headers)
                curl_slist_free_all(headers);
        curl_easy_cleanup(curl);
-       tpkp_curl_cleanup();
        http_msg->curl = DA_NULL;
        DA_MUTEX_INIT(&(http_msg->mutex), DA_NULL);
 ERR:
index 7daf3b685f629bd5e72542fd6fdffb0c3b027dcc..661e677045bd71d26972eea823672164cf4070c9 100755 (executable)
@@ -33,7 +33,6 @@ BuildRequires:  pkgconfig(cynara-client)
 BuildRequires:  pkgconfig(cynara-client-async)
 BuildRequires:  pkgconfig(cynara-creds-socket)
 BuildRequires:  pkgconfig(cynara-creds-dbus)
-BuildRequires:  pkgconfig(tpkp-curl)
 BuildRequires:  pkgconfig(libtzplatform-config)
 
 %if 0%{?gtests:1}