platform/upstream/iotivity.git
5 years agoAvoid adding elements to QueueingThread if it's already stopped. 28/204728/1 accepted/tizen/5.0/unified/20190429.011934 submit/tizen_5.0/20190426.041741
Senthil Kumar G S [Fri, 12 Apr 2019 06:34:12 +0000 (12:04 +0530)]
Avoid adding elements to QueueingThread if it's already stopped.

Backgraund:-
-> 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.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/475
(cherry picked from 069d45ab60a7cd90d451aea4fdcf9d03dda421de)

Change-Id: Ib64d83a2560f31d44cb33148eba4f8b4e9a1289e
Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoDefault OTM select CB 27/204727/1
Oleksii Beketov [Thu, 4 Apr 2019 11:42:59 +0000 (14:42 +0300)]
Default OTM select CB

Default OTM select callback introduced

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/469
(cherry picked from 051a32dd63c54a309ff698d9143e9cb8a9733a3c

Change-Id: I5f437da5c654d763c7c467e7ce11a39efbc67e19
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoAlgorithm for obtaining uuid from TLS data changed 26/204726/1
i.metelytsia [Mon, 22 Apr 2019 12:52:26 +0000 (15:52 +0300)]
Algorithm for obtaining uuid from TLS data changed

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/487
(cherry picked from d42e96b2cea21f6c5ffa623d3a89f88789fdc260

Change-Id: I533bda62a54e3bad053764aaa99ac564b32e947e
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoDisable auto-discovery of NSProvider over TCP. 25/204725/1
Senthil Kumar G S [Mon, 22 Apr 2019 13:18:54 +0000 (18:48 +0530)]
Disable auto-discovery of NSProvider over TCP.

For disabling auto-discovery, DISABLE_AUTO_TCP_NSPROVIDER_DISCOVERY flag should be set to 1
in scons build command.

Background:-
For TCP Connected events, NS Consumer automatically discovers initiates the discovery
of NS Provider. Due to which, there is a problem which occurs when app perform sign-in
and there is no TCP connection, then connection will be established first.
NS Consumer will then receive the TCP connected event and initiate NS Provider discovery.
Even before sign-in, upon receiving the NS Provider discovery closes the connection as it is
in the process of sign-in.

This patch addresses the problem by disabling auto-discovery of NSProvider over TCP
for TCP connected events.

As auto discovery is disabled, application should explicitly perform discovery by calling
"NSConsumerEnableRemoteService" API (strictly after sign-in).

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

Change-Id: I41910070ad8c60c64aa8fa4567f98d98690965a4
Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoFix for crash in BLE receive thread. 24/204724/1
Harish Kumara M [Fri, 23 Nov 2018 15:34:29 +0000 (21:04 +0530)]
Fix for crash in BLE receive thread.

Synchronizing access to client and server senderinfo as there are
chances of data receive handler may be acting on deleted SenderInfo
data when connection is closed. When connection closed, all senderInfo
for that connection are cleared in another thread.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/69383ab5a059d7dd114c69d5d5ff5371b5946c98
(cherry picked from 69383ab5a059d7dd114c69d5d5ff5371b5946c98)

Change-Id: Ibc495dba0143eef908eaa35a0173dde77288d4be
Signed-off-by: Harish Kumara M <h.marappa@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoUpdate Snapshot(2019-03-21) 88/203788/1 accepted/tizen/5.0/unified/20190418.063212 submit/tizen_5.0/20190418.013742
DoHyun Pyun [Thu, 18 Apr 2019 00:49:03 +0000 (09:49 +0900)]
Update Snapshot(2019-03-21)

Change-Id: I3f24c2a727c70bb608b70748a75653aca41482fc
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoParse UUID in parentheses 87/203787/1
Oleksii Beketov [Wed, 10 Apr 2019 16:01:15 +0000 (19:01 +0300)]
Parse UUID in parentheses

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

Change-Id: Ic1509d9164c80d8cd9b10f0404db61b52772c48b
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoAdding changes in octhread related to Process Event 86/203786/1
kush.agrawal [Wed, 17 Apr 2019 14:42:06 +0000 (23:42 +0900)]
Adding changes in octhread related to Process Event

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

Change-Id: Ic4b846bfc46734a7ce32d193318c85afdd7d49e9
Signed-off-by: kush.agrawal <kush.agrawal@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoMake OCProcessEvent method. 85/203785/1
kush.agrawal [Mon, 15 Apr 2019 13:24:54 +0000 (22:24 +0900)]
Make OCProcessEvent method.

OCProcess() need to poll periodically to check if any
work to process. This can be burden in some cases.
OCProcessEvent can get wake-up time using out parameter.
So we can use timed_wait not polling every periodic seconds.
To wake up for handling any receive event, we need to register
oc_event and this will send a signal to waited one.

Following patches are taken frm 2.0-rel branch :

1. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/385
2. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/393
3. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/401
4. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/431
5. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/450
6. https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/470

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

Change-Id: I27d1e17dcf21c5a45a7ff4a8b1a988b5c5edaf0a
Signed-off-by: kush.agrawal <kush.agrawal@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoFix the i586 build error for tizen 5.5's dlog format 23/201923/1 submit/tizen_5.0/20190410.045624
DoHyun Pyun [Thu, 21 Mar 2019 01:48:33 +0000 (10:48 +0900)]
Fix the i586 build error for tizen 5.5's dlog format

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

Change-Id: I00cd7eda4b627a3a5fa7e5adb907e7ca0ae479bf
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoFix the build error for tizen 5.5's dlog format 47/201747/1
DoHyun Pyun [Tue, 19 Mar 2019 06:00:04 +0000 (15:00 +0900)]
Fix the build error for tizen 5.5's dlog format

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/460
(cherry picked from 2d37162b292d4feb28339626604c19a365ce0e1e)

Change-Id: Ic4a8642d74aa146055b00cd9f9f338b2e6813f1d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoHiding Privacy Logs for LUX 19/201719/1
samanway-dey [Thu, 21 Feb 2019 16:26:14 +0000 (21:56 +0530)]
Hiding Privacy Logs for LUX

Changing INFO level private log to INFO_PRIVATE level
for LUX PRA.

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

Change-Id: I91a33553988de53d228c0e6b9179d212c1e87b4f
Signed-off-by: samanway-dey <samanway-dey@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoUpdate catcpserver.c 18/201718/1
h.marappa@samsung.com [Wed, 13 Mar 2019 14:03:43 +0000 (19:33 +0530)]
Update catcpserver.c

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/40206f09f18e1d2f01efe3f449a24f69703e7718
(cherry picked from 40206f09f18e1d2f01efe3f449a24f69703e7718)

Change-Id: I28bf6c8d266ccd4334aea89f58431a704625c588
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoioTivity [BinType] AP [Customer] iot-core 17/201717/1
Michał Bonio [Wed, 13 Mar 2019 10:07:38 +0000 (11:07 +0100)]
ioTivity [BinType] AP [Customer] iot-core

[Issue#] CONPRO-1393
[Request] SRPOL
[Occurrence Version] n/a

[Problem] Build failed for platform others than Tizen
[Cause & Measure] Tizen specific code has not been commented out
[Checking Method] Build IoTivity

[Team] IoT Connection
[Developer] Michał Bonio
[Solution company] Samsung
[Change Type] Fix

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/1eeeedf56e0f1f962065896107ff21ba786bf6b7
(cherry picked from 1eeeedf56e0f1f962065896107ff21ba786bf6b7)

Change-Id: I7f3d32b2dcaeea769d7e249d3e0a6861812414f2
Signed-off-by: Michał Bonio <m.bonio@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoFix HandleDoxmPostRequest() to discard duplicate user confirm request 16/201716/1
Oleksii Beketov [Mon, 11 Mar 2019 16:49:38 +0000 (18:49 +0200)]
Fix HandleDoxmPostRequest() to discard duplicate user confirm request

Sync with SES PR #537

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/55d327ade19bcc5bf0c61184056918a3525ee36f
(cherry picked from 55d327ade19bcc5bf0c61184056918a3525ee36f)

Change-Id: I6597949a83663afdc464aba05d6477cb265ac6d7
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoModify CopyRequest() and add free code for ehRequest after confirm 15/201715/1
Oleksii Beketov [Mon, 11 Mar 2019 16:45:51 +0000 (18:45 +0200)]
Modify CopyRequest() and add free code for ehRequest after confirm

Sync with SES PR #546

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/656106cc245720c4c1645948b033bed45aee773c
(cherry picked from 656106cc245720c4c1645948b033bed45aee773c)

Change-Id: I3a891f44c9d6c270f752eed6947d02a390b2d777
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoAsynchronous User Confirm 99/201699/1 accepted/tizen/5.0/unified/20190319.051623 submit/tizen_5.0/20190319.025841
Oleksii Beketov [Wed, 13 Mar 2019 11:04:52 +0000 (13:04 +0200)]
Asynchronous User Confirm

API for asynchronous user confirmation added

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

Change-Id: Ib5db1b9cafa5700b9ffe8c669677126e7637c818
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoUpdate Snapshot(2019-03-14) 62/201662/1
Abhishek Sansanwal [Mon, 18 Mar 2019 11:32:59 +0000 (07:32 -0400)]
Update Snapshot(2019-03-14)

Change-Id: If553a518da38df34bcfebb4484debca82c867c5c
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
5 years agowrap CAcloseSslConnectionFreeEndpoint method with __TIZEN__ flag 61/201661/1
Grzegorz Żakiewicz [Tue, 12 Mar 2019 15:47:05 +0000 (16:47 +0100)]
wrap CAcloseSslConnectionFreeEndpoint method with __TIZEN__ flag

[Model] IoTivity
[BinType] AP
[Customer] iot-core

[Issue#] CONPRO-1392
[Request] r.chudek
[Occurrence Version] n/a

[Problem] pthread might be not available on other platforms
[Cause & Measure] n/a
[Checking Method] n/a

[Team] IoTConnection
[Developer] g.zakiewicz
[Solution company] Samsung
[Change Type] fix

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/414
(cherry picked from 9dc9af2eabffb1d46c1671baa4b0decfeb173a1e)

Change-Id: Idac05cde4018b6b064721c2ada5706601c2cb0c3
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
5 years agoAdd CAcloseSslConnectionFreeEndpoint method 60/201660/1
Robert Chudek [Tue, 12 Feb 2019 10:28:29 +0000 (11:28 +0100)]
Add CAcloseSslConnectionFreeEndpoint method

[Model] IoTivity
[BinType] AP
[Customer] IoT-Core

[Issue#] CONPRO-1392
[Request] Robert Chudek / r.chudek
[Occurrence Version] n/a

[Problem] After calling CAcloseSslConnection there was a memory leak.
[Cause & Measure] Cause: After calling CAcloseSslConnection endpoint wasn't freed which led to memory leak.
[Checking Method] n/a

[Team] IoT Connection
[Developer] Robert Chudek / r.chudek
[Solution company] Samsung
[Change Type] bug fix

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/414
(cherry picked from 18a20af57324bc3d816a862e3aa5194712d2e237)

Change-Id: I283055bea913401c6c23953857b7ccfe5db3581b
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
5 years agoReturning less than MTU from CALEClientGetMtuSize 59/201659/1
kush agrawal [Wed, 6 Mar 2019 13:09:08 +0000 (18:39 +0530)]
Returning less than MTU from CALEClientGetMtuSize

We are not able to send data of MTU size over BLE in TV
due to there is a bug in TV's BT framework. There is need of
this change untill the bug gets fixed in BT framework.

NOTE: Revert this patch once the fix is fixed in BT framework.

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

Change-Id: I4390c7083493e2f9b76d30d8b7d3d1b66b5a4c5e
Signed-off-by: kush agrawal <kush.agrawal@samsung.com>
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
5 years agoAdding le client changes in caleclient_vd.c 58/201658/1
Abhishek Sansanwal [Mon, 18 Mar 2019 10:26:47 +0000 (15:56 +0530)]
Adding le client changes in caleclient_vd.c

1. Fix build issue in OICCalloc
2. Added two API's (CALEClientIsConnected and CALEClientSendNegotiationMessage)

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/451
(cherry picked from 26a48f123f35e8d561f4cae381d182bea222a9e6)

Change-Id: Ic8735ab38d6277b6a40d6154344a5ccdd7d5ddf0
Signed-off-by: kush agrawal <kush.agrawal@samsung.com>
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
5 years agoAdd CASetCloudAddressForProxy method 57/201657/1
Robert Chudek [Tue, 12 Feb 2019 10:36:39 +0000 (11:36 +0100)]
Add CASetCloudAddressForProxy method

[Model] IoTivity
[BinType] AP
[Customer] IoT-Core

[Issue#] CONPRO-1393
[Request] Robert Chudek / r.chudek
[Occurrence Version] n/a

[Problem] IoT-Core needs a method to set cloud address for proxy.
[Cause & Measure] Cause: No such method implemented.
[Checking Method] n/a

[Team] IoT Connection
[Developer] Robert Chudek / r.chudek
[Solution company] Samsung
[Change Type] new feature

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/415
(cherry picked from 0689b92fdb5dc0018768cf36b1723f2f55a9395c)

Change-Id: Icc3f706a5e929fcddb32ffebea20070db2ba5680
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
5 years agoModified logic for LE scanning 69/199569/1 accepted/tizen/5.0/unified/20190214.060742 submit/tizen_5.0/20190213.055525
Kush Agrawal [Mon, 11 Feb 2019 15:00:44 +0000 (20:30 +0530)]
Modified logic for LE scanning

Issue : If scan fails once and if we retry from above layer then scan is not started.
Cause : Scan was not started for device which is already added once in server list.

Fix : Changed logic by enabling scan for devices which are already added and in UNICAST_PENDING state

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/412
(cherry picked from 3106e414dbe8807c50b439cc19e6b94e86ab50ac)

Change-Id: I5c18ed79099e0f4245fd8b75a7191459bd0357ec
Signed-off-by: Kush Agrawal <kush.agrawal@samsung.com>
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
5 years agoChange logging method 50/199250/1 accepted/tizen/5.0/unified/20190208.061756 submit/tizen_5.0/20190208.002645
agrkush [Thu, 7 Feb 2019 12:42:40 +0000 (18:12 +0530)]
Change logging method

There is a crash reported in InProcServer
destructor when oclog() is called.
So replacing it with OIC_LOG_V

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/411
(cherry picked from 206d2d7556e6c2bc258ec4623fad7d221d23862e)

Change-Id: I0bdb7043953e8553da409656fa05dab8e483746f
Signed-off-by: agrkush <kush.agrawal@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoUpdate Snapshot(2019-01-23) 20/199220/1
Abhishek Sansanwal [Thu, 7 Feb 2019 09:34:22 +0000 (04:34 -0500)]
Update Snapshot(2019-01-23)

Change-Id: I44910ff27b3b52e75728fa44c8d617fb26a18868
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
5 years agoProviding build option to disable BLE server 48/199048/1 submit/tizen_5.0/20190201.062254 submit/tizen_5.0/20190206.231707
Abhishek Sansanwal [Fri, 1 Feb 2019 03:42:36 +0000 (09:12 +0530)]
Providing build option to disable BLE server

Build option DISABLE_BLE_SERVER is added so that BLE server
can be disabled when running in CLIENT_SERVER mode.

Just provide DISABLE_BLE_SERVER = 1 option to disable it.

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

Change-Id: I7552f378406e92b6c847cd73debfd31336d074a5
Signed-off-by: agrkush <kush.agrawal@samsung.com>
Signed-off-by: Kush Agrawal <kush.agrawal@samsung.com>
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
5 years agoUpdate Snapshot(2019-01-16) 44/198044/1
Abhishek Sansanwal [Fri, 18 Jan 2019 04:13:18 +0000 (09:43 +0530)]
Update Snapshot(2019-01-16)

Change-Id: I6ffd458da8bcbfbfcd375276264a48c6cab42d34
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
5 years agoChanging the length of access token 17/198017/1 accepted/tizen/5.0/unified/20190123.074155 submit/tizen_5.0/20190118.011006
sourav bhuwalka [Mon, 14 Jan 2019 13:34:49 +0000 (19:04 +0530)]
Changing the length of access token

Access token property of the cloud needs to be changed from 256bytes to 1kb

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/392
(cherry picked from commit 89f95a89892e44f893c3d395bcd3cde142efb0c0)

Change-Id: I57d5b1caeeca75f526df9e51d78d80fa75d6aae2
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoEnable auto connect while calling bt_gatt_connect 37/197337/1 accepted/tizen/5.0/unified/20190111.055256 submit/tizen_5.0/20190110.230818
agrkush [Thu, 10 Jan 2019 11:43:10 +0000 (17:13 +0530)]
Enable auto connect while calling bt_gatt_connect

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/391

Change-Id: I6b15322e56cc8c901882eec29c19077a9d751c82
Signed-off-by: agrkush <kush.agrawal@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoUpdate Snapshot(2019-01-09) 82/197182/1
Amit KS [Thu, 10 Jan 2019 07:04:36 +0000 (12:34 +0530)]
Update Snapshot(2019-01-09)

Change-Id: I0f4bfa51cae53577d89ee0b9a56e01e0929c3c02
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoAdded scanning of custom UUID's and MTU Negotiation Logic 81/197181/1
Amit KS [Thu, 10 Jan 2019 06:31:45 +0000 (12:01 +0530)]
Added scanning of custom UUID's and MTU Negotiation Logic

 -VD Devices advertise custom UUID's
  So added handling of it in scan callback.
 -Added MTU negotiated to be 512

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/357
(cherry picked from commit 2a0f1e9134fe15d002786a92919b69d2a0b852e9)

Change-Id: I1f7e31b16c86701f08a56d693565f73eaab19fac
Signed-off-by: agrkush <kush.agrawal@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoOption to skip close TCP on IF down. 80/197180/1
Harish Kumara M [Fri, 4 Jan 2019 14:22:45 +0000 (19:52 +0530)]
Option to skip close TCP on IF down.

This is VD specific requirement, not to close TCP
servers when interface down event is received.
New API "CAUtilSkipTCPCloseOnInterfaceDown" is
defined using which application can enable/disable
skip TCP server feature.

Signed-off-by: Harish Kumara M <h.marappa@samsung.com>
fix: save build error

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/388
(cherry picked from commit 725041caab8e0c1f14c6333cd066ea61a845893d)

Change-Id: Ifaf37379955d0d5615f08d43824148b6cbe075d3
Signed-off-by: Harish Kumara M <h.marappa@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoFixes in Tizen LE Client 37/197037/1 accepted/tizen/5.0/unified/20190110.060350 submit/tizen_5.0/20190109.044058 submit/tizen_5.0/20190109.044059
agrkush [Tue, 8 Jan 2019 13:02:46 +0000 (18:32 +0530)]
Fixes in Tizen LE Client

1. Fix for crash when BT disconnect is called in between
   GATT connection procedure.

2. Setting NULL terminated manufacture data string.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/389
(cherry picked from commit fadf16daaaf5f9980c5a76975ec1c07bc546c501)

Change-Id: Id356d1b4f5d5fd28f4c8c909b715ec325f4ff869
Signed-off-by: agrkush <kush.agrawal@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoRevert Patch CCCD change 81/196681/1 accepted/tizen/5.0/unified/20190104.061344 submit/tizen_5.0/20190103.112716 submit/tizen_5.0/20190104.030922
Amit KS [Thu, 3 Jan 2019 11:23:45 +0000 (16:53 +0530)]
Revert Patch CCCD change

CCCD change in GATT Server is reverted

Change-Id: I3413945924bfec5794f34ddd8b58e1def3670b1c
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoUpdate Snapshot(2018-12-26) 91/196291/1 accepted/tizen/5.0/unified/20181230.223557 submit/tizen_5.0/20181228.112440
Amit KS [Thu, 27 Dec 2018 03:51:27 +0000 (09:21 +0530)]
Update Snapshot(2018-12-26)

Change-Id: I11e74a5194c97490800ba14fa16fb4ee771303d5
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoFix deleting request on slow response 90/196290/1
Harish Kumara M [Wed, 26 Dec 2018 11:56:34 +0000 (17:26 +0530)]
Fix deleting request on slow response

Server request is getting deleted when observe request
received again with same previous request token even
the new server request is not being added to sever request
list. Duplicate requests with same token are expected when
when ACK for the first request is not reached at client side.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/383
(cherry picked from commit f6dfbd5194a482f2611a7b23c904dd4f7533c809)

Change-Id: I97968ae99a0abca39eb1bbe860cbfe73f684a738
Signed-off-by: Harish Kumara M <h.marappa@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years ago[Test patch] Returning less than MTU from CALEClientGetMtuSize 80/196180/1
Amit KS [Mon, 24 Dec 2018 11:56:42 +0000 (17:26 +0530)]
[Test patch] Returning less than MTU from CALEClientGetMtuSize

 Needs to be reverted once BT fix is available
 Length fixed at 507 instead of 512

Change-Id: I042be50855a2fbe79a99cb84171614cb04347aee
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoModified additional field 77/196177/1 submit/tizen_5.0/20181225.220847
pooja.k@partner.samsung.com [Fri, 21 Dec 2018 10:44:04 +0000 (16:14 +0530)]
Modified additional field

changed Samsung specific x.com.samsung.candidateaps value's key names.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/375
(cherry picked from commit c786ccc79e1abfa9669706313ef6b77557bc573a)

Change-Id: I0ff2251fa0e1110455bdcf23c99b579b5f564db3
Signed-off-by: pooja <pooja.k@partner.samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoAdding x.com.samsung.deployenv prop 76/196176/1
Harish Kumara M [Wed, 19 Dec 2018 14:43:00 +0000 (20:13 +0530)]
Adding x.com.samsung.deployenv prop

Adding new additional properties "x.com.samsung.deployenv"
and "x.com.samsung.iatt" as vendor properties to
"oic.r.coapcloudconf" easysetup resource.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/380
(cherry picked from commit 5b0e8e760da8069c53cf5dd5ef083148c39a2cd2)

Change-Id: Ic307cc1fc2551da143fcdfa15b53db83a7871cb4
Signed-off-by: Harish Kumara M <h.marappa@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoUpdate Snapshot(2018-12-19) 66/196166/1
Amit KS [Mon, 24 Dec 2018 07:04:18 +0000 (12:34 +0530)]
Update Snapshot(2018-12-19)

Change-Id: I70008ac48ba8cf0a09be89b352d535eb4654d2d2
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoChanging logic of fetching MTU size in server size. 44/195844/1 accepted/tizen/5.0/unified/20181219.063412 submit/tizen_5.0/20181219.005848
agrkush [Sun, 16 Dec 2018 15:18:06 +0000 (20:48 +0530)]
Changing logic of fetching MTU size in server size.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/368
(cherry picked from commit b4f4c74d8b114706acb1cbcc3a71fcceeb23399a)

Change-Id: I39f7a066c4608cff93730771eef756bcd8695d21
Signed-off-by: agrkush <kush.agrawal@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoAdding API for setting MTU size in Tizen BLE Client 43/195843/1
samanway-dey [Sat, 15 Dec 2018 09:38:10 +0000 (15:08 +0530)]
Adding API for setting MTU size in Tizen BLE Client

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/366
(cherry picked from commit 8bcc7e282fd9cc55ce1ea601b289967d3f8ce681)

Change-Id: I4eef40b48aa15084d2a3b66a2fea10e27b766547
Signed-off-by: samanway-dey <samanway.dey@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoAdded thread for security and cloud provisioning. 42/195842/1
agrkush [Sun, 16 Dec 2018 15:11:40 +0000 (20:41 +0530)]
Added thread for security and cloud provisioning.

Executing cloud resource discovery and secure resource discovery in
different thread to avoid blocking of main event loop of Tizen

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/357
(cherry picked from commit f898d3e2f59594865e6e7b0da6811b4ead5bb4d5)

Change-Id: I4263302ee004ccbcbb27b1092c393e870099b3db
Signed-off-by: agrkush <kush.agrawal@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoFixes for scan in VD 41/195841/1
agrkush [Sun, 9 Dec 2018 18:23:35 +0000 (23:53 +0530)]
Fixes for scan in VD

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/358
(cherry picked from commit d7a3c45d3ab7d4a0ee01a3a4fb639f5ba7f366f8)

Change-Id: I36f8667b4873ed772a73b94e5eabefe2645d5764
Signed-off-by: agrkush <kush.agrawal@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoRevert "Fixes for scan in VD" 70/195670/1 accepted/tizen/5.0/unified/20181217.142003 submit/tizen_5.0/20181217.073925
DoHyun Pyun [Mon, 17 Dec 2018 07:13:39 +0000 (16:13 +0900)]
Revert "Fixes for scan in VD"

This reverts commit 014180e0d5f6689cc38916f8301934b3eaf373ae.

Change-Id: I93e04bb1fcf2f9deab56132ec01358a19a75e69d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoFix 64bit build error for tizen dlog print format 27/195627/1
DoHyun Pyun [Sun, 16 Dec 2018 23:58:17 +0000 (08:58 +0900)]
Fix 64bit build error for tizen dlog print format

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/371
(cherry picked from commit 526d318695746521886ecf8bb9a542d309cf7d28)

Change-Id: Ieec0d515c0cadfe5fd1c1249f6f94a5025c619bd
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoUpdate Snapshot(2018-12-12) 92/195392/1 accepted/tizen/5.0/unified/20181214.065313 submit/tizen_5.0/20181213.225103
Amit KS [Thu, 13 Dec 2018 06:08:02 +0000 (11:38 +0530)]
Update Snapshot(2018-12-12)

Change-Id: I65dec94affe987e23dfcea67f8129122a74ccd01
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoAdding more samsung specific properties 91/195391/1
sourav bhuwalka [Tue, 11 Dec 2018 17:22:33 +0000 (22:52 +0530)]
Adding more samsung specific properties

Changes:
    1.Backward compatibility for "mnmo", "lang", "ctry", "loc" properties.
    2.Adding OC_LOW_QOS_WITH_TCP to OCQualityOfService.
    3.Adding support for new samsung specific properties:
    4."x.com.samsung.serverid", "x.com.samsung.timezoneid",
    5."x.com.samsung.saapiserver", "x.com.samsung.saauthserver",
    6."x.com.samsung.sadsc", "x.com.samsung.hidden", "x.com.samsung.hubid"
    7.Adding new WiFi Auth type - FT_PSK
    8.Setting DeviceID seed while configuring stack.
    9.Redundant m_observeCacheList removed from ResourceCacheManager.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/364
(cherry picked from commit 1f00a113fcf6a7f65144d259ec4f39aac7288e02)

Change-Id: I30f58b672eb74f4ad3433d0b7f3211888d57402c
Signed-off-by: sourav bhuwalka <s.bhuwalka@samsung.com>
Signed-off-by: Harish Kumara M <h.marappa@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoFixes for scan in VD 26/195226/1 accepted/tizen/5.0/unified/20181212.062434 submit/tizen_5.0/20181212.004051
agrkush [Sun, 9 Dec 2018 18:23:35 +0000 (23:53 +0530)]
Fixes for scan in VD

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/358
(cherry picked from commit d7a3c45d3ab7d4a0ee01a3a4fb639f5ba7f366f8)

Change-Id: I294604d15be98b74803a2bd38cde70c588378f9c
Signed-off-by: agrkush <kush.agrawal@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoRPK API update 25/195225/1
Oleksii Beketov [Thu, 19 Jul 2018 13:38:43 +0000 (16:38 +0300)]
RPK API update

Callback for RPK master key declaration corrected

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/301
(cherry picked from commit da0a7f68cb47d41a0496161ce46d9a3f3b6a74d0)

Change-Id: I2f0f92f6068eb69801c46201394fd703010b2b64
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years ago[CONPRO-1333] Fix for crash in JniOnPostListener 24/195224/1
Harish Kumara M [Wed, 5 Dec 2018 08:48:51 +0000 (14:18 +0530)]
[CONPRO-1333] Fix for crash in JniOnPostListener

Crash was due to post response received on deleted JniOnPostListener
object. This change make sure of valid JniOcResource object when CRUDN
callback invoked from core stack layer.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/360
(cherry picked from commit 494f1578d7edceec084dd42b59c3198bdd2fb6a8)

Change-Id: Idac701367ed40ece7dbadd82e1484babc918aca0
Signed-off-by: Harish Kumara M <h.marappa@samsung.com>
Signed-off-by: pilli manikanta <p.manikanta@partner.samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoRevert "[CONPRO-1333] Fix for crash in virtual device" 23/195223/1
Harish Kumara M [Tue, 4 Dec 2018 14:08:35 +0000 (19:38 +0530)]
Revert "[CONPRO-1333] Fix for crash in virtual device"

This reverts commit 3f24e6e008ba6de12fe6ef8dd45cf4a096bc528c.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/0633a03bbee706e9d07010f6107f9f3bc648ae68
(cherry picked from commit 0633a03bbee706e9d07010f6107f9f3bc648ae68)

Change-Id: I6e1cc43fe53298d32fc58802914b8f424c759539
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoGetPstatIsop() API fix 22/195222/1
Vitalii Irkha [Fri, 7 Dec 2018 10:36:17 +0000 (12:36 +0200)]
GetPstatIsop() API fix

Check pointer to NULL  before using

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/356
(cherry picked from commit b4f5ee6139689949be8e9b191172e97973a4fe03)

Change-Id: I2790e5ad92cb18a253ad2f880e52ea14642312a2
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoUpdate Snapshot History (2018-11-22 & 2018-11-28) 31/195031/1
Amit KS [Mon, 10 Dec 2018 06:45:54 +0000 (12:15 +0530)]
Update Snapshot History (2018-11-22 & 2018-11-28)

Change-Id: I5d9c26f8ccc56446d3e1cd683d917cfaa1281ebf
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoUpdate Snapshot(2018-12-05) 57/194857/1 accepted/tizen/5.0/unified/20181210.060240 submit/tizen_5.0/20181209.235758
Amit KS [Fri, 7 Dec 2018 11:35:11 +0000 (17:05 +0530)]
Update Snapshot(2018-12-05)

Change-Id: Ie18787d2ac1bcc0c29dfacb4fd56c17acf654483
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoChange scan and connect sequence for Tizen LE Client (VD). 56/194856/1
agrkush [Wed, 5 Dec 2018 14:57:22 +0000 (20:27 +0530)]
Change scan and connect sequence for Tizen LE Client (VD).

1. Scan Will be initiated at time of starting le client.
2. Connect will be initiated before sending data.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/355
(cherry picked from commit 1929cb2f5ba51de21343857dc30dcefa370a6f80)

Change-Id: I76f67196ed130e10bc5217eff5b31c7f33da50ed
Signed-off-by: agrkush <kush.agrawal@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoAdd vd specific caleclient code 55/194855/1
agrkush [Thu, 22 Nov 2018 13:55:40 +0000 (19:25 +0530)]
Add vd specific caleclient code

Change-Id: I6cc55404b3412ddafed430953a245a4e295a9b1a
Signed-off-by: agrkush <kush.agrawal@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoFix build break in JNI layer 54/194854/1
Harish Kumara M [Wed, 5 Dec 2018 14:36:48 +0000 (20:06 +0530)]
Fix build break in JNI layer

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/354
(cherry picked from commit 896a6e15761a50d7c34ce01d75b674015f4871fd)

Change-Id: I80f4bd5b846a5a15308b3ba5d7033ff9c7c27e20
Signed-off-by: Harish Kumara M <h.marappa@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoCheck Device Operational State 60/194560/1 accepted/tizen/5.0/unified/20181206.055549 submit/tizen_5.0/20181206.000945
Vitalii Irkha [Wed, 5 Dec 2018 12:17:46 +0000 (14:17 +0200)]
Check Device Operational State

Add API - OCGetDeviceOperationalState() to get isop value of pstat.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/353
(cherry picked from commit 2c2d19d2012093aee3fe1fb7e83e24f19871dbe7)

Change-Id: Icc64e0d8767dbb98620860955c84004418505531
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoOXM notify CB 16/194516/1
Oleksii Beketov [Mon, 3 Dec 2018 12:08:56 +0000 (14:08 +0200)]
OXM notify CB

Added selected OXM notification callback

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/336
(cherry picked from commit 57e8641fcc434d15a4d078bd0d8a4b036c99d140)

Change-Id: I29faaa328082eb4ac41a47c5a1024ff9e04b3392
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoAdd OTM select callback 15/194515/1
Oleksii Beketov [Thu, 29 Nov 2018 12:33:36 +0000 (14:33 +0200)]
Add OTM select callback

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/334
(cherry picked from commit 532f133abc97e9a165ced0fd94b24d513362237c)

Change-Id: Ifa6e264c2a900a5927ff15ec240a45f210ca9b59
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agofreed payload in OCSendKeepAliveRequest 14/194514/1
samanway-dey [Tue, 27 Nov 2018 16:35:00 +0000 (22:05 +0530)]
freed payload in OCSendKeepAliveRequest

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/346
(cherry picked from commit 80cddcb478a802a2d7b6705eeb0624caca15d660)

Change-Id: Id86c7fce30d9f5a2fa137ac6ca8be89005ab3c29
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years ago[CONPRO-1333] Fix for crash in virtual device 13/194513/1
pilli manikanta [Wed, 28 Nov 2018 09:10:22 +0000 (14:40 +0530)]
[CONPRO-1333] Fix for crash in virtual device

Post response received on deleted JniOnPostListener object.
Binding weak reference of JniOnPostListener gives safe way
for checking the existance of JniOnPostListener object.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/347
(cherry picked from commit 3f24e6e008ba6de12fe6ef8dd45cf4a096bc528c)

Change-Id: Ie2305571e562202b69374bfc7960b2d5689b624d
Signed-off-by: pilli manikanta <p.manikanta@partner.samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years ago[CONPRO-1343] Removing unused code 12/194512/1
sourav bhuwalka [Tue, 20 Nov 2018 14:38:55 +0000 (20:08 +0530)]
[CONPRO-1343] Removing unused code

Here g_connectionHandler and g_adapterHandler are removed as they are always NULL and will never be called.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/340
(cherry picked from commit b5974992e15c5b95e6db4c8f3c905adc9d1560f9)

Change-Id: I656da132c3d3f948e0f84230d456476fca968f10
Signed-off-by: sourav bhuwalka <s.bhuwalka@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years ago[CONPRO-1333] Revert DTLS credential CB 11/194511/1
Oleksii Beketov [Tue, 20 Nov 2018 16:43:53 +0000 (18:43 +0200)]
[CONPRO-1333] Revert DTLS credential CB

Revert DTLS PSK callback in case of OTM error

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/341
(cherry picked from commit 12f722ea759780424b8f6ed184b7b8688a6b1f45)

Change-Id: I6d4aaee03415e831bf0452f917e7e917985d9d93
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years ago[CONPRO-1354] Add length checks 10/194510/1
Oleksii Beketov [Mon, 19 Nov 2018 17:15:52 +0000 (19:15 +0200)]
[CONPRO-1354] Add length checks

Added length checks before memcopies
in CheckInvalidDERSignature()

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/338
(cherry picked from commit f5bffc12019316989827988b13b5f18b87842a2f)

Change-Id: Ide87962a20a9154808a6de5ec739b0cf0c9ae735
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoRemove Presence macro in header files. 09/194509/1
agrkush [Thu, 15 Nov 2018 13:16:06 +0000 (18:46 +0530)]
Remove Presence macro in header files.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/337
(cherry picked from commit 8fa624930b9fb15f47857c83af4afe9f72b4e734)

Change-Id: I4f7929890431af2834696652d948a3ec0895823d
Signed-off-by: agrkush <kush.agrawal@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoDouble confirmation logic removed 08/194508/1
Oleksii Beketov [Fri, 9 Nov 2018 12:39:33 +0000 (14:39 +0200)]
Double confirmation logic removed

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/commit/036235a192380ad9fbf1840113d4d99c24021b4d
(cherry picked from commit 036235a192380ad9fbf1840113d4d99c24021b4d)

Change-Id: Icbeed810aaff3f016a71e10cf039046925863b3c
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoAbsent client's certificate CB 07/194507/1
Oleksii Beketov [Wed, 7 Nov 2018 13:21:00 +0000 (15:21 +0200)]
Absent client's certificate CB

Added callback to get user's confirmation
in case of absent client's certificate

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/334
(cherry picked from commit 4fb53e4bd30ff8bb94642c27195eccbe5276d949)

Change-Id: Id7f597ef75721de7291725510767241f0e0c2d37
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoMerge "[CONPRO-1337] Disabled Presence Feature"" into tizen_5.0
Pyun DoHyun [Wed, 5 Dec 2018 05:44:30 +0000 (05:44 +0000)]
Merge "[CONPRO-1337] Disabled Presence Feature"" into tizen_5.0

5 years ago[CONPRO-1356]Calling GetMtuSize for Tizen 01/194301/1 accepted/tizen/5.0/unified/20181203.061734 submit/tizen_5.0/20181203.021553
DoHyun Pyun [Mon, 3 Dec 2018 02:14:19 +0000 (11:14 +0900)]
[CONPRO-1356]Calling GetMtuSize for Tizen

Change-Id: I901ea18d20b63127632983f0715055052236a78d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years ago[CONPRO-1337] Disabled Presence Feature" 60/193360/1
DoHyun Pyun [Mon, 19 Nov 2018 22:59:35 +0000 (07:59 +0900)]
[CONPRO-1337] Disabled Presence Feature"

For disabling presence, DISABLE_PRESENCE=1, flag
should be defined at time of scons build.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/325
(cherry picked from commit cc5a552d03e658c6b04886cd0586ed57cd3bdac1)

Change-Id: Ifc5b84a29e17ad43fe30c40b2afed6c02933c0f8
Signed-off-by: Amit KS <amit.s12@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoRevert "[CONPRO-1337] Disabled Presence Feature" 47/193147/1 accepted/tizen/5.0/unified/20181116.080142 submit/tizen_5.0/20181115.083511
DoHyun Pyun [Thu, 15 Nov 2018 08:14:53 +0000 (17:14 +0900)]
Revert "[CONPRO-1337] Disabled Presence Feature"

This reverts commit 127c4d9e2773e22cb3f4d6ffd8a568fa67312ec2.

Change-Id: I2690b11b0fb187f6fbf8348c36beb218c449f307
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoMerge branch 'tizen' into tizen_5.0 58/192458/1
DoHyun Pyun [Mon, 5 Nov 2018 23:40:17 +0000 (08:40 +0900)]
Merge branch 'tizen' into tizen_5.0

Change-Id: I2e4b961e2a7e5f197c35c9d463a18181bd107658
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years agoUpdate Snapshot(2018-11-02) 15/192415/1 submit/tizen/20181106.005005
Amit KS [Mon, 5 Nov 2018 09:47:01 +0000 (15:17 +0530)]
Update Snapshot(2018-11-02)

Change-Id: Ia29a6f7b9bb72add9e72a5a379a8db72985fe4b9
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoBLE Adapter code updated for Tizen-4.0 14/192414/1
Amit KS [Mon, 5 Nov 2018 09:41:30 +0000 (15:11 +0530)]
BLE Adapter code updated for Tizen-4.0

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/331
(cherry picked from commit d38432e9d10f45248bd908cdac10a21fa55e0ab1)

Change-Id: I2c2064842acedac91bcad20944c4c910f16a8228
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years ago[CONPRO-1337] Disabled Presence Feature 10/192410/1
Amit KS [Mon, 5 Nov 2018 06:12:57 +0000 (11:42 +0530)]
[CONPRO-1337] Disabled Presence Feature

For disabling presence, DISABLE_PRESENCE=1, flag
should be defined at time of scons build.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/325
(cherry picked from commit cc5a552d03e658c6b04886cd0586ed57cd3bdac1)

Change-Id: I895cdc110bbec1c62d3e4bafbb70fabf329210f1
Signed-off-by: Amit KS <amit.s12@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
5 years ago[CONPRO-1337] Disabled Presence Feature 04/192404/1
Amit KS [Mon, 5 Nov 2018 06:12:57 +0000 (11:42 +0530)]
[CONPRO-1337] Disabled Presence Feature

For disabling presence, DISABLE_PRESENCE=1, flag
should be defined at time of scons build.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/325
(cherry picked from commit cc5a552d03e658c6b04886cd0586ed57cd3bdac1)

Change-Id: I895cdc110bbec1c62d3e4bafbb70fabf329210f1
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoImplicit typecast fix for vd build 47/192347/1
Amit KS [Thu, 1 Nov 2018 10:05:35 +0000 (15:35 +0530)]
Implicit typecast fix for vd build

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/332
(cherry picked from commit 543625f924cd772f6d2fb37523b4378b364ee85a)

Change-Id: If333b26bbac68ed575d1a9b88f5518b4f86dffd1
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoUpdate Snapshot(2018-10-17) 84/191484/1 submit/tizen/20181021.233752 submit/tizen/20181029.002425
Amit KS [Wed, 17 Oct 2018 11:34:18 +0000 (17:04 +0530)]
Update Snapshot(2018-10-17)

Change-Id: Iadee3e75c9f28e0c67c00dac83752502b8aa57ef
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoAdded API for SSOList in SC Easysetup 83/191483/1
agrkush [Wed, 17 Oct 2018 07:50:51 +0000 (13:20 +0530)]
Added API for SSOList in SC Easysetup

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/330
(cherry picked from commit ee54128ab52b613734213d16cdbaebb0c9c1c409)

Change-Id: I5841fd01f0fd831bf8b7269db1fd305746ab9437
Signed-off-by: agrkush <kush.agrawal@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years ago[CONPRO-1273] Add LINKFLAGS 82/191482/1
Amit KS [Wed, 17 Oct 2018 11:28:01 +0000 (16:58 +0530)]
[CONPRO-1273] Add LINKFLAGS

 1. Remove '-fPIE, -pie' compile option from CCFLAGS
 2. Add LINKFLAGS '-Wl, -z, -relro'

 https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/329
 (cherry picked from commit 7115d71236b6a1c947f93dec0c84762937150c5b)

Change-Id: Ie713ebcf02c0b526730d7cd94f0d2c0ae69852ce
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoFix for SVACE issue. (#326) 81/191481/1
harish.191@samsung.com [Thu, 11 Oct 2018 09:18:35 +0000 (14:48 +0530)]
Fix for SVACE issue. (#326)

[CONPRO-1305] Fix for SVACE issue.

1. Add condition to stop receive negative value.
2. Check condition for thread creation successful.
3. Check return value of function.
4. Update type mismatch value assigned.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/326
(cherry picked from commit cb27ef5e3947ffc529630e0792eff21f4d081f12)

Change-Id: I44aca78703df3fbbe61bd0772760df22fd6c3db9
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoUpdate sc_enrollee.c 80/191480/1
kush.agrawal@samsung.com [Wed, 3 Oct 2018 08:07:00 +0000 (13:37 +0530)]
Update sc_enrollee.c

cherry picked from commit 352502d7d0ed803fa124e3f1502047be066ab52f

Change-Id: I8cb30184e34f086d965ad0a39767fcdeaf23d438
Signed-off-by: agrkush <kush.agrawal@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoUpdate ESSCCommon.h 79/191479/1
kush.agrawal@samsung.com [Wed, 3 Oct 2018 08:02:03 +0000 (13:32 +0530)]
Update ESSCCommon.h

cherry picked from commit a3e28f7512d6ad220f04eb8cc7fd2ac77f30f0f8

Change-Id: I25c8b42d74bc07e2b45d00a58adebc238ba83767
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoUpdate Snapshot(2018-10-03) 29/190729/1 submit/tizen/20181009.235403
Amit KS [Fri, 5 Oct 2018 04:01:42 +0000 (09:31 +0530)]
Update Snapshot(2018-10-03)

Change-Id: I9c3c89830e4c251f833667013610e41c2768330e
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoAdding candidateAP information. Following Samsung Specific Property is added : 28/190728/1
agrkush [Wed, 3 Oct 2018 07:52:22 +0000 (13:22 +0530)]
Adding candidateAP information. Following Samsung Specific Property is added :

Property Name: Candidate AP List Information
Key: "x.com.samsung.candidateaps"
Type: Object Array (Containing ssid, passphrase, channel and bssid).
Access Mode: Read Write
Description: Candidate AP List information

Changes made at Mediator and Enrollee Side (Samsung specific source).

Linux Sample apps updated and verified (Samsung Specific Sample Apps)

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/323
(cherry picked from commit 839c794eda36bc5428933fef26613db1acdad040)

Change-Id: Ia2cc7d6f421c1a0e4f500b820fc11c217d67bf2e
Signed-off-by: agrkush <kush.agrawal@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoAdded API to disable starting advertisement automatically 27/190727/1
Amit KS [Wed, 26 Sep 2018 05:39:00 +0000 (11:09 +0530)]
Added API to disable starting advertisement automatically

And Advertisement data can be set just before starting - Review Comment fixed

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/315
(cherry picked from commit 1d853ecc267d2f76d0695aefffd02d6d5ed50a95)

Change-Id: Id0dddf2487750f045ef5ad8c26d277b762c14d89
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoAdded API to disable starting advertisement automatically 26/190726/1
Amit KS [Tue, 18 Sep 2018 11:37:33 +0000 (17:07 +0530)]
Added API to disable starting advertisement automatically

And Advertisement data can be set just before starting - Review Comment fixed

Change-Id: Ia82e648ae5ebf138a4311c83a0ed8d259d7b6e80
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoAdded API to disable starting advertisement automatically 25/190725/1
Amit KS [Fri, 24 Aug 2018 16:25:11 +0000 (21:55 +0530)]
Added API to disable starting advertisement automatically

And advertisement data can be set just before starting
Following Two Pathces are integrated
1.Added API to disable starting advertisement automatically [Problem] There is no possibility to don't start advertisement.
  It is always started automatically. [Cause & Measure] Advertisement is started automatically in CAStartLEGattServer

2.Advertisement data can be set just before starting
  [Problem] It's not possible to set advertisement data after bluetooth is enabled but before advertising is started.
  [Cause & Measure] current implementation assumes setting advertisement data before turning on BT.
  This feature adds possibility to set function that will be called just before starting advertising

Change-Id: I773bbfc7bb53306609812ec9600d86d29e35d27e
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoFixed add missing compile secure option for iotivity library 88/190688/1
Amit KS [Thu, 4 Oct 2018 13:39:34 +0000 (19:09 +0530)]
Fixed add missing compile secure option for iotivity library

Change-Id: Ieff02dd71def5f5151c9ea7cea476f9389e2ac93
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoUpdate Snapshot(2018-09-12) 87/190687/1
Amit KS [Thu, 4 Oct 2018 04:44:45 +0000 (10:14 +0530)]
Update Snapshot(2018-09-12)

Change-Id: Ia58b6689eb52425d499eb303bc4f8ede6e0cd4cc
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoNew APIs for editing resource and interfaces types 86/190686/1
Harish Kumara M [Thu, 16 Aug 2018 11:19:44 +0000 (16:49 +0530)]
New APIs for editing resource and interfaces types

New APIs are introduced for modifying resource and interface
types bound to a resource. These new APIs clear currently bound
types and set newly passing resource/interface type.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/313
(cherry picked from commit 2ffab6058c93ff52d64bbbe6e8d29855916d3bcc)

Change-Id: I1e51823f1d46fdc042694f9213bde026974b9ae3
Signed-off-by: Harish Kumara M <h.marappa@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoUpdate Snapshot(2018-09-05) 85/190685/1
Amit KS [Thu, 4 Oct 2018 04:39:58 +0000 (10:09 +0530)]
Update Snapshot(2018-09-05)

Change-Id: If994c8ff2a83bdee1ebc1e9daaa00841e7af4b82
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoadd missing compile secure option for iotivity library 84/190684/1
harish_kumar [Fri, 15 Jun 2018 04:44:39 +0000 (10:14 +0530)]
add missing compile secure option for iotivity library

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/294
(cherry picked from commit ff3d8b68e7ad493ed9f52cc62faab0124409891d)

Change-Id: I13c83d33031ff774c2a66b8e7636e68d779e93b7
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoCONPRO-1320] Cleanup observers of deleted resource. 81/190681/1
Amit KS [Thu, 4 Oct 2018 15:00:41 +0000 (20:30 +0530)]
CONPRO-1320] Cleanup observers of deleted resource.

Observers were not cleane up for deleted resource, this
caused crash in trying to access deleted resource while
deleting these observers when TCP connection is closed.
Changes are made to clean up the observers while deleting
resource itself

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/318
(cherry picked from commit a7f8adbd8574db8b22a9fbf2340721ebac4c148e)

Signed-off-by: Harish Kumara M <h.marappa@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
Change-Id: I2860a6aaa6324b3ff55070860e8e6b0090f6d2eb

5 years agoUpdate Snapshot(2018-07-25) 17/186117/1
Amit KS [Tue, 7 Aug 2018 09:35:33 +0000 (15:05 +0530)]
Update Snapshot(2018-07-25)

Change-Id: I1907ac783dc812df5ff8ed16007ca7ff6cfab72a
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years ago [SVRDBEditor] Allow add MOM DOXM attribute 16/186116/1
Vitalii Irkha [Tue, 24 Jul 2018 13:53:55 +0000 (16:53 +0300)]
 [SVRDBEditor] Allow add MOM DOXM attribute

MOM DOXM attribute can be added via svrdbeditor

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/310
(cherry picked from commit 1ce338a37a447e42c23a86d64d9e96c6646a9217)

Change-Id: I02cc8714d6c2ac418cb2d99c77c3c0e2220ebbf3
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
5 years agoInstall missed header files by the build time reducing 15/186115/1
Amit KS [Tue, 7 Aug 2018 09:24:07 +0000 (14:54 +0530)]
Install missed header files by the build time reducing

Change-Id: Ided34d8b62455f9d48b54f8362bda8497dec2654
Signed-off-by: Amit KS <amit.s12@samsung.com>