summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-01-30Remove unused source file in tizen bt_le_adaptersubmit/tizen/20200218.000626submit/tizen/20200203.002206accepted/tizen/unified/20200204.125838DoHyun 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-30Update mbedTLS sourcesOleksii Beketov715-17812/+82162
Include updated in 28c4c80e (PR#609) mbedTLS source codes https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/656 (cherry-picked from 9592ed1c8f26b8ddb8cc44ac897a42f4a9209c5a) Change-Id: I85ad3bc1045e6e1e5a53323c1c2ba3ad190a0397 Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2020-01-28Update snapshot_history.txtSudipto1-0/+6
Change-Id: I6d58b5392e2ce3a698cfcaa468fe2e2bff5fa0eb Signed-off-by: Sudipto <sudipto.bal@samsung.com>
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-17Update snapshot_historysubmit/tizen/20200121.084836Sudipto1-0/+6
Change-Id: Iaf49d04b13c0cb0876708e5a939f1329e88c57f8 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>
2020-01-15Update mbedTLSOleksii Beketov3-191/+404
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/609 (cherry-picked from e75e05c54bbba696c56df79d72f5de3ca82d20a9) Change-Id: Iee97e14f68f1e532886e4cb9bb265e0760b2c226 Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2020-01-12Fixing 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-12crash in NSConsumerMsgHandleThreadFuncSourav Bhuwalka1-0/+1
Before checking size of queue adding a check to see queue is null or not https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/2624fc610b13ad611d4bc73d5478c15382002940 (cherry-picked from 2624fc610b13ad611d4bc73d5478c15382002940) Change-Id: I099a627a45b042debcf1cc841cbcd3be20aeae79 Signed-off-by: Sudipto <sudipto.bal@samsung.com>
2020-01-12CONPRO-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-12New 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-12Bug 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-12BLE 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-12Adding 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-12Deadlock 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-12Build 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>
2020-01-03Enable GCOV Coverage & Logging in UT. (#628)senthil.gs@samsung.com7-3/+32
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>
2019-12-30Remove the unnecessary ignore optionssubmit/tizen/20191230.033619accepted/tizen/unified/20191230.120915DoHyun Pyun1-2/+2
Change-Id: I62a0ef80f750dcfd8cdf6d89549759c4c097bf17 Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2019-12-30Add the build exception for tizen (gcc9)DoHyun Pyun1-0/+4
Change-Id: I1512f3d460cb6bf8cc63bf52efa91a8269d2eeb8 Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2019-11-28Fix RE unit test case. (#632)submit/tizen/20191128.075235accepted/tizen/unified/20191201.221455senthil.gs@samsung.com2-14/+18
Unit test case which was failing: RemoteResourceObjectTest.IsCachingReturnsTrueAfterStartCaching() Reason for failure: Shared pointer reference for RCSRemoteResourceObject was not released. Due to which, there was a problem in tearing down the test case. This PR has the fix. Additionally, application will receive caching callback from RCSRemoteResourceObject only if remote resource object is available. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/632 (cherry-picked from e8fb156d8239ace91f9529830f4781ea16e85bd3) Change-Id: Idf587d1f5add4360a717a6959dcc839bc7aacb9f Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com> Signed-off-by: DoHyun Pyun <dh79.pyun@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-28Android QuickBuild fix.Senthil Kumar G S5-4/+12
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/6c1a44b94988d8fe7147c64461d76ff666afa223 (cherry-picked from 6c1a44b94988d8fe7147c64461d76ff666afa223) Change-Id: Icd343a4d03c71aff46dd48a935131e4a6dcdbb89 Signed-off-by: Senthil Kumar G S <senthil.gs@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-28Remove code duplication in easy-setup service.Senthil Kumar G S2-386/+108
Code duplications in easy-setup service reported by Sonarqube has been addressed in this patch. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/ecf2f9ec396bddceaa59aa4daa84506d6ea32e92 (cherry-picked from ecf2f9ec396bddceaa59aa4daa84506d6ea32e92) Change-Id: Id89ba0f0ea8a712dad2c60873f4c6896491a7cb9 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-21Change the header install path for c_common and loggersubmit/tizen/20191121.044045accepted/tizen/unified/20191121.073426DoHyun Pyun1-8/+8
ttrace moudle installs "ttrace.h" header in /usr/include, so conflict error is occured. To resolve this issue, iotivity-dev changes the header install path. [80s] [372/388] installing iotivity-devel-1.2.1-0 [80s] file /usr/include/trace.h from install of iotivity-devel-1.2.1-0.armv7l conflicts with file from package ttrace-devel-1.0.3-1.armv7l Change-Id: I66c0395b3abce8700c8beea8e2eb4ca540e9f034 Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
2019-11-18Update snapshot_historysubmit/tizen/20191119.000236accepted/tizen/unified/20191119.083949Sudipto Bal1-0/+6
Change-Id: I48591948e631c04cb6e4463cd0845c965dab37ec Signed-off-by: Sudipto Bal <sudipto.bal@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.com20-79/+64
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>
2019-11-15Added logging into IsRequestFromDevOwner() APIVitalii Irkha1-0/+18
Added logging for CONPRO-1516 issue https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/592/commits/094b5ea90860840b4e0b7026ee6160d8c2866e8c (cherry-picked from 094b5ea90860840b4e0b7026ee6160d8c2866e8c) Change-Id: Ia53c60ec6d70675e5d40f48ff3bf903896fca5dd Signed-off-by: Vitalii Irkha <v.irkha@samsung.com> Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
2019-11-15Fix OTM issue during DTLS handshakeVitalii Irkha1-3/+2
Revert all secure resources after DTLS handshake error https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/592/commits/ba8ed7dda2f9516ed446a65b877f26a506567491 (cherry-picked from ba8ed7dda2f9516ed446a65b877f26a506567491) Change-Id: I3a94587fe5a31f5c6f889c74cbbb4ea0a293fbf6 Signed-off-by: Vitalii Irkha <v.irkha@samsung.com> Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>