Fix build break from bad merge
authorKevin Kane <kkane@microsoft.com>
Fri, 7 Apr 2017 17:59:39 +0000 (10:59 -0700)
committerGreg Zaverucha <gregz@microsoft.com>
Fri, 7 Apr 2017 20:15:41 +0000 (20:15 +0000)
Change-Id: I37004fce7b941bf7ecd37e77defa481974c0bac4
Signed-off-by: Kevin Kane <kkane@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18615
Reviewed-by: Alex Kelley <alexke@microsoft.com>
Reviewed-by: Greg Zaverucha <gregz@microsoft.com>
Tested-by: Greg Zaverucha <gregz@microsoft.com>
resource/csdk/security/provisioning/sample/autoprovisioningclient.c

index 324411a..30fb5fd 100644 (file)
@@ -1520,27 +1520,6 @@ static int testSymmetricRoleUse(int dev_num)
         goto exit;
     }
 
-    /* Create and provision an ACL to allow anyone access to the roles resource. Since all actions
-     * on the roles resource first requires authentication by public key, this is effectively "any
-     * authenticated" access.
-     * @todo: This should be done by default and not be necessary here (IOT-1950).
-     */
-    OCDeleteACLList(acl);
-    acl = NULL;
-    ret = createRolesAcl(&acl);
-    if (ret != 0)
-    {
-        OIC_LOG_V(ERROR, TAG, "%s failed to create roles ACL", __func__);
-        goto exit;
-    }
-
-    ret = provisionAcl(dev_num, acl);
-    if (ret != 0)
-    {
-        OIC_LOG_V(ERROR, TAG, "%s failed to provision roles ACL", __func__);
-        goto exit;
-    }
-
     /* Remove the owner credential so that we don't use it when asserting role certs. */
     OCStackResult res = OCRemoveCredential(&g_uuidDev1);
     if (res != OC_STACK_RESOURCE_DELETED)