Move CASetSecureEndpointUuid APIs
[platform/upstream/iotivity.git] / resource / csdk / connectivity / util / src / cautilinterface.c
index 5321cd4..0a03b11 100644 (file)
@@ -28,6 +28,9 @@
 #ifdef TCP_ADAPTER
 #include "catcpadapter.h"
 #endif
+#if defined(__WITH_DTLS__) || defined(__WITH_TLS__)
+#include "ca_adapter_net_ssl.h"
+#endif
 
 #define TAG "OIC_CA_COMMON_UTILS"
 
@@ -492,6 +495,19 @@ void CAUtilSkipTCPCloseOnInterfaceDown(bool state)
 #endif
 }
 
+CAResult_t CASetSecureEndpointUuid(const CAEndpoint_t *peer, const char *uuid)
+{
+    OIC_LOG(DEBUG, TAG, "CASetSecureEndpointUuid");
+#if defined(__WITH_DTLS__) || defined(__WITH_TLS__)
+    return SetCASecureEndpointUuid(peer, uuid);
+#else
+    (void) peer;
+    (void) uuid;
+    OIC_LOG(DEBUG, TAG, "it is not supported");
+    return CA_NOT_SUPPORTED;
+#endif
+}
+
 CAResult_t CAUtilStartGattServer()
 {
        OIC_LOG(DEBUG, TAG, "CAUtilStartGattServer");