[Model] IoTivity
[BinType] AP
[Customer] iot-core
[Issue#] CONPRO-1392
[Request] r.chudek
[Occurrence Version] n/a
[Problem] pthread might be not available on other platforms
[Cause & Measure] n/a
[Checking Method] n/a
[Team] IoTConnection
[Developer] g.zakiewicz
[Solution company] Samsung
[Change Type] fix
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/414
(cherry picked from
9dc9af2eabffb1d46c1671baa4b0decfeb173a1e)
Change-Id: Idac05cde4018b6b064721c2ada5706601c2cb0c3
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
*/
CAResult_t CAcloseSslConnection(const CAEndpoint_t *endpoint);
+#ifdef __TIZEN__
/**
* Close the DTLS session and free endpoint.
*
* @retval ::CA_STATUS_FAILED Operation failed.
*/
CAResult_t CAcloseSslConnectionFreeEndpoint(CAEndpoint_t *endpoint);
+#endif //__TIZEN__
/**
* Close the TLS session using UUID
*/
CAResult_t CAcloseSslConnection(const CAEndpoint_t *endpoint);
+#ifdef __TIZEN__
/**
* Close the DTLS session and free endpoint.
*
* @retval ::CA_STATUS_FAILED Operation failed.
*/
CAResult_t CAcloseSslConnectionFreeEndpoint(CAEndpoint_t *endpoint);
+#endif //__TIZEN__
/**
* initialize mbedTLS library and other necessary initialization.
return CA_STATUS_OK;
}
+#ifdef __TIZEN__
CAResult_t CAcloseSslConnectionFreeEndpoint(CAEndpoint_t *endpoint)
{
OIC_LOG_V(INFO, NET_SSL_TAG, "In %s", __func__);
OIC_LOG_V(INFO, NET_SSL_TAG, "Out %s", __func__);
return ret;
}
-
+#endif //__TIZEN__
CAResult_t CAcloseSslConnectionUsingUuid(const uint8_t *identity, size_t idLength)
{
#endif
#ifdef __WITH_DTLS__
-#ifndef SINGLE_THREAD
+#if defined(__TIZEN__) && !defined(SINGLE_THREAD)
// CAcloseSslConnection returns CAResult_t instead of void*, but the size is the same and crash shouldn't occur
pthread_t ccThread;
pthread_attr_t attr;