oc_svr: Make SVRs non-observable
@@ -37,20 +37,19 @@ oc_sec_create_svr(void)
int i;
for (i = 0; i < oc_core_get_num_devices(); i++) {
oc_core_populate_resource(OCF_SEC_DOXM, i, "/oic/sec/doxm", OC_IF_BASELINE,
- OC_IF_BASELINE, OC_OBSERVABLE | OC_DISCOVERABLE,
- get_doxm, 0, post_doxm, 0, 1, "oic.r.doxm");
+ OC_IF_BASELINE, OC_DISCOVERABLE, get_doxm, 0,
+ post_doxm, 0, 1, "oic.r.doxm");
oc_core_populate_resource(OCF_SEC_PSTAT, i, "/oic/sec/pstat",
- OC_IF_BASELINE, OC_IF_BASELINE,
- OC_SECURE | OC_OBSERVABLE | OC_DISCOVERABLE,
+ OC_IF_BASELINE, OC_IF_BASELINE, OC_DISCOVERABLE,
get_pstat, 0, post_pstat, 0, 1, "oic.r.pstat");
- oc_core_populate_resource(
- OCF_SEC_ACL, i, "/oic/sec/acl2", OC_IF_BASELINE, OC_IF_BASELINE,
- OC_DISCOVERABLE | OC_OBSERVABLE | OC_SECURE, get_acl, 0, post_acl,
- delete_acl, 1, "oic.r.acl2");
- oc_core_populate_resource(
- OCF_SEC_CRED, i, "/oic/sec/cred", OC_IF_BASELINE, OC_IF_BASELINE,
- OC_DISCOVERABLE | OC_OBSERVABLE | OC_SECURE, get_cred, 0, post_cred,
- delete_cred, 1, "oic.r.cred");
+ oc_core_populate_resource(OCF_SEC_ACL, i, "/oic/sec/acl2", OC_IF_BASELINE,
+ OC_IF_BASELINE, OC_DISCOVERABLE | OC_SECURE,
+ get_acl, 0, post_acl, delete_acl, 1,
+ "oic.r.acl2");
+ oc_core_populate_resource(OCF_SEC_CRED, i, "/oic/sec/cred", OC_IF_BASELINE,
+ OC_IF_BASELINE, OC_DISCOVERABLE | OC_SECURE,
+ get_cred, 0, post_cred, delete_cred, 1,
+ "oic.r.cred");
}
}
