Revert "[3.0] Apply certificate pinning" 57/55857/2
authortaeyoon <taeyoon0.lee@samsung.com>
Wed, 30 Dec 2015 02:29:28 +0000 (11:29 +0900)
committertaeyoon <taeyoon0.lee@samsung.com>
Fri, 15 Jan 2016 02:25:41 +0000 (11:25 +0900)
This reverts commit 9a4af4b84c8bb19105d5e8c30faf4120d6c9cc8a.

Change-Id: I6911f2f704e8be074d987683b45bcf3db866ae57

build/tizen/adaptor/Makefile.am
build/tizen/configure.ac
packaging/dali-adaptor.spec
platform-abstractions/tizen/resource-loader/network/file-download.cpp

index 6992d49..517d8ae 100644 (file)
@@ -356,9 +356,6 @@ endif
 if UBUNTU_PROFILE
 libdali_adaptor_la_LIBADD += -ljpeg
 CFLAGS += -fPIC
-else
-libdali_adaptor_la_CXXFLAGS += $(TPKP_CURL_CFLAGS)
-libdali_adaptor_la_LIBADD += $(TPKP_CURL_LIBS)
 endif
 
 if !UBUNTU_PROFILE
index 3c49128..c276626 100644 (file)
@@ -203,7 +203,6 @@ PKG_CHECK_MODULES(SENSOR, sensor)
 PKG_CHECK_MODULES(TTS, tts)
 PKG_CHECK_MODULES(VCONF, vconf)
 PKG_CHECK_MODULES(CAPI_SYSTEM_SYSTEM_SETTINGS, capi-system-system-settings)
-PKG_CHECK_MODULES(TPKP_CURL, tpkp-curl)
 
 if test "x$enable_wayland" != "xyes"; then
 PKG_CHECK_MODULES(UTILX, utilX)
index be4139b..e961db4 100644 (file)
@@ -62,7 +62,6 @@ BuildRequires:  pkgconfig(libpng)
 BuildRequires:  pkgconfig(glesv2)
 BuildRequires:  pkgconfig(egl)
 BuildRequires:  libcurl-devel
-BuildRequires:  pkgconfig(tpkp-curl)
 
 
 %if 0%{?over_tizen_2_2}
index 362fb7f..9f91eb6 100755 (executable)
@@ -25,9 +25,6 @@
 // INTERNAL INCLUDES
 #include "portable/file-closer.h"
 
-#ifndef DALI_PROFILE_UBUNTU
-#include <tpkp_curl.h>
-#endif // DALI_PROFILE_UBUNTU
 
 using namespace Dali::Integration;
 
@@ -58,11 +55,6 @@ void ConfigureCurlOptions( CURL* curl_handle, const std::string& url )
   curl_easy_setopt( curl_handle, CURLOPT_CONNECTTIMEOUT, CONNECTION_TIMEOUT_SECONDS );
   curl_easy_setopt( curl_handle, CURLOPT_HEADER, INCLUDE_HEADER );
   curl_easy_setopt( curl_handle, CURLOPT_NOBODY, EXCLUDE_BODY );
-
-#ifndef DALI_PROFILE_UBUNTU
-  // Apply certificate pinning on Tizen
-  curl_easy_setopt( curl_handle, CURLOPT_SSL_CTX_FUNCTION, tpkp_curl_ssl_ctx_callback );
-#endif // DALI_PROFILE_UBUNTU
 }
 
 // Without a write function or a buffer (file descriptor) to write to, curl will pump out
@@ -163,11 +155,6 @@ bool Network::DownloadRemoteFileIntoMemory( const std::string& url,
   // clean up session
   curl_easy_cleanup( curl_handle );
 
-#ifndef DALI_PROFILE_UBUNTU
-  // Clean up tpkp(the module for certificate pinning) resources on Tizen
-  tpkp_curl_cleanup();
-#endif // DALI_PROFILE_UBUNTU
-
   return result;
 }