Commit b4d04492 authored by Nathan Heldt-Sheller's avatar Nathan Heldt-Sheller

[IOT-2053] Discoverable & Secure SVRs

Implements CR1616 which requires all SVRs to be marked "Discoverable",
and also to expose a Secure Endpoint.

Change-Id: I0cae25b0ac83ac194fd03ed45245bcb9afc98eeb
Signed-off-by: Nathan Heldt-Sheller's avatarNathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19201Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: default avatarKevin Kane <kkane@microsoft.com>
parent c32ab394
......@@ -2323,7 +2323,8 @@ static OCStackResult CreateACLResource()
OIC_RSRC_ACL_URI,
ACLEntityHandler,
NULL,
OC_SECURE);
OC_SECURE |
OC_DISCOVERABLE);
if (OC_STACK_OK != ret)
{
......@@ -2337,7 +2338,8 @@ static OCStackResult CreateACLResource()
OIC_RSRC_ACL2_URI,
ACL2EntityHandler,
NULL,
OC_SECURE);
OC_SECURE |
OC_DISCOVERABLE);
if (OC_STACK_OK != ret)
{
......
......@@ -467,7 +467,9 @@ static OCStackResult CreateAmaclResource()
OIC_RSRC_AMACL_URI,
AmaclEntityHandler,
NULL,
OC_OBSERVABLE);
OC_OBSERVABLE |
OC_SECURE |
OC_DISCOVERABLE);
if (OC_STACK_OK != ret)
{
......
......@@ -2419,7 +2419,8 @@ OCStackResult CreateCredResource()
OIC_RSRC_CRED_URI,
CredEntityHandler,
NULL,
OC_SECURE);
OC_SECURE |
OC_DISCOVERABLE);
if (OC_STACK_OK != ret)
{
......
......@@ -577,7 +577,9 @@ static OCStackResult CreateCRLResource()
OIC_RSRC_CRL_URI,
CRLEntityHandler,
NULL,
OC_OBSERVABLE);
OC_OBSERVABLE |
OC_SECURE |
OC_DISCOVERABLE);
if (OC_STACK_OK != ret)
{
......
......@@ -495,7 +495,8 @@ OCStackResult InitCSRResource()
OIC_RSRC_CSR_URI,
CredCsrEntityHandler,
NULL,
OC_SECURE);
OC_SECURE |
OC_DISCOVERABLE);
if (OC_STACK_OK != ret)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment