platform/upstream/iotivity.git
9 months agoFix Build error for riskv profile 02/295302/1 accepted/tizen_unified accepted/tizen_unified_dev tizen accepted/tizen/unified/20231226.154655 accepted/tizen/unified/20231226.180234 accepted/tizen/unified/dev/20230726.115900
Jihoon Jung [Wed, 5 Jul 2023 02:44:56 +0000 (11:44 +0900)]
Fix Build error for riskv profile

Change-Id: Ib8e551531b0e595a1ff59a4862f72a01f1bfbb55
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
14 months agoMerge "Use python-accel to accelerate package build" into tizen
Pyun DoHyun [Wed, 22 Feb 2023 23:42:47 +0000 (23:42 +0000)]
Merge "Use python-accel to accelerate package build" into tizen

14 months agoChange BuildRequire from python to python3 26/288326/1 accepted/tizen/unified/20230221.031437
biao716.wang [Wed, 15 Feb 2023 03:59:11 +0000 (12:59 +0900)]
Change BuildRequire from python to python3

Change-Id: Ib7ec6858f985ee85b4637bc3b2ffcfa01a12a907
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
14 months agoFix build error with scons-4.4.0 version which is based on python3 37/287937/2 accepted/tizen/unified/20230214.171546
biao716.wang [Wed, 8 Feb 2023 03:40:36 +0000 (12:40 +0900)]
Fix build error with scons-4.4.0 version which is based on python3

Change-Id: I00b46873cc9131477e999fa07bdd7c54ca833708
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
17 months agoriscv64: Add support for RISC-V 75/284475/1 accepted/tizen_8.0_unified tizen_8.0 accepted/tizen/8.0/unified/20231005.094953 accepted/tizen/unified/20230306.081601 submit/tizen/20221206.152029 tizen_8.0_m2_release
Marek Pikuła [Mon, 7 Nov 2022 14:18:32 +0000 (15:18 +0100)]
riscv64: Add support for RISC-V

Change-Id: Ia6d62a0cea22be8fa8e0a4a15e75498f0ac1a8ad
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
2 years agoUse python-accel to accelerate package build 49/265949/1
jungwoo0.lee [Tue, 2 Nov 2021 07:37:09 +0000 (03:37 -0400)]
Use python-accel to accelerate package build

Change-Id: If3afa8624e89482cb4f5d7a7b05ae1639992f529

2 years agoDisable auto connect while calling bt_gatt_connect 02/260502/1 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.5/unified/20211029.013650 accepted/tizen/7.0/unified/20221110.061438 accepted/tizen/7.0/unified/hotfix/20221116.110905 accepted/tizen/unified/20210629.130141 submit/tizen/20210628.055145 submit/tizen_6.5/20211028.163401 tizen_6.5.m2_release tizen_7.0_m2_release
DoHyun Pyun [Mon, 14 Jun 2021 07:29:04 +0000 (16:29 +0900)]
Disable auto connect while calling bt_gatt_connect

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/812
(cherry-picked from a714931da5f0f4a31e8d993b2c5972681138f953)

Change-Id: Ibe67b77ce8c9477f88a567774dc777eb8761da4c
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agofix: Check for all zero UUID of a subject 23/253723/1
Volodymyr Brynza [Wed, 10 Feb 2021 09:50:28 +0000 (11:50 +0200)]
fix: Check for all zero UUID of a subject

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/787
(cherry-picked from 788de326f33bc5bb9c754a20f922631c7b53d930)

Change-Id: I4f3746c346085434bbf2acdfe1eedf23c05b3a17
Signed-off-by: Volodymyr Brynza <v.brynza@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agofix: /oic/sec/acl remove from srvdb 22/253722/1
Volodymyr Brynza [Mon, 1 Feb 2021 12:55:42 +0000 (14:55 +0200)]
fix: /oic/sec/acl remove from srvdb

remove resource from read srvdb file
change default ACL

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/787
(cherry-picked from 1052ec718f7eada1b35efcdfe08f08379c84ac4f)

Change-Id: I2ec1b1d401fbe93a3df395990c88bbf0b3ae59a1
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoEnable Tizen version and DUP features 60/244660/1
DoHyun Pyun [Wed, 23 Sep 2020 04:49:08 +0000 (13:49 +0900)]
Enable Tizen version and DUP features

Change-Id: I8b7056f46703d7403a81eec738168cee94da9e6e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
3 years agoUpdate snapshot_history 37/236737/2
Sudipto [Fri, 19 Jun 2020 17:28:56 +0000 (22:58 +0530)]
Update snapshot_history

Change-Id: I0af9b7dbe67257b87244ddc1872a6fd71c8a22dc
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoOCRemoveDeviceWithUuid waste time 36/236736/1
Vitalii Irkha [Thu, 30 Jan 2020 12:51:24 +0000 (14:51 +0200)]
OCRemoveDeviceWithUuid waste time

Fix waste time by OCRemoveDeviceWithUuid() API,
in cases if callback was not called.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/658
(cherry-picked from bc40a08891e7ebcd790027bea58822b93c7128c8)

Change-Id: I11756b658c0eace489a990b588f085417494c6b9
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoFix build error for tizen in secured mode for TARGET_TRANSPORT = ALL 35/236735/1
sourav bhuwalka [Tue, 9 Jun 2020 12:02:43 +0000 (17:32 +0530)]
Fix build error for tizen in secured mode for TARGET_TRANSPORT = ALL

Adding pthread libs in the Sconscript where it was missing

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/711
(cherry-picked from 0ee5e7151d1438559e642818a2b7cee5704aefd4)

Change-Id: I8fe8993965016026e3d3b672696a638c67b32c39
Signed-off-by: sourav bhuwalka <s.bhuwalka@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years ago[CONPRO-1591]:Crash in libconnectivity_abstraction.so [CAIPStopServer] 34/236734/1
Sourav Bhuwalka [Wed, 27 May 2020 22:55:07 +0000 (04:25 +0530)]
[CONPRO-1591]:Crash in libconnectivity_abstraction.so [CAIPStopServer]

Setting the value of caglobals.ip.shutdownFds[1] to -1 to avoid
double closure of the same socket

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/706
(cherry-picked from 3dfe9fb3db7945b50a663a7ff545e11b576c1cfe)

Change-Id: Ia46a971ebdc834433f528986b3c772487f06c60c
Signed-off-by: Sourav Bhuwalka <s.bhuwalka@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoUpdate OCUtilitiesTest.cpp 33/236733/1
sanket [Thu, 14 May 2020 08:33:01 +0000 (14:03 +0530)]
Update OCUtilitiesTest.cpp

Changed license year.

(cherry-picked from 6a760e8b2e2c709b86c5482b33729ce0aa55bdbb)

Change-Id: Ifab99247abc67d24b14f5b05e94aec1fa07d999d
Signed-off-by: sanket <san.bansal@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoResolved review changes 32/236732/1
sanket [Wed, 13 May 2020 17:35:56 +0000 (23:05 +0530)]
Resolved review changes

1. Removed unused variables.
2. Added samsung license banner.

(cherry-picked from fcc7df22b7f94dfdcec71abdf37ccf3caf3853cd)

Change-Id: I0fc79defcee841ba42a6ee7de6fb3614787f9cf9
Signed-off-by: sanket <san.bansal@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoUT for OCUilities 31/236731/1
sanket [Tue, 12 May 2020 14:25:36 +0000 (19:55 +0530)]
UT for OCUilities

Added test cases to increase code-coverage of OCUtilities.cpp

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/699
(cherry-picked from 493316c01247a5d2b2e119a2c322570bcba63718)

Change-Id: If1c9218398da686e4bdfec1f7186315292af50e6
Signed-off-by: sanket <san.bansal@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoUpdate OCResourceRequestTest.cpp 30/236730/1
sanket [Thu, 21 May 2020 14:12:34 +0000 (19:42 +0530)]
Update OCResourceRequestTest.cpp

Added samsung banner.
used relevant resource uri name.

(cherry-picked from 633bb95c6266c6990e4ec84d5fbd9e76d4956fc2)

Change-Id: I332e70dd9c390d861a408c215add79680f9027aa
Signed-off-by: sanket <san.bansal@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoUT for ResourceRequest 29/236729/1
sanket [Wed, 13 May 2020 10:03:53 +0000 (15:33 +0530)]
UT for ResourceRequest

Added testcases for ResourceRequest API.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/700
(cherry-picked from ba128f63aee254b81bb0cc72c3f84442280dd2ef)

Change-Id: I064a27724b697c9fa7390583e98e41e6c8f2383a
Signed-off-by: sanket <san.bansal@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoSample HTTPS server 28/236728/1
Oleksii Beketov [Tue, 12 May 2020 13:40:52 +0000 (16:40 +0300)]
Sample HTTPS server

New HTTP secure server sample added.
Server loads secure credentials from SVR DB.

(cherry-picked from ffe5ae340e426f935a0993ef5971958262b310cb)

Change-Id: I6ce4b925b9027184be36122363dc39eb182ecfac
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years ago[CONPRO-1583]Enable Duplicate Ipv4/Ipv6 packets through build flag. 27/236727/1
Sudipto [Fri, 19 Jun 2020 16:58:06 +0000 (22:28 +0530)]
[CONPRO-1583]Enable Duplicate Ipv4/Ipv6 packets through build flag.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/697
(cherry-picked from 5f16b1a9e8aa57e535d3bdf7a7e318a8c3b557ff)

Change-Id: I9188df1161d97302a837af2aeec76d0ee0a72592
Signed-off-by: Kush <kush.agrawal@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoEnabling building linux enrolle and mediator sample apps 60/236360/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.110447 accepted/tizen/6.0/unified/hotfix/20201102.233837 accepted/tizen/6.0/unified/hotfix/20201103.051143 accepted/tizen/unified/20200618.130110 submit/tizen/20200616.235056 submit/tizen_6.0/20201029.205502 submit/tizen_6.0_hotfix/20201102.192902 submit/tizen_6.0_hotfix/20201103.115102 tizen_6.0.m2_release
samanway [Thu, 7 May 2020 08:19:42 +0000 (13:49 +0530)]
Enabling building linux enrolle and mediator sample apps

- Building linux enrolle and mediator sample apps was disabled
- Modified service/easy-setup/SConscript

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/696
(cherry-picked from d3e72128a2c980a24749098037a6bbe970f047b4)

Change-Id: I50f82e157ca423552f525d8b72d69687bdfae704
Signed-off-by: samanway-dey <samanway.dey@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years ago[Unit Tests]:Added unit tests for oicgroup.c 59/236359/1
Sourav Bhuwalka [Fri, 1 May 2020 00:40:53 +0000 (06:10 +0530)]
[Unit Tests]:Added unit tests for oicgroup.c

Added the unit tests for oicgroup.c file

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/695
(cherry-picked from eb626ad01918d9fea35df2f322e5186b126c090d)

Change-Id: I87af29913e9d9277af9eb274378b9b1350e04d99
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years ago[Unit Test]Refactor KeepAlive test cases 58/236358/1
Kush [Thu, 30 Apr 2020 21:50:21 +0000 (03:20 +0530)]
[Unit Test]Refactor KeepAlive test cases

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/694
(cherry-picked from 4a805f46d2652d9f9f50610fb4c240576f859947)

Change-Id: I8ac9754ad4033a50a35b44823314087e7fedd790
Signed-off-by: Kush <kush.agrawal@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoAdding ConnectionManager Test Case 57/236357/1
Kush [Thu, 30 Apr 2020 16:12:42 +0000 (21:42 +0530)]
Adding ConnectionManager Test Case

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/693
(cherry-picked from 17b93dde4ed6de266af41a27f65026ca25b8ed53)

Change-Id: I404ed36b6a3efd40f0759df8da6d7be91b0d1bce
Signed-off-by: Kush <kush.agrawal@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoAdding unit test cases for oickeepalive file 56/236356/1
Sourav Bhuwalka [Thu, 23 Apr 2020 00:55:08 +0000 (06:25 +0530)]
Adding unit test cases for oickeepalive file

New file containing unit test cases for oickeepalive file is
added

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/685
(cherry-picked from d341b70f69a6969cfd6a6134d7492a082d5d5365)

Change-Id: If96e0b9856d3360b1082adc91da8387b04efa0bd
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoAdding Unit Test for OCDirectPairing.cpp in IoTivity 55/236355/1
samanway [Wed, 29 Apr 2020 18:46:27 +0000 (00:16 +0530)]
Adding Unit Test for OCDirectPairing.cpp in IoTivity

- Added unit tests for OCDirectPairing.cpp
- Enabled building by modifying SConscript

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/685
(cherry-picked from eb2c92da91a723a7bf7876f09a1784ea514d383b)

Change-Id: I6ad094fa4aba180c5846541bc36cf49978241fb1
Signed-off-by: samanway-dey <samanway.dey@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years ago[Unit Test] Solving Build Error for OCEvent TCs 54/236354/1
Sudipto [Tue, 16 Jun 2020 10:33:19 +0000 (16:03 +0530)]
[Unit Test] Solving Build Error for OCEvent TCs

 - In commit 371b5f, a python import was removed from
SConscript, which was causing build error for TCs
 - Modified resource/c_common/ocevent/test/SConscript

(cherry-picked from e890177a6dfb23a3935f590c4845f22b98dec5bd)

Change-Id: I02e20347116774834234d5e7094f6c4834b1d6da
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoDisable Easy Setup Test Cases 53/236353/1
Kush [Wed, 29 Apr 2020 06:01:56 +0000 (11:31 +0530)]
Disable Easy Setup Test Cases

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/692
(cherry-picked from 8ad1554bd5996b8902b9aa093fe66bbb4341a25e)

Change-Id: Ia4b3e78aaf00744f04acc2088850e0b7e100660f
Signed-off-by: Kush <kush.agrawal@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years ago[UnitTest]Enabling ocevent test cases 52/236352/1
Sudipto [Tue, 16 Jun 2020 10:26:19 +0000 (15:56 +0530)]
[UnitTest]Enabling ocevent test cases

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/691
(cherry-picked from 371b5fde8d1b0b29c70f77b5f261724b97cba1f9)

Change-Id: Ib87c0e026ebb815ab3b71c3112cfdf886f7c9f60
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoUpdate generate coverage report script 51/236351/1
Kush [Wed, 29 Apr 2020 04:55:59 +0000 (10:25 +0530)]
Update generate coverage report script

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/688
(cherry picked from 78cf5ff7048113cf3cbb86d1a693976c4d109294)

Change-Id: I601fa5291c2b12b53904a929e0b59b371a22215f
Signed-off-by: Kush <kush.agrawal@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years ago[Unit Test] Adding Unit Test for CAManager.cpp in IoTivity C++ Wrapper 50/236350/1
Sudipto [Tue, 16 Jun 2020 10:06:21 +0000 (15:36 +0530)]
[Unit Test] Adding Unit Test for CAManager.cpp in IoTivity C++ Wrapper

- Added Unit Test for CAManager.cpp
- Changed the SConscript to build CAManagerTest.cpp

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/684/commits
(cherry-picked from 08ce4fa0814b6c85a01e0a90be4821f523bdac3c)

Change-Id: Ie704b0fbb947365c741e100d0e48c809e79a5aeb
Signed-off-by: samanway-dey <samanway.dey@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoAdd Unit Tests for EasySetup APIs. 91/235991/1 accepted/tizen/unified/20200612.144948 submit/tizen/20200611.232159
Senthil Kumar G S [Wed, 4 Dec 2019 11:00:21 +0000 (16:30 +0530)]
Add Unit Tests for EasySetup APIs.

UT for some of the samsung specific APIs are added.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/633
(cherry-picked from 1798784a33171c8902d64fd5cbb083c370a04e13)

Change-Id: Ib37c3d3ce83a2272f82a43a6567dc996b0647199
Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoAndroid build fix 90/235990/1
Oleksii Beketov [Mon, 13 Apr 2020 20:29:17 +0000 (23:29 +0300)]
Android build fix

After mbedTLS revision update, GCC < 5.0 treated the x86 ebx as a
fixed reserved register when building as PIC, leading to errors

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/678
(cherry-picked from f96e428b9658a9d4d60417c53d0689fe7b02d684)

Change-Id: I80928e1bfcfbae5cec0173a5dd8a9b655b1c277a
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoissue in OwnerUuidUpdateHandler 89/235989/1
Vitalii Irkha [Thu, 16 Apr 2020 10:24:03 +0000 (13:24 +0300)]
issue in OwnerUuidUpdateHandler

Fix possible crash in OwnerUuidUpdateHandler() API

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/682
(cherry-picked from 0132766ed5abdc8252f5ebbdd20583af0b203eda)

Change-Id: Iee6f14b176b52b72fb55e2d9b22ed11d9bc70492
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoFix for Sonarqube Bugs 88/235988/1
samanway [Fri, 17 Apr 2020 04:52:50 +0000 (10:22 +0530)]
Fix for Sonarqube Bugs

- Redundant condition checking reported in caleclient.c, corrected
- Added NULL check in NSProviderTopic.c

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/683
(cherry-picked from 904203befcb4bfd93a2f91f5b97c792715196992)

Change-Id: Id8c7d6e4b91693d4ef07c10e0628ef1546870cf6
Signed-off-by: samanway-dey <samanway.dey@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoDisable NSProvider unit test 87/235987/1
Kush [Tue, 14 Apr 2020 20:45:23 +0000 (02:15 +0530)]
Disable NSProvider unit test

Due to stack smashing error, disabling notiifcation provide unit test cases

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/681
(cherry picked from a622a60cb9abaf76f78403bbdf0e4adb444c1ab5)

Change-Id: I8e5e6d9882c9d9ed220b29de26c4ac3c4e3cc8d1
Signed-off-by: Kush <kush.agrawal@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoFix OCException Test Case 86/235986/1
Kush [Tue, 14 Apr 2020 17:16:17 +0000 (22:46 +0530)]
Fix OCException Test Case

Disable cloud from coverage report

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/680
(cherry-picked from d2157c697246b85622b8739150504377cfc61833)

Change-Id: I7563ded9ba7dcb8d95a903c1866212284fe87776
Signed-off-by: Kush <kush.agrawal@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoWhen compiling IoTivity with WITH_CLOUD=true 85/235985/1
Kush [Tue, 14 Apr 2020 04:43:37 +0000 (10:13 +0530)]
When compiling IoTivity with WITH_CLOUD=true

Aircon_controlee example fails to compile:
In file included from cloud/samples/client/airconditioner/aircon_controlee.cpp:12:0:
resource/csdk/resource-directory/include/RDClient.h:49:21: error: 'recursive_mutex' is not a member of 'std'
     std::shared_ptr<std::recursive_mutex> _csdkLock;

Including the mutex header fixes the issue.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/679
(cherry-picked from 942b81212d584d4471afb6af80aa54d170da80cf)

Change-Id: Ib03099dfdf8dee60439e4fffab579f45bd5978d2
Signed-off-by: Kush <kush.agrawal@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
3 years agoAdd resetSVRDB method to OCSecure to synchronize with OCPlatform 84/235984/1
Michal Mank [Wed, 8 Apr 2020 12:41:57 +0000 (14:41 +0200)]
Add resetSVRDB method to OCSecure to synchronize with OCPlatform

[Model] LUX
[BinType] AP
[Customer] LUX

[Issue#] TTES-534
[Request] N/A
[Occurrence Version] 1.2.1-61

[Problem] resetting svr db only in c api
[Cause & Measure] added version in c++ api; this will
synchronize resetting svrdb with the rest of OCPlatform
methods using csdkLock mutex
[Checking Method] build & test on device

[Team] IoT Connectivity
[Developer] m.mank
[Solution company] Samsung
[Change Type] new feature

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/673
(cherry-picked from 7a46617818b08af0b75a61893465b007134f4098)

Change-Id: If8ae77355ab268478ec7dfed08ce6a8e0468f331
Signed-off-by: Michal Mank <m.mank@samsung.com>
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
4 years agoRevert "[CONPRO-1568] Ignoring duplicate IPv6/Ipv4 messages" 52/230752/1 accepted/tizen/unified/20200416.001142 submit/tizen/20200414.045530
DoHyun Pyun [Tue, 14 Apr 2020 04:13:18 +0000 (13:13 +0900)]
Revert "[CONPRO-1568] Ignoring duplicate IPv6/Ipv4 messages"

This reverts commit d386e3797794d970b5e96c25fc00780c80b2a6fe.

Native iotcon ITC fail issues are occured with this patchset in
FHub 6.0 image. After re-checking the patchset, we will apply.

Change-Id: I34e07c6e07f1c6b602cbf861ea51459a639ab80e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix -Wreturn-type build warning 37/229537/1 accepted/tizen/unified/20200407.130847 submit/tizen/20200402.005546 submit/tizen/20200403.000136 submit/tizen/20200405.215959
DoHyun Pyun [Wed, 1 Apr 2020 22:55:52 +0000 (07:55 +0900)]
Fix -Wreturn-type build warning

With new toolchain gcc9.2, these cases go to 100%
crash. So Must Fix this warning error.

Change-Id: I8354a2d6c57d2da16feca5151e1b5ebe99be55fe
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoUpdate snapshot_history.txt 03/229403/1
DoHyun Pyun [Wed, 1 Apr 2020 01:35:41 +0000 (10:35 +0900)]
Update snapshot_history.txt

Change-Id: Ifa3a4052f715dbd849e30cc674ea8c6550c4a8fa
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdding thread safety in notification service. 02/229402/1
Kush [Fri, 13 Mar 2020 15:05:19 +0000 (20:35 +0530)]
Adding thread safety in notification service.

Issue: Push Event and exit are called at same time.
       Then there is a race condition and deadlock occurs.

Solution : Adding mutex which will synchronize tasks between
           handler thread and push event thread.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/669
(cherry-picked from 0b58e0e487a3e2d4e6fe5b02d7fb1dab6b040a6f)

Change-Id: I4db8cd03283cfc1824a32651a63cd6f509621931
Signed-off-by: Kush <kush.agrawal@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdding fix for bi directional request 01/229401/1
Kush [Thu, 6 Feb 2020 07:52:04 +0000 (13:22 +0530)]
Adding fix for bi directional request

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/664
(cherry-picked from e7010477b877fc74ba3773c2661ec289da6de8ae)

Change-Id: Ia7c0bb9dc15c0fde7bbd34262fc39c57356ddf66
Signed-off-by: Kush <kush.agrawal@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years ago[CONPRO-1568] Ignoring duplicate IPv6/Ipv4 messages 00/229400/1
Kush [Wed, 4 Mar 2020 15:32:39 +0000 (21:02 +0530)]
[CONPRO-1568] Ignoring duplicate IPv6/Ipv4 messages

Issue : There can be duplicate messages coming from multiple ipv6 (or v4)
addresses in the system. The presence of ipv6 link-local for instance
could cause duplicate messages to appear.

Solution : Remove check based on IPv4/Ipv6

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/668
(cherry-picked from 7d5e906bedb032f88f2dd2fca97f70a631c1346e)

Change-Id: I7fd73ad9401a30192141a048db9d88cd7bfea3b6
Signed-off-by: Kush <kush.agrawal@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years ago[CONPRO-1558] Adding check for tasks already freed through ca_thread_pool_free 99/229399/1
Kush [Mon, 2 Mar 2020 12:46:29 +0000 (18:16 +0530)]
[CONPRO-1558] Adding check for tasks already freed through ca_thread_pool_free

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/667
(cherry-picked from 2977211f5c3927ac9613688e37cc4cd06e44f1d6)

Change-Id: Ie7dd756317d1cab004861c7b85aa9822e94b4b0d
Signed-off-by: Kush <kush.agrawal@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years ago[CONPRO-1571] Fix for DeleteObserver in case of GATT adapter 98/229398/1
Kush [Fri, 28 Feb 2020 09:52:38 +0000 (15:22 +0530)]
[CONPRO-1571] Fix for DeleteObserver in case of GATT adapter

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/666
(cherry-picked from bd25a20961dc89dd4c7fedb5a3f4e881ddb53b0a)

Change-Id: Id9259093a010533ec20fc4061f2283d7d69d016a
Signed-off-by: Kush <kush.agrawal@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years ago[CONPRO-1557] Iotivity crash (keep alive thread) 97/229397/1
Sourav Bhuwalka [Fri, 31 Jan 2020 17:45:57 +0000 (23:15 +0530)]
[CONPRO-1557] Iotivity crash (keep alive thread)

Added try catch block before std::thread

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/660
(cherry-picked from eb06ec216a4595c565ad62901f5ab5029ed2a93d)

Change-Id: Ia0e4faf4c832a06a4826ddb732703a12ab65110a
Signed-off-by: Sourav Bhuwalka <s.bhuwalka@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years ago[CONPRO-1561] Crash in memcpy 89/225289/2 submit/tizen/20200219.001638
samanway [Tue, 4 Feb 2020 11:07:38 +0000 (16:37 +0530)]
[CONPRO-1561] Crash in memcpy

- 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>
4 years ago[CONPRO-1560] iotivity crash in data receiver thread 88/225288/2
samanway [Wed, 5 Feb 2020 11:14:29 +0000 (16:44 +0530)]
[CONPRO-1560] iotivity crash in data receiver thread

- 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>
4 years ago[CONPRO-1564] Doxm deadlock 87/225287/2
Oleksii Beketov [Thu, 13 Feb 2020 11:53:23 +0000 (13:53 +0200)]
[CONPRO-1564] Doxm deadlock

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>
4 years ago[CONPRO-1549] Create new method in RDClient 86/225286/2
Sourav Bhuwalka [Fri, 24 Jan 2020 13:00:49 +0000 (18:30 +0530)]
[CONPRO-1549] Create new method in RDClient

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>
4 years ago[CONPRO-1555] oneconnect:Core / Application crashed 85/225285/2
samanway [Tue, 28 Jan 2020 16:38:04 +0000 (22:08 +0530)]
[CONPRO-1555] oneconnect:Core / Application crashed

- In function NSConsumerMsgPushThreadFunc for locking 'msgHandleThread', there could be a
possibility of destruction of the thread running NSConsumerMsgHandleThreadFunc function
and destruction of the mutex as well at the time of locking it
- Hence handled this critical mutex with a global lock

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/657
(cherry-picked from 5289e48a0aa9ce007d44cd443dd73cc8f509fcee)

Change-Id: I1892df4276b6ffcb969a91fd23c9f3d9f3c5a959
Signed-off-by: samanway-dey <samanway.dey@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd uuid convert 84/225284/2
Oleksii Beketov [Mon, 3 Feb 2020 13:59:37 +0000 (15:59 +0200)]
Add uuid convert

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>
4 years agoRemove unused source file in tizen bt_le_adapter 49/223449/1 accepted/tizen/unified/20200204.125838 submit/tizen/20200203.002206 submit/tizen/20200218.000626
DoHyun Pyun [Thu, 30 Jan 2020 01:47:54 +0000 (10:47 +0900)]
Remove unused source file in tizen bt_le_adapter

Change-Id: I8cf29c80bf61adcfba26c8a2acaa9a63f21b4460
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoCONPRO-1551 Adding support for LE bi directional request. 48/223448/1
Kush [Wed, 22 Jan 2020 13:20:46 +0000 (18:50 +0530)]
CONPRO-1551 Adding support for LE bi directional request.

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>
4 years agoAdding NULL check in CALEClientAddUuid 47/223447/1
samanway [Wed, 22 Jan 2020 08:23:41 +0000 (13:53 +0530)]
Adding NULL check in CALEClientAddUuid

- 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>
4 years agoUpdate mbedTLS sources 46/223446/1
Oleksii Beketov [Fri, 24 Jan 2020 13:35:59 +0000 (15:35 +0200)]
Update mbedTLS sources

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>
4 years agoUpdate snapshot_history.txt 90/223290/1
Sudipto [Tue, 28 Jan 2020 07:53:52 +0000 (13:23 +0530)]
Update snapshot_history.txt

Change-Id: I6d58b5392e2ce3a698cfcaa468fe2e2bff5fa0eb
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
4 years ago[CONPRO-1552] Build fail for -Werror=implicit-function-declaration] 89/223289/1
samanway [Wed, 22 Jan 2020 11:54:07 +0000 (17:24 +0530)]
[CONPRO-1552] Build fail for -Werror=implicit-function-declaration]

- 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>
4 years ago[CONPRO-1552] Fixing lack of header guards in RDClient.h 88/223288/1
samanway [Fri, 17 Jan 2020 14:15:09 +0000 (19:45 +0530)]
[CONPRO-1552] Fixing lack of header guards in RDClient.h

- 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>
4 years agoUpdate snapshot_history 72/222672/1 submit/tizen/20200121.084836
Sudipto [Fri, 17 Jan 2020 05:45:06 +0000 (11:15 +0530)]
Update snapshot_history

Change-Id: Iaf49d04b13c0cb0876708e5a939f1329e88c57f8
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
4 years agoIotivity crash on 502 Bad Gateway error 71/222671/1
Sourav Bhuwalka [Fri, 10 Jan 2020 07:26:17 +0000 (12:56 +0530)]
Iotivity crash on 502 Bad Gateway error

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>
4 years agoUpdate mbedTLS 38/222438/1
Oleksii Beketov [Mon, 18 Nov 2019 11:31:52 +0000 (13:31 +0200)]
Update mbedTLS

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>
4 years agoFixing Iotivity crash in catcpserver 57/221557/3
samanway [Thu, 19 Dec 2019 12:44:45 +0000 (18:14 +0530)]
Fixing Iotivity crash in catcpserver

- 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>
4 years agocrash in NSConsumerMsgHandleThreadFunc 56/221556/3
Sourav Bhuwalka [Tue, 24 Dec 2019 18:11:09 +0000 (23:41 +0530)]
crash in NSConsumerMsgHandleThreadFunc

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>
4 years agoCONPRO-1542 Adding left out error codes conversion from EntityHandler to OCStackResult 55/221555/3
Kush [Fri, 20 Dec 2019 10:42:33 +0000 (16:12 +0530)]
CONPRO-1542 Adding left out error codes conversion from EntityHandler to 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>
4 years agoNew API for self ACL updating 54/221554/3
Iurii Metelytsia [Tue, 26 Nov 2019 15:13:42 +0000 (17:13 +0200)]
New API for self ACL updating

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>
4 years agoBug fix in set/unset adapter state change callback. (#640) 53/221553/3
senthil.gs@samsung.com [Tue, 17 Dec 2019 05:40:07 +0000 (11:10 +0530)]
Bug fix in set/unset adapter state change callback. (#640)

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>
4 years agoBLE Scan when GATT already connected. 52/221552/3
Kush [Tue, 15 Oct 2019 10:34:17 +0000 (16:04 +0530)]
BLE Scan when GATT already connected.

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>
4 years agoAdding retry logic for gatt connection for VD client 51/221551/4
samanway [Wed, 30 Oct 2019 10:27:15 +0000 (15:57 +0530)]
Adding retry logic for gatt connection for VD client

- 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>
4 years agoDeadlock after BLE connection error in caleserver_mcd.c 50/221550/3
Kush [Thu, 12 Dec 2019 09:27:39 +0000 (14:57 +0530)]
Deadlock after BLE connection error in caleserver_mcd.c

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>
4 years agoBuild fix for tizen when TARGET_TRANSPORT=BLE 49/221549/3
samanway [Fri, 22 Nov 2019 10:15:47 +0000 (15:45 +0530)]
Build fix for tizen when TARGET_TRANSPORT=BLE

- 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>
4 years agoEnable GCOV Coverage & Logging in UT. (#628) 48/221548/2
senthil.gs@samsung.com [Thu, 28 Nov 2019 06:47:49 +0000 (12:17 +0530)]
Enable GCOV Coverage & Logging in UT. (#628)

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>
4 years agoRemove the unnecessary ignore options 81/221181/1 accepted/tizen/unified/20191230.120915 submit/tizen/20191230.033619
DoHyun Pyun [Mon, 30 Dec 2019 03:35:11 +0000 (12:35 +0900)]
Remove the unnecessary ignore options

Change-Id: I62a0ef80f750dcfd8cdf6d89549759c4c097bf17
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoAdd the build exception for tizen (gcc9) 64/221164/2
DoHyun Pyun [Mon, 30 Dec 2019 00:47:44 +0000 (09:47 +0900)]
Add the build exception for tizen (gcc9)

Change-Id: I1512f3d460cb6bf8cc63bf52efa91a8269d2eeb8
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
4 years agoFix RE unit test case. (#632) 03/218803/1 accepted/tizen/unified/20191201.221455 submit/tizen/20191128.075235
senthil.gs@samsung.com [Thu, 28 Nov 2019 06:34:25 +0000 (12:04 +0530)]
Fix RE unit test case. (#632)

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>
4 years agoFix for crash at FindResourceByUri(). (#629) 02/218802/1
senthil.gs@samsung.com [Wed, 27 Nov 2019 05:45:02 +0000 (11:15 +0530)]
Fix for crash at FindResourceByUri(). (#629)

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>
4 years agoAvoiding code duplications in tizen BLE VD client files. 01/218801/1
samanway [Wed, 20 Nov 2019 13:58:26 +0000 (19:28 +0530)]
Avoiding code duplications in tizen BLE VD client files.

- 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>
4 years agoSplit TCP Server Mutex into different file 00/218800/1
Kush [Thu, 21 Nov 2019 15:54:26 +0000 (21:24 +0530)]
Split TCP Server Mutex into different file

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>
4 years agoQB_linux_SECURED build failed 99/218799/1
Vitalii Irkha [Fri, 22 Nov 2019 09:46:14 +0000 (11:46 +0200)]
QB_linux_SECURED build failed

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>
4 years agoSplit Android CaleClient in two different files. (#619) 98/218798/1
s.bhuwalka@samsung.com [Fri, 22 Nov 2019 07:54:26 +0000 (13:24 +0530)]
Split Android CaleClient in two different files. (#619)

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>
4 years agoSplit Routing Table into Gateway and Endpoint (#617) 97/218797/1
kush.agrawal@samsung.com [Fri, 22 Nov 2019 07:20:23 +0000 (12:50 +0530)]
Split Routing Table into Gateway and Endpoint (#617)

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>
4 years agoAdded changes for SVR DB Validity API 96/218796/1
Vitalii Irkha [Thu, 21 Nov 2019 16:37:45 +0000 (18:37 +0200)]
Added changes for SVR DB Validity API

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>
4 years agoRemoved duplicated code blocks (#615) 95/218795/1
kush.agrawal@samsung.com [Thu, 21 Nov 2019 14:30:39 +0000 (20:00 +0530)]
Removed duplicated code blocks (#615)

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>
4 years agoDraft Created API for SVR DB Integrity check 94/218794/1
Vitalii Irkha [Thu, 14 Nov 2019 18:35:33 +0000 (20:35 +0200)]
Draft Created API for SVR DB Integrity check

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>
4 years agoAndroid QuickBuild fix. 93/218793/1
Senthil Kumar G S [Tue, 19 Nov 2019 09:37:23 +0000 (15:07 +0530)]
Android QuickBuild fix.

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>
4 years agoRemoving code duplication from Caleadapter.c (#606) 92/218792/1
samanway.dey@samsung.com [Tue, 19 Nov 2019 11:26:58 +0000 (16:56 +0530)]
Removing code duplication from Caleadapter.c (#606)

- 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>
4 years agoAvoid CA IP NW monitor code duplications. 91/218791/1
Senthil Kumar G S [Mon, 18 Nov 2019 10:47:41 +0000 (16:17 +0530)]
Avoid CA IP NW monitor code duplications.

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>
4 years agoRemove code duplication in easy-setup service. 90/218790/1
Senthil Kumar G S [Tue, 19 Nov 2019 06:05:11 +0000 (11:35 +0530)]
Remove code duplication in easy-setup service.

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>
4 years agoFix process event life cycle 89/218789/1
Jaehyun Cho [Fri, 11 Oct 2019 09:09:09 +0000 (18:09 +0900)]
Fix process event life cycle

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>
4 years agoChange the header install path for c_common and logger 67/218267/1 accepted/tizen/unified/20191121.073426 submit/tizen/20191121.044045
DoHyun Pyun [Thu, 21 Nov 2019 03:43:38 +0000 (12:43 +0900)]
Change the header install path for c_common and logger

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>
4 years agoUpdate snapshot_history 57/217957/1 accepted/tizen/unified/20191119.083949 submit/tizen/20191119.000236
Sudipto Bal [Mon, 18 Nov 2019 04:26:42 +0000 (13:26 +0900)]
Update snapshot_history

Change-Id: I48591948e631c04cb6e4463cd0845c965dab37ec
Signed-off-by: Sudipto Bal <sudipto.bal@samsung.com>
4 years agoAdded check resetSVRDB callback to NULL 53/217953/1
Vitalii Irkha [Thu, 14 Nov 2019 08:35:24 +0000 (10:35 +0200)]
Added check resetSVRDB callback to NULL

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>
4 years agoStatic Analyzer Bug Fixes. (#603) 52/217952/1
senthil.gs@samsung.com [Wed, 13 Nov 2019 13:54:41 +0000 (19:24 +0530)]
Static Analyzer Bug Fixes. (#603)

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>
4 years agoFix Werror=implicit-function-declaration 51/217951/1
Vitalii Irkha [Wed, 13 Nov 2019 11:25:51 +0000 (13:25 +0200)]
Fix Werror=implicit-function-declaration

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>
4 years agoAdded notification callback on reset SVR DB 50/217950/1
Vitalii Irkha [Fri, 8 Nov 2019 15:52:54 +0000 (17:52 +0200)]
Added notification callback on reset SVR DB

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>
4 years agoWorkaround for CONPRO-1516 45/217945/1
Vitalii Irkha [Tue, 12 Nov 2019 14:21:42 +0000 (16:21 +0200)]
Workaround for CONPRO-1516

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>
4 years agoAdded missing catch block for std::exception (#598) 44/217944/1
kush.agrawal@samsung.com [Mon, 11 Nov 2019 07:03:33 +0000 (12:33 +0530)]
Added missing catch block for std::exception (#598)

* [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>