CAResult_t CAcloseSslConnection(const CAEndpoint_t *endpoint);
/**
+ * Close the DTLS session and free endpoint.
+ *
+ * @param[in] endpoint information of network address;
+ * CAcloseSslConnectionWrapper takes ownership of endpoint
+ *
+ * @retval ::CA_STATUS_OK Successful.
+ * @retval ::CA_STATUS_FAILED Operation failed.
+ */
+CAResult_t CAcloseSslConnectionFreeEndpoint(CAEndpoint_t *endpoint);
+
+/**
* Close the TLS session using UUID
*
* @param[in] identity UUID of target device