summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryoungman <yman.jung@samsung.com>2016-09-07 14:38:23 +0900
committerYoungjae Shin <yj99.shin@samsung.com>2016-09-06 22:56:42 -0700
commit5374929d59dd102d4408456e44ae6a2f2524efad (patch)
tree1490d1d8f4f6c05f700e8490f5d4bf43e79a5ce2
parentf044ddaea2300125c8552c5e413eea5b474f5af2 (diff)
downloadiotcon-5374929d59dd102d4408456e44ae6a2f2524efad.tar.gz
iotcon-5374929d59dd102d4408456e44ae6a2f2524efad.tar.bz2
iotcon-5374929d59dd102d4408456e44ae6a2f2524efad.zip
add temp code related to acl
Change-Id: I178584456a9182f259e1818b7a6534e6db664871 Signed-off-by: youngman <yman.jung@samsung.com>
-rw-r--r--src/ic-provisioning.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/ic-provisioning.c b/src/ic-provisioning.c
index 9321480..fab9908 100644
--- a/src/ic-provisioning.c
+++ b/src/ic-provisioning.c
@@ -518,6 +518,22 @@ static OicSecAcl_t* _provisioning_convert_acl(iotcon_provisioning_device_h devic
resource->href = ic_utils_strdup(uri_path);
// TODO: resource types & resource interfaces
+ // temp code
+ resource->types = calloc(1, sizeof(char*));
+ if (NULL == resource->types) {
+ ERR("calloc() Fail(%d)", errno);
+ return NULL;
+ }
+ resource->types[0] = strdup(" ");
+ resource->typeLen = 1;
+
+ resource->interfaces = calloc(1, sizeof(char*));
+ if (NULL == resource->interfaces) {
+ ERR("calloc() Fail(%d)", errno);
+ return NULL;
+ }
+ resource->interfaces[0] = strdup(OC_RSRVD_INTERFACE_DEFAULT);
+ resource->interfaceLen = 1;
_provisioning_ace_add_resource(ace, resource);
}