Add CAcloseSslConnectionFreeEndpoint method
[platform/upstream/iotivity.git] / resource / csdk / connectivity / api / casecurityinterface.h
index c891460..117ab18 100644 (file)
@@ -324,6 +324,17 @@ CAResult_t CAinitiateSslHandshake(const CAEndpoint_t *endpoint);
 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