Commit e7f3c7dc authored by Dmitriy Zhuravlev's avatar Dmitriy Zhuravlev

[IOT-2263] Fix provisioning flow with DOS

Updates provisioning flow for:
1) Trust Chain
2) PSK
3) ACL

Change-Id: Id1824b3ef7974658857a203125d36ca25a653add
Signed-off-by: default avatarDmitriy Zhuravlev <d.zhuravlev@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/19931Tested-by: default avatarjenkins-iotivity <jenkins@iotivity.org>
parent 5307f0ae
......@@ -2627,9 +2627,8 @@ static OCEntityHandlerResult HandleACLPostRequest(const OCEntityHandlerRequest *
(DOS_RFNOP == dos.state))
{
OIC_LOG_V(WARNING, TAG, "%s /acl resource is read-only in RESET and RFNOP.", __func__);
// TODO fix infinite loop in mediator sample
// ehRet = OC_EH_NOT_ACCEPTABLE;
// goto exit;
ehRet = OC_EH_NOT_ACCEPTABLE;
goto exit;
}
else
{
......
......@@ -2099,13 +2099,11 @@ static OCEntityHandlerResult HandlePostRequest(OCEntityHandlerRequest * ehReques
VERIFY_SUCCESS(TAG, OC_STACK_OK == GetDos(&dos), ERROR);
if ((DOS_RESET == dos.state) ||
(DOS_RFPRO == dos.state) ||
(DOS_RFNOP == dos.state))
{
OIC_LOG_V(WARNING, TAG, "%s /cred resource is read-only in RESET, RFPRO and RFNOP.", __func__);
// TODO fix infinite loop in mediator sample
// ret = OC_EH_NOT_ACCEPTABLE;
// goto exit;
OIC_LOG_V(WARNING, TAG, "%s /cred resource is read-only in RESET and RFNOP.", __func__);
ret = OC_EH_NOT_ACCEPTABLE;
goto exit;
}
res = CBORPayloadToCred(payload, size, &cred);
......
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