Pubkey-pinning is not supported from tizen-6.0.
Change-Id: I4bd368bf39ec6c9f48bd36372d2b4c1f255d51d7
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
CHECK_MODULE_AND_SET( ECORE_IPC ecore-ipc [] )
CHECK_MODULE_AND_SET( ECORE_IMF ecore-imf [] )
CHECK_MODULE_AND_SET( ELDBUS eldbus eldbus_available )
-CHECK_MODULE_AND_SET( TPKP_CURL tpkp-curl tpkp_curl_available )
CHECK_MODULE_AND_SET( UTILX utilX utilx_available )
CHECK_MODULE_AND_SET( OPENGLES20 glesv2 [] )
CHECK_MODULE_AND_SET( EGL egl [] )
ADD_DEFINITIONS( -DDALI_ELDBUS_AVAILABLE )
ENDIF()
-IF( tpkp_curl_available )
- ADD_DEFINITIONS( -DTPK_CURL_ENABLED )
-ENDIF()
-
ADD_DEFINITIONS( -DPLATFORM_TIZEN )
IF( enable_debug )
${LIBDRM_CFLAGS}
${LIBEXIF_CFLAGS}
${LIBCURL_CFLAGS}
- ${TPKP_CURL_CFLAGS}
${UTILX_CFLAGS}
-Wall
)
${LIBCURL_LDFLAGS}
${LIBCRYPTO_LDFLAGS}
${HARFBUZZ_LDFLAGS}
- ${TPKP_CURL_LDFLAGS}
${UTILX_LDFLAGS}
-lgif
-lturbojpeg
${LIBEXIF_CFLAGS}
${LIBCURL_CFLAGS}
${LIBCRYPTO_CFLAGS}
- ${TPKP_CURL_CFLAGS}
${UTILX_CFLAGS}
)
// INTERNAL INCLUDES
#include <dali/internal/system/common/file-writer.h>
-#ifdef TPK_CURL_ENABLED
-#include <tpkp_curl.h>
-#endif // TPK_CURL_ENABLED
-
using namespace Dali::Integration;
namespace Dali
curl_easy_setopt( curlHandle, CURLOPT_TIMEOUT, TIMEOUT_SECONDS );
curl_easy_setopt( curlHandle, CURLOPT_HEADER, INCLUDE_HEADER );
curl_easy_setopt( curlHandle, CURLOPT_NOBODY, EXCLUDE_BODY );
-
-#ifdef TPK_CURL_ENABLED
- // Apply certificate pinning on Tizen
- curl_easy_setopt( curlHandle, CURLOPT_SSL_CTX_FUNCTION, tpkp_curl_ssl_ctx_callback );
-#endif // TPK_CURL_ENABLED
}
// Without a write function or a buffer (file descriptor) to write to, curl will pump out
// clean up session
curl_easy_cleanup( curlHandle );
-
-#ifdef TPK_CURL_ENABLED
- // Clean up tpkp(the module for certificate pinning) resources on Tizen
- tpkp_curl_cleanup();
-#endif // TPK_CURL_ENABLED
}
return result;
}
// INTERNAL INCLUDES
#include <dali/internal/system/common/file-writer.h>
-#ifdef TPK_CURL_ENABLED
-#include <tpkp_curl.h>
-#endif // TPK_CURL_ENABLED
-
using namespace Dali::Integration;
namespace Dali
// clean up session
curl_easy_cleanup( curlHandle );
-#ifdef TPK_CURL_ENABLED
- // Clean up tpkp(the module for certificate pinning) resources on Tizen
- tpkp_curl_cleanup();
-#endif // TPK_CURL_ENABLED
-
return result;
}
# dali-adaptor needs tbm_surface in tizen 3.0 wayland
BuildRequires: pkgconfig(libtbm)
-BuildRequires: pkgconfig(tpkp-curl)
-
# for dali-adaptor
BuildRequires: pkgconfig(appcore-ui)
BuildRequires: pkgconfig(appcore-widget-base)