summaryrefslogtreecommitdiff
path: root/resource
AgeCommit message (Collapse)AuthorFilesLines
2020-02-19[CONPRO-1561] Crash in memcpysubmit/tizen_5.5_wearable_hotfix/20201026.184307submit/tizen_5.5/20200224.011218submit/tizen_5.5/20200219.001653accepted/tizen/5.5/unified/wearable/hotfix/20201027.100634accepted/tizen/5.5/unified/20200224.123517tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5accepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unifiedsamanway1-1/+1
- In Caremotehandler.c, function CACloneInfo was copying token into buffer in vulnurable way - Fixed it appending NULL in destination string https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/662 (cherry-picked from f8af2d6ca117bdf270c97c5c28f86bb0169659e5) Change-Id: I84dfff77ecbf3a333913ce341060d7e30444ac62 Signed-off-by: samanway <samanway-dey@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2020-02-19[CONPRO-1560] iotivity crash in data receiver threadsamanway2-10/+35
- In function CADropSecondMessage(), an input argument pointer NULL check was missing, added the same - In function CAGetInfoFromPDU(), 512 bytes memory was getting assingned from stack, which may fail in case stack overflow. Hence allocated memory from heap. this fix is already in IoTivity 2.0-rel. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/663 (cherry-picked from 7c12ddb7711cbb9af9d7c68635c171692222bdb4) Change-Id: I09e987240e7d37460ba7c567f7b6593d6b3b9e3a Signed-off-by: samanway-dey <samanway.dey@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2020-02-19[CONPRO-1564] Doxm deadlockOleksii Beketov1-0/+8
Deadlock in case of not supported oxm method fixed https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/665 (cherry-picked from 2ce7a0c66285f62eeac4db9260cea0f077adf2ad) Change-Id: I280d323cd27eccfe233e0ea91efc2a4cb393591e Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2020-02-19[CONPRO-1549] Create new method in RDClientSourav Bhuwalka2-0/+65
Added new (publishAllResourceToRD) to publish resources to resource- directory.Dont include virtual resources /oic/p and /oic/d to resourceHandles argument of this API.This API internally appends the two virtual resources. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/655 (cherry-picked from 3f75969eec27bc8b6264de42faf01cf811de5037) Change-Id: I3a6877d885d8c1537b2d767d06f8e1e1e9acd8cd Signed-off-by: Sourav Bhuwalka <s.bhuwalka@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2020-02-19Add uuid convertOleksii Beketov1-1/+8
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/661 (cherry-picked from 43c552c67605b0e6a5980d85a897673233aff370) Change-Id: Ia4e40da6f6cd56fe6827b9e588957a67804d1471 Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2020-01-30Remove unused source file in tizen bt_le_adaptersubmit/tizen_5.5/20200218.000609submit/tizen_5.5/20200217.025028submit/tizen_5.5/20200203.002145accepted/tizen/5.5/unified/20200204.042423DoHyun Pyun1-1665/+0
Change-Id: I8cf29c80bf61adcfba26c8a2acaa9a63f21b4460 Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2020-01-30CONPRO-1551 Adding support for LE bi directional request.Kush2-3/+34
Issue : Currently Tizen LE Server only supports sending response and LE Client supports sending request and response for response. But in some scenarios if server tries to send request using same BLE connection, then that is not possible. Solution: This patch will allow LE server to send Request using same BLE connection https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/654 (cherry-picked from af41fb6485fdb0bb02bfd92e6e4993a0b1596a36) Change-Id: Ie2a0bb3add5e56565d0059ac2d42dfd68336c958 Signed-off-by: Kush <kush.agrawal@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2020-01-30Adding NULL check in CALEClientAddUuidsamanway1-3/+14
- NULL check was missed before passing string to strcmp() - Hence, added NULL check https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/652 (cherry-picked from 2f6b188bc90dc306f98414189d30206eef38be4a) Change-Id: Ia92a7a308dcb73999df84d48e67aad6e4d7be0e0 Signed-off-by: samanway-dey <samanway.dey@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2020-01-28Merge "[CONPRO-1552] Build fail for -Werror=implicit-function-declaration]" ↵Pyun DoHyun1-0/+2
into tizen_5.5
2020-01-28[CONPRO-1552] Build fail for -Werror=implicit-function-declaration]samanway1-0/+2
- caadapterutils.h was not included in caipnwmonitor_common.c, hence added - oic_malloc.c was not included in caipnwmonitor_common.c, hence added https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/649/commits/c536c5a5bbe66b0ac8eedcdefcf858d325718f23 (cherry-picked from c536c5a5bbe66b0ac8eedcdefcf858d325718f23) Change-Id: I62d0185fe632d7a487ac88e4bf4f62cc47a3486f Signed-off-by: samanway-dey <samanway.dey@samsung.com> Signed-off-by: Sudipto <sudipto.bal@samsung.com>
2020-01-28[CONPRO-1552] Fixing lack of header guards in RDClient.hsamanway1-0/+5
- Added header guard in RDClient.h https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/649/commits/25aabe92979f70d22c42d735003f6b3d4605bd4d (cherry-picked from 25aabe92979f70d22c42d735003f6b3d4605bd4d) Change-Id: I764e966237c1f87b332da8c6977943c3d2a45281 Signed-off-by: Sudipto <sudipto.bal@samsung.com>
2020-01-17Iotivity crash on 502 Bad Gateway errorSourav Bhuwalka1-1/+1
Initialising dimensions with 0 which was not done earlier In case OCRepPayloadGetPropObjectArray function fails links become NULL but since dimensions is not initailised with 0 it will have some garbage value and will enter in loop and crash will occur https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/649/commits/3a10bc1df11c5c2bbf7465e3aa06a76adb4734c6 (cherry-picked from 3a10bc1df11c5c2bbf7465e3aa06a76adb4734c6) Change-Id: I9f156c9f3459ad756d3fde2759aa518d48380d54 Signed-off-by: Sudipto <sudipto.bal@samsung.com> (cherry picked from commit 176c9ded8f1aeb60bb2e6d9966d7b4253c1cd033)
2020-01-12Merge "CONPRO-1542 Adding left out error codes conversion from EntityHandler ↵Pyun DoHyun1-0/+18
to OCStackResult" into tizen_5.5
2020-01-12Merge "New API for self ACL updating" into tizen_5.5Pyun DoHyun7-39/+205
2020-01-12Merge "Bug fix in set/unset adapter state change callback. (#640)" into ↵Pyun DoHyun5-14/+18
tizen_5.5
2020-01-12Merge "BLE Scan when GATT already connected." into tizen_5.5Pyun DoHyun1-18/+64
2020-01-12Merge "Fixing Iotivity crash in catcpserver" into tizen_5.5Pyun DoHyun2-9/+20
2020-01-12Merge "Adding retry logic for gatt connection for VD client" into tizen_5.5Pyun DoHyun1-21/+1
2020-01-12Merge "Deadlock after BLE connection error in caleserver_mcd.c" into tizen_5.5Pyun DoHyun1-0/+2
2020-01-12Merge "Enable GCOV Coverage & Logging in UT. (#628)" into tizen_5.5Pyun DoHyun5-0/+20
2020-01-06Fixing Iotivity crash in catcpserversamanway2-9/+20
- Memory was being freed in function CADisconnectTCPSession without checking NULL condition - This caused crash in IoTivity, fix is patched - Also, a potential dangling pointer issue fized in uqeue.c https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/ced81117e624a1f416df3f5ff226427b2d070515 (cherry-picked from ced81117e624a1f416df3f5ff226427b2d070515) Change-Id: Ic6ede9df63aa8e5590c253f9430eeba401231347 Signed-off-by: samanway-dey <samanway.dey@samsung.com> Signed-off-by: Sudipto <sudipto.bal@samsung.com>
2020-01-06CONPRO-1542 Adding left out error codes conversion from EntityHandler to ↵Kush1-0/+18
OCStackResult https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/eb4f1b5d1cd3696e187ee1e6ec0d0a7a75cbe321 (cherry-picked from eb4f1b5d1cd3696e187ee1e6ec0d0a7a75cbe321) Change-Id: Icb0e572691466ffd2cb94a277648e0c89b7f19a0 Signed-off-by: Kush <kush.agrawal@samsung.com> Signed-off-by: Sudipto <sudipto.bal@samsung.com>
2020-01-06New API for self ACL updatingIurii Metelytsia7-39/+205
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/441765ad4ae9d09a2ff34023031e6e4f42edf917 (cherry-picked from 441765ad4ae9d09a2ff34023031e6e4f42edf917) Change-Id: Ic9747cb71f669895ced90e442bcce1f090389e1c Signed-off-by: Sudipto <sudipto.bal@samsung.com>
2020-01-06Bug fix in set/unset adapter state change callback. (#640)senthil.gs@samsung.com5-14/+18
A bug was introduced in a recent patch to reduce code complexity, This patch fixes the issue. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/9a8ff7f20185944857848c6345f87d40ddcd0e87 (cherry-picked from 9a8ff7f20185944857848c6345f87d40ddcd0e87) Change-Id: I5b15b5ed3bd70e8c81885b7208eba3fbf5ee3330 Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com> Signed-off-by: Sudipto <sudipto.bal@samsung.com>
2020-01-06BLE Scan when GATT already connected.Kush1-18/+64
If GATT is already connected by some other service then Iotivity should use that GATT connection only. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/427b61effdc348e139c27fb314b44c011689e523 (cherry-picked from 427b61effdc348e139c27fb314b44c011689e523) Change-Id: I8bd79cd7752a0312b1fa73a91cf2851c8af24c85 Signed-off-by: Kush <kush.agrawal@samsung.com> Signed-off-by: Sudipto <sudipto.bal@samsung.com>
2020-01-06Adding retry logic for gatt connection for VD clientsamanway1-21/+1
- There was an issue initially reported for LUX, that Gatt Client disconnects just after it connects - Connection retry logic was added as a fix in the commit 25ef240cc9978fa5945a26e72a8e763c436960db - Again the same issue was reported for TV - So adding the same fix in VD client https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/6faf5ba264411d383ec5c3225f9fdcd90690088d (cherry-picked from 6faf5ba264411d383ec5c3225f9fdcd90690088d) Change-Id: I0c7ad06e65b1c1774b9d7269be64a2f569d55664 Signed-off-by: samanway-dey <samanway.dey@samsung.com> Signed-off-by: Sudipto <sudipto.bal@samsung.com>
2020-01-06Deadlock after BLE connection error in caleserver_mcd.cKush1-0/+2
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/15bf09e4501b18843ba6ad64dbe44a5d9003143b (cherry-picked from 15bf09e4501b18843ba6ad64dbe44a5d9003143b) Change-Id: I51fb612f1e44f85f7b120c9469ebe76dabf6583e Signed-off-by: Kush <kush.agrawal@samsung.com> Signed-off-by: Sudipto <sudipto.bal@samsung.com>
2020-01-06Enable GCOV Coverage & Logging in UT. (#628)senthil.gs@samsung.com5-0/+20
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/41f3f11cfcbec2eb7a252efcde8d92746bcac327 (cherry-picked from 41f3f11cfcbec2eb7a252efcde8d92746bcac327) Change-Id: I8a0fc10913d1eff4c2012357112b979d028c74ec Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com> Signed-off-by: Sudipto <sudipto.bal@samsung.com>
2020-01-06Build fix for tizen when TARGET_TRANSPORT=BLEsamanway2-1/+4
- Commit 63d798167fd9695cb278bc3c228864163dde5292 in IoTivity 1.2-rel branch added 3 APIs which should build only for TCP adapter - For this reason BLE build was being failed - Corrected that with adding Flag https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/d2fd37d35129acf337d6895e2efe84c7331bbd3d (cherry-picked from d2fd37d35129acf337d6895e2efe84c7331bbd3d) Change-Id: Id34ae9edc4f5123932584151a8ac8f54432c1292 Signed-off-by: samanway-dey <samanway.dey@samsung.com> Signed-off-by: Sudipto <sudipto.bal@samsung.com>
2019-11-28Fix for crash at FindResourceByUri(). (#629)senthil.gs@samsung.com2-2/+3
NULL check was not there before accessing "pointer->uri" due to which segmentation fault has occurred. So NULL check is done at two different places. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/629 (cherry-picked from 727d5f58b67d83d3c82452b0afb7781bba59ec81) Change-Id: I77878da7f89858235feafbc7b25a4e1fef39a52a Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2019-11-28Avoiding code duplications in tizen BLE VD client files.samanway2-9/+80
- Caleclient.c and Caleclient_vd.c two files had duplicate code - Hence merged them into a single one - Additionally, Sconscript is modified to enable build flag for VD https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/0622badee7ed2f6d424ac69d6796d443f8949953 (cherry-picked from 0622badee7ed2f6d424ac69d6796d443f8949953) Change-Id: I24720556a7dce71a0a410da1ab7daf93fb55278e Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2019-11-28Split TCP Server Mutex into different fileKush4-115/+211
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/f2afffe9f976f4f5a6d44f41daa113f5b30eb410 (cherry-picked from f2afffe9f976f4f5a6d44f41daa113f5b30eb410) Change-Id: If2106577547a02e4412ffdc4ce54c44b3eab5db8 Signed-off-by: Kush <kush.agrawal@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2019-11-28QB_linux_SECURED build failedVitalii Irkha3-17/+43
Fixed issues for SVR DB Validity APIs https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/49420e214b01e2656b123c0bae3fad245bec14f9 (cherry-picked from 49420e214b01e2656b123c0bae3fad245bec14f9) Change-Id: I6c1826f501230414a8c04596ede23ff01a1651d9 Signed-off-by: Vitalii Irkha <v.irkha@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2019-11-28Split Android CaleClient in two different files. (#619)s.bhuwalka@samsung.com5-628/+729
caleclient.c is now divided into caleclient.c and caleclient_jni.h Additionally caleclient_utils.h is also added https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/619 (cherry-picked from 6bb06b060dff697c20a13b638c6d6bbcd83a2360) Change-Id: Ia1592b281ef64a293eb7075ea88bf03fd4db7228 Signed-off-by: sourav bhuwalka <s.bhuwalka@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2019-11-28Split Routing Table into Gateway and Endpoint (#617)kush.agrawal@samsung.com5-244/+387
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/617 (cherry-picked from 0ec246dda82834e64d27705d59bcd13a61e81b12) Change-Id: Ia81472992ef710fb6671e20d8d1480be0de7f4d3 Signed-off-by: Kush <kush.agrawal@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2019-11-28Added changes for SVR DB Validity APIVitalii Irkha5-22/+52
Don't stop stack initialization process even if DVR DB corrupted https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/582794baea0c4db4dc8fdca566a7a8553b6d764c (cherry-picked from 582794baea0c4db4dc8fdca566a7a8553b6d764c) Change-Id: I0adf81f55a7a012730a792bac5e7f5b423190be7 Signed-off-by: Vitalii Irkha <v.irkha@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2019-11-28Removed duplicated code blocks (#615)kush.agrawal@samsung.com4-385/+113
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/615 (cherry-picked from 1dd8501207e6c6865cf7bd0d5483003c4bad1ff7) Change-Id: I2aae5778988d75b113bf4535241781a5f1678c84 Signed-off-by: Kush <kush.agrawal@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2019-11-28Draft Created API for SVR DB Integrity checkVitalii Irkha8-2/+359
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/610 (cherry-picked from b2f7a3c0a121bf83f3551b0bca18061d8b5263f1) Change-Id: I6fe01f4de77a8e8f538666f8745b9b46cfd057fd Signed-off-by: Vitalii Irkha <v.irkha@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2019-11-28Removing code duplication from Caleadapter.c (#606)samanway.dey@samsung.com1-232/+37
- Checking CAResult_t returning from different APIs called in Caleadapter.c was being checked multiple times - This was contributing in increasing code complexity - Replaced each block with a single macro https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/606 (cherry-picked from 7ecd31d8fc9d132bbd4e5cccc86e8189419eb930) Change-Id: I54e7061743bdcf12acbe2bc201086b0e833db1f9 Signed-off-by: samanway-dey <samanway.dey@samsung.com>
2019-11-28Avoid CA IP NW monitor code duplications.Senthil Kumar G S7-174/+182
Code duplications in CA IP Network Monitor reported by Sonarqube has been addressed in this patch. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/983a7d1076abb25b82321bed2fb5c4fa07da8389 (cherry-picked from 983a7d1076abb25b82321bed2fb5c4fa07da8389) Change-Id: I801c5bb382f6beb05164d98653b2d309c6282d7c Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2019-11-28Fix process event life cycleJaehyun Cho3-37/+51
process event variable need to initialize before OCInit(), event need to register after OCInit and also event variable should be freed after OCStop() https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/586 (cherry-picked from 3a00d744cac2e026b2b7b195b8b2984fd06ca049) Change-Id: I88ffc088a19a4a8bf7fc58c49d436d4813921a36 Signed-off-by: Jaehyun Cho <jaehyun3.cho@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2019-11-18Added check resetSVRDB callback to NULLVitalii Irkha1-1/+9
Fixed possible NULL pointer dereferences https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/635bde6994b9ebcb84a1a9faaff2c985bf5faf09 (cherry-picked from 635bde6994b9ebcb84a1a9faaff2c985bf5faf09) Change-Id: Ib52585b767e92e3f263a653a108e0b734e348eb1 Signed-off-by: Vitalii Irkha <v.irkha@samsung.com> Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
2019-11-18Static Analyzer Bug Fixes. (#603)senthil.gs@samsung.com15-52/+46
Patch contains fixes for the bugs reported by Sonarqube Tool. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/603/commits/7eeacb4f04621469f044b64b42abc45e5b60792a (cherry-picked from 7eeacb4f04621469f044b64b42abc45e5b60792a) Change-Id: Ic3f0a6d27e4c2ec3f52d4452c0957887fe4a9889 Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com> Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
2019-11-18Fix Werror=implicit-function-declarationVitalii Irkha2-0/+2
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/604/commits/a302bdd184f154164d855b7a8daf5fd52073d96c (cherry-picked from a302bdd184f154164d855b7a8daf5fd52073d96c) Change-Id: I8d79824b31d951e4712f4420ca4b4add2ed0610f Signed-off-by: Vitalii Irkha <v.irkha@samsung.com> Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
2019-11-18Added notification callback on reset SVR DBVitalii Irkha5-0/+80
Created API's for notifing when SVR DB is reset https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/599/commits/93a9f532a2da7526cbede4f77f27c727480ec270 (cherry-picked from 93a9f532a2da7526cbede4f77f27c727480ec270) Change-Id: Ib4ac7d36f2232dce6ce0f6a1ecb64d9d2e153cf7 Signed-off-by: Vitalii Irkha <v.irkha@samsung.com> Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
2019-11-18Workaround for CONPRO-1516Vitalii Irkha4-0/+184
Added APIs for setting device ID in reset profile https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/602/commits/7ec27b13b5f7e14575f4c96000346ef4b18964dc (cherry-picked from 7ec27b13b5f7e14575f4c96000346ef4b18964dc) Change-Id: I815f3847727213fbefb5d4f930a3f08a1a7b9be0 Signed-off-by: Vitalii Irkha <v.irkha@samsung.com> Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
2019-11-18Added missing catch block for std::exception (#598)kush.agrawal@samsung.com1-4/+10
* [CONPRO-1523]Added missing catch block for std::exception This exception is thrown when thread execution fails https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/598/commits/2a57dc73fe7dc0d0c9fdf7b93ec3e4ac1974d9f2 (cherry-picked from 2a57dc73fe7dc0d0c9fdf7b93ec3e4ac1974d9f2) Signed-off-by: Kush <kush.agrawal@samsung.com> * Removed extra space Change-Id: Ic45c377796668dce5ad417d89c17624267d21a33 Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
2019-11-18Replace API's for reverting all secure resourcesVitalii Irkha1-2/+1
Call ResetSecureResourceInPS() instead of RestoreDoxmToInitState() and RestorePstatToInitState() https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/599/commits/f8d712a5ee2cf1b58736fccb2cc168a93fc1c0c2 (cherry-picked from f8d712a5ee2cf1b58736fccb2cc168a93fc1c0c2) Change-Id: I7d26a94cdf76eba05959d378a2839cbd51512c87 Signed-off-by: Vitalii Irkha <v.irkha@samsung.com> Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
2019-11-18Avoid adding elements to QueueingThread if it's stopped. (#596)senthil.gs@samsung.com8-20/+135
* Avoid adding elements to QueueingThread if it's stopped. Background:- -> If a thread has called CAQueueingThreadStop(), it signals the condition variable to wake up the CAQueueingThreadBaseRoutine. -> After signaling, it waits on the same condition variable to wait for the completion of CAQueueingThreadBaseRoutine. -> CAQueueingThreadBaseRoutine will finish its current task and signals the condition variable. -> CAQueueingThreadStop should wake up upon signal and return back to caller. Issue:- -> CAQueueingThreadAddData also signals the condition variable which can wake up the thread that called CAQueueingThreadStop. -> CAQueueingThreadStop returns back to caller assuming that the CAQueueingThreadBaseRoutine has stopped. But it could still be running which might result in race condition/unwanted behavior. This will have a positive impact for CONPRO-1515 in which IP send thread was not stopped during OCStop() and new requests were getting added. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/596/commits/a9cc86c208e1cf19d2725681d9e45dcb9ec8f663 (cherry-picked from a9cc86c208e1cf19d2725681d9e45dcb9ec8f663) Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com> * Indentation fix. Change-Id: Iad6b385b0bf77bc1a9fabc1525a9acbcecc5bef3 Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
2019-11-18Revert "Add empty string check of uuid"Aleksey Volkov1-6/+1
This reverts commit ca00c37c2f8583fb754d03ca37c716d7c1cd1401. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/597/commits/061901767e9f842a83fb304a0a7d3d79ffc738af (cherry-picked from 061901767e9f842a83fb304a0a7d3d79ffc738af) Change-Id: I7cb645a5a42df6cf36a77b5ea2f65dda2fc77f1f Signed-off-by: Aleksey Volkov <a.volkov@samsung.com> Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>