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)
BuildRequires: pkgconfig(glesv2)
BuildRequires: pkgconfig(egl)
BuildRequires: libcurl-devel
+BuildRequires: pkgconfig(tpkp-curl)
%if 0%{?over_tizen_2_2}
// INTERNAL INCLUDES
#include "portable/file-closer.h"
+#ifndef DALI_PROFILE_UBUNTU
+#include <tpkp_curl.h>
+#endif // DALI_PROFILE_UBUNTU
using namespace Dali::Integration;
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
// 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;
}