platform/upstream/iotivity.git
7 years ago[CONPRO-311] Fix due to TinyCBOR v0.4 Release
Jongmin Choi [Thu, 10 Nov 2016 08:46:05 +0000 (17:46 +0900)]
[CONPRO-311] Fix due to TinyCBOR v0.4 Release

The anonymous union member of struct CborEncoder is no longer anonymous.
References to the union member are replaced by API added for them

Patch #1: Initial upload

Change-Id: Ie47779bee68cfae4fa578ae39ae087ea23b905df
Signed-off-by: Jongmin Choi <jminl.choi@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14179
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jongsung Lee <js126.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
(cherry picked from commit 9a31ef80095f6382985404ba0a6c71437c9d8c43)
Reviewed-on: https://gerrit.iotivity.org/gerrit/14203

7 years ago[IOT-1530]Fix resource interface checking logic
bg.chun [Thu, 10 Nov 2016 01:32:00 +0000 (10:32 +0900)]
[IOT-1530]Fix resource interface checking logic

Fix resource interface checking logic
when server receive discovery request
for find matched interface type.

Change-Id: I439017180a367d0b3b20c0637d826c2a3bea1c3c
Signed-off-by: bg.chun <bg.chun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14169
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
7 years agoyocto: Add aarch64 for DragonBoard-410c
Philippe Coval [Thu, 10 Nov 2016 11:47:39 +0000 (12:47 +0100)]
yocto: Add aarch64 for DragonBoard-410c

Change-Id: I0ebf93ca17a9a6624da3caaaf7487529b2c556d6
Credit-to: Kotaro HASHIMOTO <Hashimoto.Kotaro@ds.MitsubishiElectric.co.jp>
Origin: https://lists.linuxfoundation.org/pipermail/automotive-discussions/2016-November/002805.html
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14183
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
7 years agotizen: cbor headers are no more needed
Philippe Coval [Thu, 27 Oct 2016 10:14:35 +0000 (12:14 +0200)]
tizen: cbor headers are no more needed

Change-Id: I1c9df13d1b05a9b0aa0f8d60de8519c0c44b2486
Bug: https://jira.iotivity.org/browse/IOT-1460
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13775
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
(cherry picked from commit e8426c062339308674329ca75d2da227c7f58d69)
Reviewed-on: https://gerrit.iotivity.org/gerrit/14081

7 years ago[JIRA-1134] Fix mem leak in HandleVirtualResource
Habib Virji [Tue, 8 Nov 2016 16:43:48 +0000 (16:43 +0000)]
[JIRA-1134] Fix mem leak in HandleVirtualResource

- VERIFY_NON_NULL to exit by cleaning the mem already allocated.
- InterfaceQuery which wa being assigned is not done, and instead if no interfaceQuery it is considered as oic.if.ll.
- Moved out rd resource search out of function,
- Baseline information handling has been updated to be handled separately.

https://jira.iotivity.org/browse/IOT-1134

Change-Id: Ie894284e4c67a7bbd4bbaa52801416a0c8dab778
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9279
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: David Antler <david.a.antler@intel.com>
7 years agoAdd OIC_ prefix for security module's log.
Chul Lee [Tue, 8 Nov 2016 08:35:01 +0000 (17:35 +0900)]
Add OIC_ prefix for security module's log.

Change-Id: I6802265094222c0d01acc000a14b9b5afdacf6ee
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14107
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
(cherry picked from commit af2c4591eca2a68cc797f0ec41a53926cdfc23d4)
Reviewed-on: https://gerrit.iotivity.org/gerrit/14149

7 years agoUpdate the OTMContext management mechanism to improve the reliability of the OTM...
Chul Lee [Mon, 31 Oct 2016 03:02:30 +0000 (12:02 +0900)]
Update the OTMContext management mechanism to improve the reliability of the OTM process.

  1. Apply the list mechanism to manage the OTMContext.
    -> It replaces the global variables of OTMContext.

  2. Add the OCDoHandle member into OTMContext.
    -> In case of OTM process stopped before OTM process complete,
       unnecessary retransmission can be occur
       due to request is performed just before the OTM process stops.
       So we need to cancel this request to prevent retransmission.
       OCDoHandle will be used at this time.

  3. Add the device status of PDM to prevent duplicate OTM.
    -> Added PDM_DEVICE_INIT to prevent deplicate OTM.
       If device status is PDM_DEVICE_INIT, PT will skip OTM process of this device.

Change-Id: I74e200aa88a0c5016c065a518b75614bf4a3a7a8
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13857
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years ago[IOT-1472] Separated BLE receive queue.
junghun kim [Mon, 24 Oct 2016 09:52:20 +0000 (18:52 +0900)]
[IOT-1472] Separated BLE receive queue.

Change-Id: I64d63ed15070d851b4c02cc4c355266d972ebc46
Signed-off-by: junghun kim <jhun1105.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13623
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agoOCRepPayload NULL array handling
Habib Virji [Mon, 7 Nov 2016 22:54:49 +0000 (22:54 +0000)]
OCRepPayload NULL array handling

OCRepPayload was not handling empty array. This patch handles both conversion and parsing. Also added new tests.

Change-Id: If06e1f47ecaaa926e0ee720ab890ca67076bad03
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14095
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Reviewed-by: byonggon chun <bg.chun@samsung.com>
7 years agoIOT-1513: Incorrect URI parsing in OCDoResource
Dave Thaler [Fri, 4 Nov 2016 00:46:53 +0000 (17:46 -0700)]
IOT-1513: Incorrect URI parsing in OCDoResource

RFC 6874 support was missing from ParseRequestUri

Change-Id: I023745e76a4d14dc6d786a6423eaf80d5d71e428
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14057
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
7 years agoIOT-1461 Fix double-close bugs
Dan Mihai [Tue, 25 Oct 2016 18:33:58 +0000 (11:33 -0700)]
IOT-1461 Fix double-close bugs

1. Fix two handle double-close bugs.
2. Add asserts to catch possible similar bugs.
3. Log WSAGetLastError in decimal, for easier match with the values
from MSDN docs.

Change-Id: I7f382344994c496c67e2e370d2241f080ce0e71c
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13665
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: David Antler <david.a.antler@intel.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agoFix svace defects for 1.2-rel (cloudResource.c)
Andrii Shtompel [Fri, 4 Nov 2016 10:39:53 +0000 (12:39 +0200)]
Fix svace defects for 1.2-rel (cloudResource.c)

Change-Id: I74a65a64347e0832d8b42ec0fdf3ac0eab50a9cc
Signed-off-by: Andrii Shtompel <a.shtompel@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14041
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Jongsung Lee <js126.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
(cherry picked from commit 053384162d114770dd79e0a04da3898895cc9f29)
Reviewed-on: https://gerrit.iotivity.org/gerrit/14101

7 years agoAdd api about non-iterated request get at cache.
KIM JungYong [Mon, 7 Nov 2016 07:46:09 +0000 (16:46 +0900)]
Add api about non-iterated request get at cache.

Current data update logic on RE cache is subscribing and also polling get request to resource server.
but it is causes additional communication load.
Additional api will provide a disabled polling req for reducing communication loads.

void startCaching(CacheUpdatedCallback cb, CacheMode mode); // added api
if mode on param is OBSERVE_ONLY, polling req will be disabled.
otherwise, cache will polling req and subscribing.

And unused function is removed.

Change-Id: Ifa5fd5a21dc10a0e412a8cde0370413a362603ca
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14065
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
7 years agoTizen: Support Ethernet/3G Status Monitoring in IP Adapter
hyuna0213.jo [Fri, 28 Oct 2016 04:18:54 +0000 (13:18 +0900)]
Tizen: Support Ethernet/3G Status Monitoring in IP Adapter

Currently Wifi status monitoring is supported for tizen.
To support Ethernet/3G status monitoring in IP Adapter,
Wifi Manager is replaced with Connection Manager.

Change-Id: Ie5350269c152a42267218749952ab47171b865be
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13711
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Abhishek Sharma <ce.abhishek@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agoAdd copyright information
Dan Mihai [Thu, 3 Nov 2016 01:15:11 +0000 (18:15 -0700)]
Add copyright information

Change-Id: If6e9eea119d9a1b639d82686dec8a29aecf970fd
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14005
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: David Antler <david.a.antler@intel.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agoFix tcp_adapter for CAgetNetworkInfo support to getting ifindex
bg.chun [Fri, 4 Nov 2016 10:08:51 +0000 (19:08 +0900)]
Fix tcp_adapter for CAgetNetworkInfo support to getting ifindex

Fix CAGetTCPInterfaceInformation to copy NIC index
when copy network infomation CAInterface_t to CAEndpoint_t.

Change-Id: I93b37adeb5a1c927ef8ea775bd5de7eeeb40a09d
Signed-off-by: bg.chun <bg.chun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14037
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agoResolve svace defect related to provisioningclient.c and pbkdf2.c
js126.lee [Fri, 4 Nov 2016 07:05:04 +0000 (16:05 +0900)]
Resolve svace defect related to provisioningclient.c and pbkdf2.c

Patch 1 : fix defect on provisioningclient.c
Patch 2,3 : fix defect on pbkdf2.c
Patch 4 : Retrigger Jenkins

Change-Id: I8fb6993639efca6fa8f7bfd861a46fe26b3d6269
Signed-off-by: js126.lee <js126.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14023
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
(cherry picked from commit 60aa05472ff9e2188a391cea043c3392c2f705d2)
Reviewed-on: https://gerrit.iotivity.org/gerrit/14099

7 years agoAdd ifindex when check duplicated message
bg.chun [Wed, 2 Nov 2016 07:55:41 +0000 (16:55 +0900)]
Add ifindex when check duplicated message

Add ifindex when the function CADropSecondMessage() compare
duplicated message with message ID, token, address family

Change-Id: Ida49daa92ea4e0e5e099c77aeacbad55da308d2f
Signed-off-by: bg.chun <bg.chun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13943
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agomodified BLE scanning logic to stop while is connecting.
jihwan.seo [Mon, 31 Oct 2016 08:06:51 +0000 (17:06 +0900)]
modified BLE scanning logic to stop while is connecting.

since connection lead time have improved in stop scan state.
BLE scan should be stopped while is connecting.

Change-Id: Iefcb37c7c366efecc22ae9014615a3795ba0fdaa
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13871
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agoupdate loop of OCProcessPresence more safer.
jihwan.seo [Tue, 1 Nov 2016 01:44:54 +0000 (10:44 +0900)]
update loop of OCProcessPresence more safer.

Change-Id: I4ab9dc9f474c57aa2da457f47e0574c370a6fd7d
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13919
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agobuild: Fix scons mistake (close square brackets)
Philippe Coval [Mon, 7 Nov 2016 13:50:21 +0000 (14:50 +0100)]
build: Fix scons mistake (close square brackets)

Maybe squashed into:
https://gerrit.iotivity.org/gerrit/#/c/13615/

Change-Id: I139955f421d6d3e24f1986880006f34349fbe5cf
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14079
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
7 years agobuild: Export mbedtls defines with iotivity.pc
Philippe Coval [Wed, 2 Nov 2016 10:22:53 +0000 (11:22 +0100)]
build: Export mbedtls defines with iotivity.pc

Change-Id: Ic15661d9300b56e93b0ae53c4d71d85430af31b8
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13965
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dmitriy Zhuravlev <d.zhuravlev@samsung.com>
(cherry picked from commit e282030872fe4cf065b26fef5c46e95d75c4bc07)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13947
Reviewed-by: Habib Virji <habib.virji@samsung.com>
7 years agoUpdate the cred's POST request handler to accept rowner update request.
Chul Lee [Thu, 3 Nov 2016 09:24:52 +0000 (18:24 +0900)]
Update the cred's POST request handler to accept rowner update request.

This update can handle the following payload :
   {"rowneruuid":"28516ab8-b35a-4726-a082-ee7685c33c8c"}

Change-Id: Ibee20c99ff05409fdaf44c2bdac209b871bde043
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13993
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jongmin Choi <jminl.choi@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
(cherry picked from commit 210bfd947e151abaa37c80fd1bdad0c5b731a768)
Reviewed-on: https://gerrit.iotivity.org/gerrit/14061

7 years ago[IOT-1479]
Sandeep Sharma [Thu, 27 Oct 2016 09:15:37 +0000 (14:45 +0530)]
[IOT-1479]
Fix excluding cloud provisioning java source file.

change WITH_CLOUD to WITH_TCP in build.gradle if switch.

Change-Id: I4e10d3a41d983303daf51e11d4c29dd31f559de1
Signed-off-by: Sandeep Sharma <sandeep.s9@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13761
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashwini Kumar <k.ashwini@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years agoFunction to read Trust certificate chain from SVR
Randeep Singh [Mon, 7 Nov 2016 04:34:37 +0000 (10:04 +0530)]
Function to read Trust certificate chain from SVR

Change-Id: Icfef62eca83a360dc73ecee3e3bbe7f8c5821d85
Signed-off-by: saurabh.s9 <saurabh.s9@samsung.com>
Signed-off-by: Randeep Singh <randeep.s@samsung.com>
Signed-off-by: Ashwini Kumar <k.ashwini@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14031
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
(cherry picked from commit de505627a5bec12a0fefc3d084286b70d9309d59)
Signed-off-by: Randeep Singh <randeep.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13389

7 years agoIOT-1476 Remove pthread from sampleserver_randompin
David Antler [Wed, 26 Oct 2016 18:18:11 +0000 (11:18 -0700)]
IOT-1476 Remove pthread from sampleserver_randompin

- Using C++ threads as a cross-platform approach
- Added .gitattributes file to ensure *.dat files are binary

Change-Id: I602649d55ee5a8e24a2215d5f68ca5897c9cc6c7
Signed-off-by: David Antler <david.a.antler@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13727
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Alex Kelley <alexke@microsoft.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years agoMerge 13921 and 14039 into master
Alex Kelley [Fri, 4 Nov 2016 19:55:33 +0000 (12:55 -0700)]
Merge 13921 and 14039 into master

Change-Id: I5b88b2c470614772340bc711e00d1253d647e164
Signed-off-by: Alex Kelley <alexke@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14051
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years agoFix MOT build error
Jongmin Choi [Fri, 4 Nov 2016 10:28:35 +0000 (19:28 +0900)]
Fix MOT build error

Fix MOT build error due to API name change in
https://gerrit.iotivity.org/gerrit/#/c/13921/

Change-Id: I6bc0ffce1a953538c9eb73427c0e6e213b4b9e06
Signed-off-by: Jongmin Choi <jminl.choi@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14039
Reviewed-by: Jongsung Lee <js126.lee@samsung.com>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
(cherry picked from commit bf74820ac803f91ee8493bede4f4a6c7a89281f0)
Reviewed-on: https://gerrit.iotivity.org/gerrit/14047

7 years agoFix Windows builds to correctly build -release tests
Mike Fenelon [Thu, 27 Oct 2016 23:30:57 +0000 (16:30 -0700)]
Fix Windows builds to correctly build -release tests

Change-Id: I80b4a9f09cc3278414b289b0693efb491dc00e89
Signed-off-by: Mike Fenelon <mike.fenelon@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13791
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
7 years agoExport more functions in octbstack.dll
David Antler [Thu, 3 Nov 2016 19:32:10 +0000 (12:32 -0700)]
Export more functions in octbstack.dll

Some new functions needed to be exported for iotivity-node support.
This patch adds those functions, and sorts the section
alphabetically.

The following functions were added to octbstack.dll:
  - OCRepPayloadSetIntArray
  - OCRepPayloadSetBoolArray
  - OCRepPayloadSetStringArray
  - OCRepPayloadSetDoubleArray

Change-Id: I37e317c077750b78c1f992df4e7670ba9311ffab
Signed-off-by: David Antler <david.a.antler@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14003
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Alex Kelley <alexke@microsoft.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
(cherry picked from commit dbcf570b60ac6dbf2d535f6b3f2d9ce2b1bc3d55)
Reviewed-on: https://gerrit.iotivity.org/gerrit/14007

7 years agoFix DTLS backward compatibility
Dmitriy Zhuravlev [Wed, 2 Nov 2016 15:33:45 +0000 (17:33 +0200)]
Fix DTLS backward compatibility

mbedTLS expects the close_notify message as warning alert,
but tinyDTLS sends fatal alert

Change-Id: I91046d4eb23f6b7537abe0a3a2a2e2c6c2893f14
Signed-off-by: Dmitriy Zhuravlev <d.zhuravlev@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13961
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Oleksii Beketov <ol.beketov@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jongsung Lee <js126.lee@samsung.com>
Reviewed-by: Jongmin Choi <jminl.choi@samsung.com>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years agoRemove unused file related to ck_manager
js126.lee [Tue, 1 Nov 2016 06:43:06 +0000 (15:43 +0900)]
Remove unused file related to ck_manager

Change-Id: Ib77dd5547d32f9bc2fc03d379f657990a8bffea6
Signed-off-by: js126.lee <js126.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14021
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years agoFix CAGetNetworkInfo support to getting ifindex
bg.chun [Wed, 2 Nov 2016 11:38:25 +0000 (20:38 +0900)]
Fix CAGetNetworkInfo support to getting ifindex

Current CAGetNetworkInfo function always set ifindex as 0.
Change logic to set ifindex parsed from platform.

Change-Id: I98d53dc0fe4a666b6c9eaf8900d1e68ee4c925f2
Signed-off-by: bg.chun <bg.chun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13955
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agofix crash issue related resource directory in android.
jihwan.seo [Fri, 4 Nov 2016 07:29:13 +0000 (16:29 +0900)]
fix crash issue related resource directory in android.

there was some unsatisfiedLinkError issue of RD library.
after merge https://gerrit.iotivity.org/gerrit/#/c/13657/

Change-Id: Ib9f9fc3e14200cc9f1e97b6d04ef71fa27f7499f
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14025
Reviewed-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-by: Hyuna Jo <hyuna0213.jo@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
7 years agoCheck payload length of CoAP PDU before TLS encryption
hyuna0213.jo [Fri, 21 Oct 2016 07:36:37 +0000 (16:36 +0900)]
Check payload length of CoAP PDU before TLS encryption

Check payload length of CoAP PDU before TLS encryption

Change-Id: I85880aaf3b81a4ebdefe491943e22b896db1f162
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13549
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Joonghwan Lee <jh05.lee@samsung.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit 52ea58a005ffea5615af4df51958b388cfe41dd4)
Reviewed-on: https://gerrit.iotivity.org/gerrit/14013

7 years ago[IOT-1400] Remove multicast presence node list in client side.
jihwan.seo [Wed, 12 Oct 2016 01:10:26 +0000 (10:10 +0900)]
[IOT-1400] Remove multicast presence node list in client side.

MCPresenceNode(multicast presence list) never remove.
it causes a big memory leak.
and since checking sequence number not required.
it is better to remove for simple stack logic.

Change-Id: I000772b12c88b30bd771fc759ac2ffaacedd0cc0
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13119
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: daeken kwon <daeken.kwon@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agoAdd delay before OcPlatform.startPresence().
Larry Sachs [Wed, 2 Nov 2016 19:19:07 +0000 (12:19 -0700)]
Add delay before OcPlatform.startPresence().

Added a two second delay before calling OcPlatform.startPresence() on the server side.
This gives the client side ample time to have the presence listener in place for expected
good behavior.

Change-Id: I0bc63b157c756abb510c3e2fb9651c3e14503b31
Signed-off-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13971
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: George Nash <george.nash@intel.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
7 years agobuild: Rewrite sqlite SConscript a more portable way
Philippe Coval [Sat, 23 Jul 2016 05:31:05 +0000 (07:31 +0200)]
build: Rewrite sqlite SConscript a more portable way

Windows support should be improved.

Fixed weird indentation that looked strange
 when I was investigating if files were present in Tizen builder.

Change-Id: I80c9667a502a1115fdfbcd5ecd50b1e799ff5fdb
Bug: https://jira.iotivity.org/browse/IOT-820
Origin: https://gerrit.iotivity.org/gerrit/#/c/9641/1/
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9653
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
7 years agoUpdate build scripts for changes to RD for Windows
Mike Fenelon [Mon, 31 Oct 2016 22:27:55 +0000 (15:27 -0700)]
Update build scripts for changes to RD for Windows

These changes allow Windows to build correctly with
Resource Directory code. Changes from WITH_RD to RD_MODE were
introduced in early October, but the RUN.BAT file that builds
Windows was not updated, so Windows has been building with a
broken mix of RD and not RD to this point. Changes to RUN.BAT and
SCONS scripts bring Windows builds up-to-date.

Change-Id: I9ba789a11fa0ca1865822578f7da8d4a56439660
Signed-off-by: Mike Fenelon <mike.fenelon@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13905
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
7 years agolinux: Use sqlite from system like Tizen does
Philippe Coval [Mon, 10 Oct 2016 09:49:28 +0000 (11:49 +0200)]
linux: Use sqlite from system like Tizen does

It must be installed before building,
 For instance on debian and derived:
 apt-get install libsqlite3-dev

Note for later, it would make sense to move
 all those platform tests into sqlite sconfile.

Bug: https://jira.iotivity.org/browse/IOT-1296
Change-Id: I431a11821844bef8eabba30e1111b1ebf0799d66
Origin: https://gerrit.iotivity.org/gerrit/#/c/9135/
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9135
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
7 years ago[IOT-1506] fix unsubscribe presence handler.
jihwan.seo [Mon, 31 Oct 2016 23:53:24 +0000 (08:53 +0900)]
[IOT-1506] fix unsubscribe presence handler.

To set handle for unsubscribe presence is missed.

Change-Id: Ie98c10d97265e70b2b09d6fef7957e4ecb83e49b
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13917
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years ago[IOT-1481] Fix app crash when stop iotivity.
jaehyun Cho [Mon, 31 Oct 2016 02:28:25 +0000 (11:28 +0900)]
[IOT-1481] Fix app crash when stop iotivity.

When create portList, assigned port should be pointer.

Change-Id: Ie6e820ec76186fa5295ec4da384d027450dc62f4
Signed-off-by: jaehyun Cho <jaehyun3.cho@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13811
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agoprovisioning: Support older g++ (for Tizen)
Philippe Coval [Wed, 21 Sep 2016 10:26:49 +0000 (12:26 +0200)]
provisioning: Support older g++ (for Tizen)

It was successfully tested with gcc-4.6.4
 on Tizen:2.3.1:Wearable.

Change-Id: Ib97c4bfe73d1d40ee8a029a016b7d69e2b3e3d99
Origin: https://gerrit.iotivity.org/gerrit/#/c/12059/
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12059
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashwini Kumar <k.ashwini@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
(cherry picked from commit c20fd6b9217ac3f0331ad708211d15a5e2be3120)
Reviewed-on: https://gerrit.iotivity.org/gerrit/12161

7 years agoupdate presence sample app for android.
jihwan.seo [Fri, 28 Oct 2016 04:13:03 +0000 (13:13 +0900)]
update presence sample app for android.

- enable multicast presecne in client
- start presence can be triggered for several times
  after initialize step like createResource(..).
- this change is realted to IOT-1468.
  but it's not resolve patch for that.

Change-Id: Ia896b93eb0b10386cfe87969cebd8e2b18531f45
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13799
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years ago[IOT-1464] Set NULL after deleting dataQueue of queueing thread
hyuna0213.jo [Mon, 24 Oct 2016 04:39:29 +0000 (13:39 +0900)]
[IOT-1464] Set NULL after deleting dataQueue of queueing thread

Set NULL after deleting dataQueue of queueing thread

Change-Id: Ia32df8a988503f4ef4bd01f51005102cddc1a301
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13591
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit 1f75e2636e71cc0a59570fb39f97d4474d6e9c51)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13839

7 years agoUrgent Fix (in ocstack.c)
hyuna0213.jo [Fri, 28 Oct 2016 10:45:34 +0000 (19:45 +0900)]
Urgent Fix (in ocstack.c)

Fix error in ocstack.c which prevents us to Sign Up to cloud
It was appeared in next patchset
[IOT-1413,IOT-1415] Fixed request handling bugs for /oic/ping resource

Change-Id: Icf193a19107ce2cb044537f6a0a5058944c39afd
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Signed-off-by: Andrii Shtompel <a.shtompel@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13241
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit de0b348a1cb56a2a04b9a7640262fe00e8c3c13b)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13689
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agoAdded to obtain an address from a domain.
Jaehong Jo [Thu, 27 Oct 2016 11:52:44 +0000 (20:52 +0900)]
Added to obtain an address from a domain.

For connect to cloud using domain.

Change-Id: I3afc2f86f3b9e02bc048354cf9c209df095af21f
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13781
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agoResolve circular dependency for resource directory server
Habib Virji [Tue, 1 Nov 2016 17:39:23 +0000 (17:39 +0000)]
Resolve circular dependency for resource directory server

RD Shared Library creates a circular dependency between
resource_directory and octbstack. This patch resolves this dependency by
creating a seprating findResource part of the resource_directory.

Change-Id: I653b9130e10f22dd61f4f1bd0b6ff4c47a69606a
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13935
Reviewed-by: Todd Malsbary <todd.malsbary@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
7 years ago[IOT-1426] Clean android examples with scons clean option
George Nash [Fri, 28 Oct 2016 21:59:31 +0000 (14:59 -0700)]
[IOT-1426] Clean android examples with scons clean option

Change-Id: I29d57c2759d6073c01a9f888b2f7b9930c16590e
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13833
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
7 years agotizen: Only package libuuid1.so if present
Philippe Coval [Fri, 28 Oct 2016 13:29:46 +0000 (15:29 +0200)]
tizen: Only package libuuid1.so if present

As this trick is a workaround for current version of Tizen SDK,
avoid to break on failure to ship copied lib.

Change-Id: Idad5dd5ab3e24a569bffe22b1f83badb1906978f
Bug: https://jira.iotivity.org/browse/IOT-1343
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13827
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
7 years agoRemove oc library dependency on resource-directory module
hyuna0213.jo [Mon, 31 Oct 2016 06:28:29 +0000 (15:28 +0900)]
Remove oc library dependency on resource-directory module

Remove oc library dependency on resource-directory module

Change-Id: I0ca8b791a79debf880b953794986ad81e5523338
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13867
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13889

7 years agoChange a timeout for resource discovery in cloud provisioning
Parkhi [Fri, 28 Oct 2016 07:51:28 +0000 (16:51 +0900)]
Change a timeout for resource discovery in cloud provisioning

Change-Id: Id211ff2afab83cdeaaaf68162ca9d5cdbffeca8a
Signed-off-by: Parkhi <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13771
Reviewed-by: Harish Marappa <h.marappa@samsung.com>
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
7 years agobuild: pkgconfig should link ocmapi too
Philippe Coval [Thu, 20 Oct 2016 11:54:36 +0000 (13:54 +0200)]
build: pkgconfig should link ocmapi too

Change-Id: Ide4901338ba919b36cf129be5ecefc6f4f71d519
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13525
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
(cherry picked from commit ae4c031dd2af6f05ed18d55f2d5c196e042f9bf6)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13565
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
7 years ago[IOT-1482] fix getPlatformInfo and getDeviceInfo of C++-SDK sample app.
jihwan.seo [Wed, 26 Oct 2016 04:21:59 +0000 (13:21 +0900)]
[IOT-1482] fix getPlatformInfo and getDeviceInfo of C++-SDK sample app.

cause patch : https://gerrit.iotivity.org/gerrit/#/c/12909/

Change-Id: If50cba713a67239619047ccb012678f73fb42682
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13677
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
7 years agoUse third_party_libs.scons of resource in resource-directory
Habib Virji [Fri, 28 Oct 2016 13:21:33 +0000 (14:21 +0100)]
Use third_party_libs.scons of resource in resource-directory

resource-directory was moved to resource layer from service
layer. so third_party_libs.scons of resource should be used.

Change-Id: I9d1f06f041318443b62d78242b8bc04f77a6f4f3
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13767
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
7 years ago[IOT-1462] Generate shared library for resource directory
Habib Virji [Tue, 25 Oct 2016 14:06:15 +0000 (15:06 +0100)]
[IOT-1462] Generate shared library for resource directory

Generate shared library for all platforms. Require update to all example
and unittest as test uses shared library.

https://jira.iotivity.org/browse/IOT-1462

Change-Id: I9d169d8e4e08835f3e57f1771789fe5b90636da7
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13657
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
7 years agoUpdate CPP Doxygen file for NS
cc [Thu, 27 Oct 2016 09:01:22 +0000 (18:01 +0900)]
Update CPP Doxygen file for NS

CPP doxygen file is updated

Change-Id: I3b582956f290ea25266e183945397f6963d05fc7
Signed-off-by: cc <ch79.cho@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13757
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
7 years agoDoxyGen file update.
Jaehong Jo [Wed, 26 Oct 2016 09:51:18 +0000 (18:51 +0900)]
DoxyGen file update.

Add Connectivity Abstraction docs.

Change-Id: If4bf501e0dcaa609c2011c40bf848552ff984450
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13709
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: byonggon chun <bg.chun@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
7 years agoRemove the rubbish code in pmutility.c
Chul Lee [Fri, 28 Oct 2016 15:28:28 +0000 (00:28 +0900)]
Remove the rubbish code in pmutility.c

Change-Id: I7a37d7c1b5960c779b051b894c3e79c9ba9fdc50
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13829
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years ago[IOT-1386] Update ins value after deleting resource from rd
Habib Virji [Thu, 27 Oct 2016 15:29:10 +0000 (16:29 +0100)]
[IOT-1386] Update ins value after deleting resource from rd

- Support multiple ins query for deleting resource.
- Reset ins value of deleted resource.
- Enable RD build in all platforms.
- https://jira.iotivity.org/browse/IOT-1386

Change-Id: If7f19f63592ccfa6d298561da5ad173b0965d32c
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12183
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
7 years agoAddressed format specifier, unused variable, etc, build warnings.
Ossama Othman [Wed, 26 Oct 2016 20:44:53 +0000 (13:44 -0700)]
Addressed format specifier, unused variable, etc, build warnings.

Change-Id: I8ccfc5e185cfea2555ac5337eb2afa897f1984e4
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13725
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: David Antler <david.a.antler@intel.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
7 years agoUpdate the random PIN generator module to provide high entropy.
Chul Lee [Thu, 8 Sep 2016 13:26:01 +0000 (22:26 +0900)]
Update the random PIN generator module to provide high entropy.

After this patch,
Server developer can choose the policy of random PIN generation
through SetRandomPinPolicy API.

Updated Random PIN module provides flexibility
in the PIN length and PIN type as following :
  PIN length : 4 bytes ~ 32 bytes
  PIN Type : Bitmask :
             NUM_PIN            = (0x1 << 0),    //Numeric PIN
             UPPERCASE_CHAR_PIN = (0x1 << 1),    //uppercase character PIN
             LOWERCASE_CHAR_PIN = (0x1 << 2)     //lowercase character PIN

Here is example for SetRandomPinPolicy API :

    //Now, Server will generate the 10 bytes PIN
    //which is nummeric and lowercase mixed PIN.
    if(OC_STACK_OK != SetRandomPinPolicy(10, NUM_PIN | LOWERCASE_CAHR_PIN))
    {
        OIC_LOG(ERROR, TAG, "Failed to setting PIN policy");
        return 0;
    }

Change-Id: I0f6b56a037a85a0d7c8e6d1db85f4a9808989964
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11607
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years agoUpdate json2cbor tool to support optional data conversion.
Chul Lee [Thu, 27 Oct 2016 06:15:36 +0000 (15:15 +0900)]
Update json2cbor tool to support optional data conversion.

Change-Id: I02e79ef1e6522d63f6e5e51d86e2cb45d6545c28
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13747
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
(cherry picked from commit be211042f6ceb0b8f24003f4edae2966958122d2)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13797

7 years agoUpdate to improve the performance of the OCRemoveDeviceWithUuid API.
Chul Lee [Wed, 26 Oct 2016 10:31:56 +0000 (19:31 +0900)]
Update to improve the performance of the OCRemoveDeviceWithUuid API.

If linked device not exist when remove the device,
Device discovery is not required.
So I've modify the OCRemoveDeviceWithUuid API
to skip the device discovery in case of linked device not exist.

Change-Id: I004266860f99e9fa22b837a37296fc81743a8cab
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13713
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years agoAdd function to unset the PIN related user callback.
Chul Lee [Tue, 20 Sep 2016 11:23:19 +0000 (20:23 +0900)]
Add function to unset the PIN related user callback.

Change-Id: I4dc3d01d6d11de187aaddd3f556135d516d32028
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11987
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years ago[IOT-1480] Remove the internal API from subownerclient sample.
Chul Lee [Thu, 27 Oct 2016 13:11:37 +0000 (22:11 +0900)]
[IOT-1480] Remove the internal API from subownerclient sample.

Change-Id: Ied92b38aa451d3ae0c9eb406b759b282f098204a
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13785
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years agoAdd rt query parameter to reduce response packet size when discovery
Joonghwan Lee [Wed, 19 Oct 2016 07:11:20 +0000 (16:11 +0900)]
Add rt query parameter to reduce response packet size when discovery

This patch add rt=oic.r.doxm query parameter in order to reduce response packet size when secure port discovery.

Change-Id: I96f127ca757256c882d9bc3a97906a0c3b6e05c3
Signed-off-by: Joonghwan Lee <jh05.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13437
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years agoAdd function to save a ACL into local SVR DB
Joonghwan Lee [Wed, 19 Oct 2016 05:41:18 +0000 (14:41 +0900)]
Add function to save a ACL into local SVR DB

This patch adds an API to insert new ACL with duplication check into local SVR database and sample menu added.

Change-Id: I71ba806ae1b5d169bb3fa875836143565b8b1acb
Signed-off-by: Joonghwan Lee <jh05.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13427
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years ago[IOT-1460] Remove cbor.h dependency
Habib Virji [Tue, 25 Oct 2016 14:49:59 +0000 (15:49 +0100)]
[IOT-1460] Remove cbor.h dependency

Patch removes cbor.h by removing it from ocpayload.h. It is now moved
to ocpayloadcbor.h.

https://jira.iotivity.org/browse/IOT-1460

Change-Id: I23ae035804840a327e2764ed64559b82247ab8e8
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13659
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years ago[IOT-1454] Change the Preconfigured-PIN OxM related defines to prevent conflict with...
Chul Lee [Wed, 26 Oct 2016 05:22:41 +0000 (14:22 +0900)]
[IOT-1454] Change the Preconfigured-PIN OxM related defines to prevent conflict with DCAP method.

  - Preconfigured-PIN OxM constant changed to 0xFF00
  - According to changes Preconfig-PIN OxM constant,
    OxM Callback array can't use anymore.
    So, Callback pointers are moved into the OTMContext.

Change-Id: Iefaf9de29bdb98809506df3b2efae35024cae4de
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13681
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years agoModify the SetDoxmDeviceID API to provide the variability of UUID on the client side.
Chul Lee [Wed, 26 Oct 2016 06:00:57 +0000 (15:00 +0900)]
Modify the SetDoxmDeviceID API to provide the variability of UUID on the client side.

Change-Id: Ia3488c67935166d17e65da11f27d25b88be59959
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13691
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years agoFixed unittest error of secure resource provider.
Chul Lee [Thu, 27 Oct 2016 14:58:01 +0000 (23:58 +0900)]
Fixed unittest error of secure resource provider.

Change-Id: If0a7be512046ab14e7539a6ad2d03a3078d98550
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13787
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years agoFix for "UNUSED" redefined warning
George Nash [Mon, 17 Oct 2016 22:37:11 +0000 (15:37 -0700)]
Fix for "UNUSED" redefined warning

The #define UNUSED is present in openjdk's jni.h and
in the arduino libraries. Resulting in the compilar
warning.

We already have OC_UNUSED defined in octypes.h which
was already avalible for all of the files that were
using UNUSED from logger.h.

The #define UNUSED was deleted from logger.h.
Any place UNUSED was used was renamed to OC_UNUSED.

Change-Id: If94ac13dc29eb3323e036eec750a18893895fb3d
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13353
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
7 years agotizen: install more headers needed for iotcon
Philippe Coval [Thu, 20 Oct 2016 01:45:10 +0000 (03:45 +0200)]
tizen: install more headers needed for iotcon

Change-Id: I5ae3d61c97e1d4e0138e40d77add85edc132f4a3
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13527
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
(cherry picked from commit 9b4069da2add23ddc9dd0488465f994ac761e275)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13563

7 years agoAdd credential verification API and add logs for debugging
Chul Lee [Thu, 20 Oct 2016 06:49:28 +0000 (15:49 +0900)]
Add credential verification API and add logs for debugging

Change-Id: Ib23f99acd7e82fa1dc9fec42cc08c5179294a5eb
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13477
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Dmitriy Zhuravlev <d.zhuravlev@samsung.com>
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years ago[IOT-1473] Modify the return value of MOT related API.
Chul Lee [Wed, 26 Oct 2016 05:46:15 +0000 (14:46 +0900)]
[IOT-1473] Modify the return value of MOT related API.

Change-Id: I9e2a6d79358538896c64e5870d96c0ca796a0b6e
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13687
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years agoAdd missing SVR DB for MOT sample client.
Chul Lee [Thu, 20 Oct 2016 07:11:49 +0000 (16:11 +0900)]
Add missing SVR DB for MOT sample client.

Change-Id: I299782b9d4f94d66b88348d69b26587c9f1344ce
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13485
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
7 years agoRemove not required OCStopMulticastServer() function call in RD
hyuna0213.jo [Tue, 25 Oct 2016 10:59:33 +0000 (19:59 +0900)]
Remove not required OCStopMulticastServer() function call in RD

this is required but it is being moved to app layer, as it is
conflicting with the local and cloud scenarios. It would require
update to the local rd sample to call this function instead.
Also OCStopMulticastServer has to be made available to the
application developer, right now it is just a C API.

Change-Id: I7a51c29b7bc88416df81966f9d98898bc2b3ab08
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13645
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
7 years agofix process onPut message of roomclient app
jihwan.seo [Thu, 27 Oct 2016 04:12:25 +0000 (13:12 +0900)]
fix process onPut message of roomclient app

Change-Id: I465fe65db563f9784ff0c3a2c41d861f5521a403
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13741
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agoFixed static analysis issues in RI.
Jaehong Jo [Wed, 26 Oct 2016 04:41:59 +0000 (13:41 +0900)]
Fixed static analysis issues in RI.

Add null check and initial value

Change-Id: I25121862916dabd1771bbd578f3b506d01272e05
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13679
Reviewed-by: Jaewook Jung <jw0213.jung@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Hyuna Jo <hyuna0213.jo@samsung.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agoRemove Routing check from OCDevAddr
Abhishek Sharma [Tue, 25 Oct 2016 06:36:02 +0000 (12:06 +0530)]
Remove Routing check from OCDevAddr

Applications had a dependency to either define EP or GW
in build scripts.
Its required to be removed only in octypes.h as its
automatically taken care-of in other files by csdk build
scripts.

Change-Id: I4570aa63681779b463dc250cdb53ab90c4338a40
Signed-off-by: Abhishek Sharma <ce.abhishek@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13639
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years ago[IOT-1478] add stop scan logic for BLE, when stack is terminated
jihwan.seo [Wed, 26 Oct 2016 11:14:57 +0000 (20:14 +0900)]
[IOT-1478] add stop scan logic for BLE, when stack is terminated

Change-Id: I2454bb3f24c0aa3f821a24d494d8ab7db2d52bf2
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13717
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agofix to calculate the length of the remain data segment for BLE adapter.
jihwan.seo [Wed, 26 Oct 2016 10:37:09 +0000 (19:37 +0900)]
fix to calculate the length of the remain data segment for BLE adapter.

Change-Id: I12c7b639c3429ac1bf97f29d77265bbffb5fd1e3
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13715
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agomodified CAReceiveBlockWiseData() to skip unnecessary logic
Jaewook Jung [Mon, 24 Oct 2016 07:38:48 +0000 (16:38 +0900)]
modified CAReceiveBlockWiseData() to skip unnecessary logic

Unless there is not error code on the received message,
it is not needed to create a CABlockDataID.

Change-Id: I8dfc581ca802f51d12a36c07644df24110eb7d06
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13605
Reviewed-by: Hyuna Jo <hyuna0213.jo@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agoFix IOT-1465
Dmitriy Zhuravlev [Tue, 25 Oct 2016 07:45:55 +0000 (10:45 +0300)]
Fix IOT-1465

Ownership transfer manager expects the CA_DTLS_AUTHENTICATION_FAILURE
in case of handshake error

Change-Id: I984ec32de52a0547e449d6b0580fa8299d678d8e
Signed-off-by: Dmitriy Zhuravlev <d.zhuravlev@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13641
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
(cherry picked from commit af80659dbee1c692df602697d4bdac806a794cb4)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13651

7 years agoUpdated with Valgrind memory leak fixes for Notification Provider and consumer.
Abitha Shankar [Wed, 26 Oct 2016 07:07:29 +0000 (12:37 +0530)]
Updated with Valgrind memory leak fixes for Notification Provider and consumer.
Updated NS sample App to allow/deny consumer subscription.

Patch 2 : updated valgrind fixes and updated review comments
patch 3 : rebased the code.
patch 4 : resolved merge conflicts

Change-Id: Icdcc0b71fb865fbbb5dd472045e71cef2689d2c6
Signed-off-by: Abitha Shankar <abitha.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13453
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
7 years agoDoxyGen file update
uzchoi [Tue, 18 Oct 2016 07:27:53 +0000 (16:27 +0900)]
DoxyGen file update

Change-Id: I5eb473f98b4815a1189a219424888c814f5223ad
Signed-off-by: uzchoi <uzchoi@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13373
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13733

7 years agoAdd store app workaround for Windows network monitor
Dave Thaler [Fri, 21 Oct 2016 21:34:13 +0000 (14:34 -0700)]
Add store app workaround for Windows network monitor

Also fix some typos in run.bat

Change-Id: I0060b833a5c984bfb0555168927db845bee76c3e
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13635
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Soemin Tjong <stjong@microsoft.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: David Antler <david.a.antler@intel.com>
7 years ago[IOT-1361][Tizen]Using getifaddrs for get ipaddr instead of ioctl
bg.chun [Tue, 27 Sep 2016 01:54:58 +0000 (10:54 +0900)]
[IOT-1361][Tizen]Using getifaddrs for get ipaddr instead of ioctl

Using getifaddrs to support getting ipv6 address in CAGetNetworkInfo()
Remove ioctl code and using getifaddrs for get ipv6 address.

Change-Id: I31816d605424833ed9324a05ab3b1e1492aab5c7
Signed-off-by: bg.chun <bg.chun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12249
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years ago[IOT-1477] fix presenceclient sample for linux.
jihwan.seo [Wed, 26 Oct 2016 00:02:19 +0000 (09:02 +0900)]
[IOT-1477] fix presenceclient sample for linux.

There was some miss codes from
https://gerrit.iotivity.org/gerrit/#/c/13261

Change-Id: I04814c14084acbca13c40c983e2fe9addc29cc4d
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13669
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years ago[IOT-1361][Android]Using netlink for get ipaddr instead of ioctl
bg.chun [Thu, 6 Oct 2016 10:23:10 +0000 (19:23 +0900)]
[IOT-1361][Android]Using netlink for get ipaddr instead of ioctl

Using netlink to support getting ipv6 address in CAGetNetworkInfo()
Remove ioctl code and using netlink.

Change-Id: I94dd5bebd2f8dde95cb589e4f64a44c2a1a428f1
https://jira.iotivity.org/browse/IOT-1361
Signed-off-by: bg.chun <bg.chun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12879
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years ago[IOT-1468] fix unicast presence issue which get error response.
jihwan.seo [Wed, 26 Oct 2016 01:55:20 +0000 (10:55 +0900)]
[IOT-1468] fix unicast presence issue which get error response.

unicast presence subcribe should not send oic/ad message to presence server.

Change-Id: I3b1798b705b58646873de02e6d8a882fe84e1b64
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13673
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years ago[IOT-1361]Change "CAFindInterfaceChange()" to support IPv4/6
bg.chun [Tue, 4 Oct 2016 02:44:58 +0000 (11:44 +0900)]
[IOT-1361]Change "CAFindInterfaceChange()" to support IPv4/6

Change "CAFindInterfaceChange" return type to listen for multicast packets from
both of IPv4/IPv6 Address bind in one physical Network Interface.
As is: CAInterface_t *CAFindInterfaceChange();
To be: u_arraylist_t *CAFindInterfaceChange();

Change-Id: I8c30f46669ca5c22962c4f629c2e2e4649cb54b5
https://jira.iotivity.org/browse/IOT-1361
Signed-off-by: bg.chun <bg.chun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12737
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: David Antler <david.a.antler@intel.com>
Reviewed-by: Hyuna Jo <hyuna0213.jo@samsung.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agotizen: Don't build sqlite sources
Philippe Coval [Thu, 6 Oct 2016 11:46:03 +0000 (13:46 +0200)]
tizen: Don't build sqlite sources

As Tizen already ship sqlite package

Change-Id: Ic39c41f5ae07fab2c2ff820283c871489d3fd15c
Bug: https://jira.iotivity.org/browse/IOT-1296
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12895
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
(cherry picked from commit 3756f85ca83901e16cca09f1258f51afb28d1e99)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13045
Reviewed-by: Ashwini Kumar <k.ashwini@samsung.com>
7 years ago[IOT-1463] Fix for getting and setting host address from secured OCResource object.
Harish Kumara Marappa [Thu, 20 Oct 2016 09:26:47 +0000 (18:26 +0900)]
[IOT-1463] Fix for getting and setting host address from secured OCResource object.

OCResource object was returning "coap+tcp" even if it is secured resource.
OCResource::setHost() fails to create OCDevAddr for host containing "coaps+tcp".

Change-Id: I2273d08b40e94f66fe95e339e876c2c316986c71
Signed-off-by: Harish Kumara Marappa <h.marappa@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13489
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Junghyun Oh <junghyun.oh@samsung.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit ae38269f723939c2e3c8c8a722185067bdb783d1)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13637

7 years ago[IOT-1371] Use both addr and port to identify the endpoint of the
Todd Malsbary [Wed, 28 Sep 2016 21:35:18 +0000 (14:35 -0700)]
[IOT-1371] Use both addr and port to identify the endpoint of the
block transfer data.

Change-Id: I11a378aa611adb6b1cbfe5eacd4e45f34f1a649f
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12505
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agoAdd missing tests for Secure Resource Provider
Andrii Shtompel [Mon, 24 Oct 2016 15:45:18 +0000 (18:45 +0300)]
Add missing tests for Secure Resource Provider

Change-Id: Ib65bbbe69a09cb371fa22b536b0b1ea8a64cfac6
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Signed-off-by: Dmitriy Zhuravlev <d.zhuravlev@samsung.com>
Signed-off-by: Andrii Shtompel <a.shtompel@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13625
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
(cherry picked from commit 2f553451724239cdbd32d0a128134bd3ed433066)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13675

7 years ago[IOT-1413,IOT-1415] Fixed request handling bugs for /oic/ping resource
hyuna0213.jo [Tue, 11 Oct 2016 06:41:47 +0000 (15:41 +0900)]
[IOT-1413,IOT-1415] Fixed request handling bugs for /oic/ping resource

- /oic/ping resource is responding with 5.00(internal server error)
when it receives a GET/POST/PUT request with baseline query
- /oic/ping resource is successfully registering and deregistering
observe requests, even though it is shown as non observable resource
in discovery response.

Change-Id: I86db52f17b0b42750906fdfa8b377c78a85ef822
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13089
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit 41e04322a0b5684ed05e3b7968f44fc172a664a6)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13223
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
7 years agoChanged the property of /oic/ping resource
hyuna0213.jo [Wed, 19 Oct 2016 07:26:22 +0000 (16:26 +0900)]
Changed the property of /oic/ping resource

The resource property of /oic/ping is changed from DISCOVERABLE to
NONE.

Change-Id: Ibb1d8d80f859fdbb34a75a22b19bd66979fa6b13
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13439
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
(cherry picked from commit a23f545b5ed285d51e34f4faea939db847959e92)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13601

7 years ago[IOT-1451] Keep client callback when receiving error result
hyuna0213.jo [Thu, 13 Oct 2016 13:48:55 +0000 (22:48 +0900)]
[IOT-1451] Keep client callback when receiving error result

when Client receive error code from some server after request
oic/res. clientCB is removed by return value "OC_STACK_DELETE_
TRANSACTION"

Change-Id: Ibf42740078f0ed6a97ee3b18d22559b0d2fbdf43
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13237
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-by: MyeongGi Jeong <myeong.jeong@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit 2cfef2e49066614eaed9aed40806d9cebc0b5cb5)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13599