iotivity.git
12 months ago[RI][NS] Modified source and build scripts 09/14909/6 1.2.0-test
f.aman [Tue, 29 Nov 2016 11:28:08 +0000 (17:28 +0600)]
[RI][NS] Modified source and build scripts

1. Modified tc source for RI CSDK
2. Modified build script for RI CPP
3. Added test_app source for NS CPP

Change-Id: I2ca1b75c62e51defeaba77de5d731f7e328a3da9
Signed-off-by: f.aman <f.aman@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14909
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Reviewed-by: Md. Arafat Hossain <arafat.hsn@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
12 months agoSconsscript RC 99/12299/5
yeasir007 [Mon, 26 Sep 2016 22:08:51 +0000 (04:08 +0600)]
Sconsscript RC
Modified scons script file has been added

Change-Id: Ibac611ffe66d1989b8568ee8d153f3c56f326684
Signed-off-by: yeasir007 <md.yeasir@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12299
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
12 months agoRC TC modified 03/12303/5
yeasir007 [Mon, 26 Sep 2016 22:18:34 +0000 (04:18 +0600)]
RC TC modified
RC Linux tc has been modified

Change-Id: Id32b42fa29cb81625059388be308381d24dbfcc4
Signed-off-by: yeasir007 <md.yeasir@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12303
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
12 months agoModify SConsriptES for es module 77/14877/2
sarwar.mgm [Tue, 29 Nov 2016 05:18:03 +0000 (11:18 +0600)]
Modify SConsriptES for es module
1. Modify scons script to build 1.2.1-RC1

Change-Id: Id3145326c729534f771ce7e6ffeff72511446c6a
Signed-off-by: sarwar.mgm <sarwar.mgm@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14877
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
12 months agoAdded PICS for CTT Test 45/14945/6
Mushfiqul Islam Antu [Tue, 29 Nov 2016 07:16:23 +0000 (13:16 +0600)]
Added  PICS for CTT Test

Added PICS to test with CTT, made minor change to simulator

change-Id: I696bdb24d0105585cdbf7ed448e66ffa0c0904b7
Signed-off-by: Mushfiqul Islam Antu <i.mushfiq@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14945
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
12 months ago[Cloud Intergace][Linux-Tizen-Android] TC Development and Modification 81/13881/8
Mohammad Sahinur Hossen [Mon, 31 Oct 2016 11:59:51 +0000 (17:59 +0600)]
[Cloud Intergace][Linux-Tizen-Android] TC Development and Modification

1. Acoount manager, resource directory and message queue new TC developed
2. Acoount manager, resource directory and message queue modify developed TC
3. Acoount manager, resource directory and message queue android new BTC developed

Change-Id: I6de9e859ee336c9b7760f76397477af158fb2c74
Signed-off-by: Mohammad Sahinur Hossen <sahin.h@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13881
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
12 months agoCommonUtil files for iBTest app 97/12297/3
yeasir007 [Mon, 26 Sep 2016 22:04:14 +0000 (04:04 +0600)]
CommonUtil files for iBTest app
CommonUtil files for iBTestApp has been included

Change-Id: I67b78dfedfc7faf59e863e6253b8c01452e64a94
Signed-off-by: yeasir007 <md.yeasir@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12297
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
12 months agoAdded single resource only menu 87/14887/5
Mushfiqul Islam Antu [Tue, 29 Nov 2016 07:16:23 +0000 (13:16 +0600)]
Added single resource only menu

IUT Simulator now supports single resource only(1 smart home resource by menu 105)
Database file copy logic is also slightly changed
added policy in collectionliks
added iotvity handler based collecti
on

change-Id: I585bdb24d0105585cdbf7ed448e66ffa0c0904b7
Signed-off-by: Mushfiqul Islam Antu <i.mushfiq@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14887
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
12 months agoAdded Collection Entity Handler for IUT Simulator 11/14811/3
Mushfiqul Islam Antu [Fri, 25 Nov 2016 13:06:09 +0000 (19:06 +0600)]
Added Collection Entity Handler for IUT Simulator

Collection Resource is now handled by vendor entity handler. Also some other request processing logic updated for server

Change-Id: I474bdb24d0105585cdbf7ed448e66ffa0c0904b7
Signed-off-by: Mushfiqul Islam Antu <i.mushfiq@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14811
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
12 months agoModify Easy Setup TC according to iotivity 1.2-RC4 89/12289/4
sarwar.mgm [Tue, 27 Sep 2016 09:37:12 +0000 (15:37 +0600)]
Modify Easy Setup TC according to iotivity 1.2-RC4
1. Modify CPP TC of mediator and enrollee according to review
2. Modify Android TC of Mediator according to review

Change-Id: Ia0607056187f840ddc9249dfe4d2676ec86d2980
Signed-off-by: sarwar.mgm <sarwar.mgm@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12289
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
12 months ago[HotFix] Pathces for several modules 49/14649/7
imtiaz.h [Wed, 23 Nov 2016 08:54:58 +0000 (14:54 +0600)]
[HotFix] Pathces for several modules

1. CommonUtil Updated
2. IoTivity Logger Buffer size increased
3. Scons updated

Change-Id: I4eb931122378dcc5b282c8663131bfc26b69840b
Signed-off-by: imtiaz.h <imtiaz.h@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14649
Reviewed-by: Masud Bhuiyan <m.parves@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
12 months ago[NS] Testcases and Interop. App added 43/13443/9
Md. Arafat Hossain [Wed, 19 Oct 2016 09:21:08 +0000 (15:21 +0600)]
[NS] Testcases and Interop. App added

1. CSDK BTC Added
2. Android BTC and STC Added
3. CSDK and Android Interoperability App Added
4. Build Script updated
5. Restructure folder

Change-Id: I9a205db995639eefe22685f285d299f616473676
Signed-off-by: Md. Arafat Hossain <arafat.hsn@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13443
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
12 months agoFixed Build Issue(Several modules) 45/14645/5
Mushfiqul Islam Antu [Wed, 23 Nov 2016 08:33:40 +0000 (14:33 +0600)]
Fixed Build Issue(Several modules)
Updated SConscript of several modules to fix build issue

Change-Id: I373adb24d0105585cdbf7ed448e66ffa0c0904b7
Signed-off-by: Mushfiqul Islam Antu <i.mushfiq@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14645
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
12 months ago[SM] modified TC and Interop code 77/13877/5
f.aman [Mon, 31 Oct 2016 10:35:38 +0000 (16:35 +0600)]
[SM] modified TC and Interop code

1. Modified build script
2. Modified TC source for source change
3. Modified Interop Code
4. Modified build script
5. Modified build script according to comments

Change-Id: I262adb24d0105585cdbf7ed448e66ffa0c0904b7
Signed-off-by: f.aman <f.aman@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13877
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Gihong Kim <k1358.kim@samsung.com>
12 months ago[NS] Added BTC for CPP & STC for CSDK 71/13471/5
f.aman [Thu, 20 Oct 2016 04:44:30 +0000 (10:44 +0600)]
[NS] Added BTC for CPP & STC for CSDK

1. Added 7 BTC suites for CPP
2. Added 2 STC suites for CSDK
3. Modified SConscript to allow ns
4. Modified TCs according to comments

Change-Id: I0ec2a3d59945b840b5e32f371ed813320e80ba8a
Signed-off-by: f.aman <f.aman@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13471
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
12 months agoCLOUD ACL, CERT TC added for CPP 33/13233/8
imtiaz.h [Thu, 13 Oct 2016 12:10:28 +0000 (18:10 +0600)]
CLOUD ACL, CERT TC added for CPP

1. Cloud ACL TC added
2. Cert TC Added

Change-Id: I4d71e945991f140074e33285ad9cc1d9184a8ac9
Signed-off-by: imtiaz.h <imtiaz.h@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13233
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Masud Bhuiyan <m.parves@samsung.com>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
13 months ago[RI] Modified tc source 79/13879/3
f.aman [Mon, 31 Oct 2016 11:54:01 +0000 (17:54 +0600)]
[RI] Modified tc source

1. Modified csdk and cpp build script
2. Modified and added testcases for csdk,cpp&android

Change-Id: I904b4b7e3e793859450450f88ef43de8b3a3eaa5
Signed-off-by: f.aman <f.aman@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13879
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
13 months agoFix for build errors 81/13981/3
Craig Pratt [Wed, 2 Nov 2016 20:14:23 +0000 (13:14 -0700)]
Fix for build errors

These changes were required to build on my Ubuntu 14.04 system when
 running the build via:

 scons SIMULATOR=1 RELEASE=0 SECURED=1 LOGGING=1 VERBOSE=1 WITH_TCP=1

and in the test directory:

 scons TARGET_SERVICE=iut RELEASE=0

Change-Id: Iae7b638f150f6cc26dc53daa5a0e3e7f6c7c2bb5
Signed-off-by: Craig Pratt <craig@ecaspia.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13981
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Md. Imtiaz Hossain <imtiaz.h@samsung.com>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
13 months ago[PM] TC and App Updated 73/13873/7
imtiaz.h [Mon, 31 Oct 2016 09:45:52 +0000 (15:45 +0600)]
[PM] TC and App Updated

1. TC Updated
2. App Updated

Change-Id: Ica3dbeb5e68365bc656851428b9cc29cd5f75369
Signed-off-by: imtiaz.h <imtiaz.h@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13873
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
13 months agoNon-Secured Resource for Secured mode 21/14121/3
Mushfiqul Islam Antu [Tue, 8 Nov 2016 11:29:12 +0000 (17:29 +0600)]
Non-Secured Resource for Secured mode

Added Non Secure resource for both secured and non-secured mode. Also some mild changes in other places
Updated Scons file to incorporate secured build(for randompin server)

Signed-off-by: Mushfiqul Islam Antu <i.mushfiq@samsung.com>
Change-Id: I1c1f7988560bba7d20016fc79984b0c014e796ce
Reviewed-on: https://gerrit.iotivity.org/gerrit/14121
Reviewed-by: Masud Bhuiyan <m.parves@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
13 months agoUpdated Observe succes response 61/14161/2
Mushfiqul Islam Antu [Wed, 9 Nov 2016 12:42:13 +0000 (18:42 +0600)]
Updated Observe succes response

Added representation to observe succes

Signed-off-by: Mushfiqul Islam Antu <i.mushfiq@samsung.com>
Change-Id: I2d2f7988560bba7d20016fc79984b0c014e797df
Reviewed-on: https://gerrit.iotivity.org/gerrit/14161
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
13 months agoUpdate CA testcase 93/13393/5
m.parves [Tue, 18 Oct 2016 06:43:49 +0000 (12:43 +0600)]
Update CA testcase

Change-Id: I6177cc8e2de63f02eb6fcdb92be63893aa60b899
Signed-off-by: m.parves <m.parves@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13393
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Reviewed-by: Gihong Kim <k1358.kim@samsung.com>
13 months agoTizen scons script for RC module 01/12301/5
yeasir007 [Mon, 26 Sep 2016 22:12:22 +0000 (04:12 +0600)]
Tizen scons script for RC module
Modified scons for RC Tizen has been added

Change-Id: Iffe34cedfe94eb9a049236f88b9e7ae565ba25f7
Signed-off-by: yeasir007 <md.yeasir@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12301
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Reviewed-by: Gihong Kim <k1358.kim@samsung.com>
13 months agoUpdated Resource delete mechanism 45/14045/2
Mushfiqul Islam Antu [Fri, 4 Nov 2016 12:16:26 +0000 (18:16 +0600)]
Updated Resource delete mechanism

Updated resource delete mechanism to free up unused memory

Signed-off-by: Mushfiqul Islam Antu <i.mushfiq@samsung.com>
Change-Id: Ib3bf7988560cdd7d20016fc79984b0c014e7c96e
Reviewed-on: https://gerrit.iotivity.org/gerrit/14045
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Gihong Kim <k1358.kim@samsung.com>
13 months agoResourceConfigure files has been modified 83/13883/4
yeasir007 [Mon, 31 Oct 2016 13:48:10 +0000 (19:48 +0600)]
ResourceConfigure files has been modified

1. so files path has been modified

Signed-off-by: yeasir007 <md.yeasir@samsung.com>
Change-Id: I992578c5dd3f8c0e8c388088dc8dda0881f9d72b
Reviewed-on: https://gerrit.iotivity.org/gerrit/13883
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Reviewed-by: Gihong Kim <k1358.kim@samsung.com>
13 months ago[RE] Interop. App and Build script updated 73/13773/7
Md. Arafat Hossain [Thu, 27 Oct 2016 16:57:58 +0000 (22:57 +0600)]
[RE] Interop. App and Build script updated

1. Linux build script updated
2. Linux API TC added
3. Linux Simulator updated
4. Linux TC Helper updated
5. Android Interop. App Menu updated
6. Android Interop. App manifest updated

Change-Id: I3ccd880a7684551208775b84a564ab0a86729ec9
Signed-off-by: Md. Arafat Hossain <arafat.hsn@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13773
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Reviewed-by: Gihong Kim <k1358.kim@samsung.com>
13 months ago[Cloud] Observe and Invite feature for Inter-Op App 47/11547/3
imtiaz.h [Thu, 8 Sep 2016 06:38:22 +0000 (12:38 +0600)]
[Cloud] Observe and Invite feature for Inter-Op App

1. Observe and Invite features added

Change-Id: I686f7988560cdd7d20016fc79984b0c014e7ce69
Signed-off-by: imtiaz.h <imtiaz.h@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/11547
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
13 months agoChange RI tizen tc build 49/13749/2
m.parves [Thu, 27 Oct 2016 00:26:42 +0000 (06:26 +0600)]
Change RI tizen tc build

1. Change header path
2. Change rpms version
3. Change copy src-dest

Change-Id: I355c97adbd967a4606bd4f683b0f649ccef256c0
Signed-off-by: m.parves <m.parves@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13749
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
13 months agoPM, MOT and CS TC Added 27/13227/10
imtiaz.h [Thu, 13 Oct 2016 10:27:11 +0000 (16:27 +0600)]
PM, MOT and CS TC Added

1. PM Cert TC added
2. MOT TC Added
3. CLOUD ACL TC added

Change-Id: I36f2c23f6e51ac423086f1c7a362b65463ec31d0
Signed-off-by: imtiaz.h <imtiaz.h@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13227
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Md. Adnan Sami <adnan.sami@samsung.com>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
13 months agoResourceContainerConfig for Test app 95/12295/2
yeasir007 [Mon, 26 Sep 2016 21:54:14 +0000 (03:54 +0600)]
ResourceContainerConfig for Test app

Resource Configure test xml file added

Change-Id: I60ce824b97ec8897c2cef1fae088a50fd7f2ecb5
Signed-off-by: yeasir007 <md.yeasir@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12295
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Towhidul Islam <t.islam@samsung.com>
Reviewed-by: Gihong Kim <k1358.kim@samsung.com>
13 months agoUpdate IUT Simulator 55/13555/2
m.parves [Fri, 21 Oct 2016 06:28:10 +0000 (12:28 +0600)]
Update IUT Simulator

1. Add randompin support
2. Add CBOR file copy from scons
3. Replace CBOR file from program
4. Add library path

Change-Id: I7f2578c5dd3f8c0e8c388088dc8dda0881f9d76a
Signed-off-by: m.parves <m.parves@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13555
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Gihong Kim <k1358.kim@samsung.com>
13 months agoUpdate iotivity source of test branch to test 1.2.0-RC4 code 37/13537/1
m.parves [Thu, 20 Oct 2016 21:42:35 +0000 (03:42 +0600)]
Update iotivity source of test branch to test 1.2.0-RC4 code

Change-Id: Ibbffcc2988fdfefc3ce369442c0d5f8b686b56db
Signed-off-by: m.parves <m.parves@samsung.com>
13 months agoCloud ACE update 49/13049/10 1.2.0 1.2.0-RC4
Jongmin Choi [Thu, 20 Oct 2016 02:03:41 +0000 (11:03 +0900)]
Cloud ACE update

- APIs added to update Cloud ACE using aclid and acid
- aceid input removed from device side update API

Patch #1: initial upload
Patch #2: update ACE fix
Patch #4: Issue fixed related to update ACE and individual ACE update.
          Also Acl modification
Patch #5: Rebased to latest 1.2-rel
Patch #7: isValidACE method added and other issue fix
Patch #8-9: delete logic fix, getAclACE added, unnecessary code deleted

Change-Id: I8b15fe4556536b4af4d597564ccab4cf66c55e44
Signed-off-by: Jongmin Choi <jminl.choi@samsung.com>
Signed-off-by: Sunil Kumar K R <sunil.k14@samsung.com>
Signed-off-by: Jongmin Choi <jminl.choi@samsung.com>
Signed-off-by: Sunil Kumar K R <sunil.k14@samsung.com>
Signed-off-by: Jongmin Choi <jminl.choi@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13049
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
13 months agoUpdated NS sample App to allow/deny consumer subscription. 55/13455/2
abitha.s [Wed, 19 Oct 2016 13:49:46 +0000 (19:19 +0530)]
Updated NS sample App to allow/deny consumer subscription.

Change-Id: Icdcc0b71fb865fbbb5dd472045e71cef2689d2c6
Signed-off-by: abitha.s <abitha.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13455
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
13 months agofix issues relates to wrong syncInfo received 57/13457/2
nikhil.a [Wed, 19 Oct 2016 12:33:32 +0000 (18:03 +0530)]
fix issues relates to wrong syncInfo received

Change-Id: I77f9ce5d0fa3e7c40e0fe390b42f210e5a188a50
Signed-off-by: nikhil.a <nikhil.a7@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13451
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit 5c7427328a1757f9555be3b4f0a6292c53ac933c)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13457
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
13 months agoModify the subownerclient sample for IPv6 75/13375/4
Chul Lee [Tue, 18 Oct 2016 07:54:18 +0000 (16:54 +0900)]
Modify the subownerclient sample for IPv6

Change-Id: Ic04f1139ab482dc6082976eb39b6f15f79f71b8a
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13375
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
13 months agoUpdate the return value of MOT releated API. 49/13449/2
Chul Lee [Wed, 19 Oct 2016 11:00:31 +0000 (20:00 +0900)]
Update the return value of MOT releated API.

Change-Id: I97a6ee6f0b9eecafd2a28e717887a04decd9209d
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13449
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
13 months agoPrevent empty credential to be added 79/13379/4
Jongmin Choi [Tue, 18 Oct 2016 09:28:42 +0000 (18:28 +0900)]
Prevent empty credential to be added

Prevent empty credential to be added
(e.g. only rowneruuid is sent)

Patch #1: initial upload
Patch #2-3: fix arduino build error

Change-Id: I7802dcb76daab3269eb0a9638659087643b0c141
Signed-off-by: Jongmin Choi <jminl.choi@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13379
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
13 months agoSVACE issue fixes 35/13435/2
Chul Lee [Wed, 19 Oct 2016 06:42:12 +0000 (15:42 +0900)]
SVACE issue fixes

Change-Id: I4cd1fb23818a560449ae1ff3f2635c14ef093da7
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13435
Reviewed-by: Jongmin Choi <jminl.choi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
13 months agoFix bug for invalid return variable. 29/13429/2
KIM JungYong [Sun, 16 Oct 2016 23:13:26 +0000 (08:13 +0900)]
Fix bug for invalid return variable.

Invalid return variable is fixed.
1. invalid boolean -> pointer
2. invalid pointer -> boolean

Change-Id: I16cb2338b28ba5bb725ed6eb8d640f04216f7933
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13429
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
13 months agoUpdate discovery when connection was changed. 31/13431/3
KIM JungYong [Sun, 16 Oct 2016 23:54:46 +0000 (08:54 +0900)]
Update discovery when connection was changed.

When connection state was changed try to unicast discovery.

Change-Id: I7fe8f16039e9ead5002282742d6e51d805fc9225
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13319
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Hun-je Yeon <hunje.yeon@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit b615d00bc6f51c44dd2a22dbcc4079ea5879049f)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13431

13 months agoDoxyGen file update 73/13373/4
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>
13 months agoUpdated NS Sample App for testing Sync and sending complete NSMessage 25/13425/2
abitha.s [Tue, 18 Oct 2016 13:31:46 +0000 (19:01 +0530)]
Updated NS Sample App for testing Sync and sending complete NSMessage

Change-Id: I8bf14b020b1e5ec42dcf5710fe30a1b6beefbe4b
Signed-off-by: abitha.s <abitha.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13401
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit 307953f025c470abc8ea8b6f2ea8297fa38cc42f)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13425

13 months agoAdded null check logic for JniOnPublishResourceListener 99/13399/2
hyuna0213.jo [Tue, 18 Oct 2016 12:49:22 +0000 (21:49 +0900)]
Added null check logic for JniOnPublishResourceListener

Added null check logic for JniOnPublishResourceListener

Change-Id: I8967028583b951d2af049a46eb618ba0963db72f
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13399
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>
13 months agofix issue related to wrong messageId 11/13411/2
nikhil.a [Tue, 18 Oct 2016 10:41:22 +0000 (16:11 +0530)]
fix issue related to wrong messageId

Change-Id: I6008dfe8fc3dc648841f0527e993bd698275f7e4
Signed-off-by: nikhil.a <nikhil.a7@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13385
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit a8e1605955b5f7fdf9ed1b59cfb3eb54c4e6d8ac)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13411
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
13 months agoFix for Memory leak results from static analyzer for NS C++ Wrapper. 03/13403/3
abitha.s [Fri, 14 Oct 2016 13:29:03 +0000 (18:59 +0530)]
Fix for Memory leak results from static analyzer for NS C++ Wrapper.

Change-Id: I97ca331ce6fcd7352350fd36426366433a5521a2
Signed-off-by: abitha.s <abitha.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13307
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit 1b4cea1ba6bb1b57214e0c3bbb6e84f214dda971)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13403
Tested-by: Uze Choi <uzchoi@samsung.com>
13 months agosetting received ttl value by consumer. 09/13409/2
nikhil.a [Tue, 18 Oct 2016 11:05:49 +0000 (16:35 +0530)]
setting received  ttl value  by consumer.

Change-Id: I1de504edf851d39d761dfa2a189a77116fca8a85
Signed-off-by: nikhil.a <nikhil.a7@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13387
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit f25946d028fa420573093f03fcbb2aa94eecfcf8)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13409
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
13 months agoFix Build issue for soname for NS Libraries 15/13415/2
abitha.s [Tue, 18 Oct 2016 15:12:21 +0000 (20:42 +0530)]
Fix Build issue for soname for NS Libraries

Change-Id: I07416d904e5ac63bbb389081e99f6849acfff842
Signed-off-by: abitha.s <abitha.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13415
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
13 months agoMinor CA tc and build script update 25/13325/6
m.parves [Sun, 16 Oct 2016 20:49:45 +0000 (02:49 +0600)]
Minor CA tc and build script update

1. Update build script for security
2. Add define for security

Change-Id: Ic8deaa8e05148d86e6754b854a475113bd2becf8
Signed-off-by: m.parves <m.parves@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13325
Reviewed-by: Gihong Kim <k1358.kim@samsung.com>
Tested-by: Gihong Kim <k1358.kim@samsung.com>
13 months agoUpdate IUT build script 77/13377/3
m.parves [Tue, 18 Oct 2016 02:59:02 +0000 (08:59 +0600)]
Update IUT build script

Change-Id: Ia68b0083bc22a698704c04f9c7fa6fd54e2e9415
Signed-off-by: m.parves <m.parves@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13377
Reviewed-by: Gihong Kim <k1358.kim@samsung.com>
Tested-by: Gihong Kim <k1358.kim@samsung.com>
13 months agotizen: Ignore tmp folder as used for local building 15/12715/3
Philippe Coval [Fri, 15 Jul 2016 08:57:29 +0000 (10:57 +0200)]
tizen: Ignore tmp folder as used for local building

This temporary folder is used to build out of sources.

Change-Id: I88dedd1f019cb67196d1980a6171f513c82b19cb
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9507
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12715

13 months agotizen: Use sqlite from system not scon puller 13/12913/4
Philippe Coval [Thu, 6 Oct 2016 13:45:15 +0000 (15:45 +0200)]
tizen: Use sqlite from system not scon puller

Change-Id: Id4382d37d34e5ac7d023e38bebd60228c6e6860e
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/12913
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
13 months agotizen: Ship only BSD licence from libcoap 69/12969/6
Philippe Coval [Sat, 8 Oct 2016 13:06:30 +0000 (15:06 +0200)]
tizen: Ship only BSD licence from libcoap

libcoap-4.1.1 is also licenced LICENSE.GPL,
to avoid ambiguity, tizen use the more permissive one, BSD.

This patch can be reverted,
 if Tizen wants to ship all upstream licences

Change-Id: Idc77605c48322f36887cc502dc0be570e2562486
Origin: https://gerrit.iotivity.org/gerrit/#/c/12969/
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12805
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
(cherry picked from commit 2bf870bae3451743f0dee3d35735994785e1b15c)
Reviewed-on: https://gerrit.iotivity.org/gerrit/12969
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
13 months agotizen: Ship renamed libuuid into RPM for SDK 71/12471/5
Philippe Coval [Wed, 28 Sep 2016 15:44:35 +0000 (17:44 +0200)]
tizen: Ship renamed libuuid into RPM for SDK

This way produced RPM can be installed on target or imported in SDK.

libuuid.so.1 is pulled by pkgconfig from com-oic-ri.spec
 then it will be installed correctly if using "rpm -i *.rpm",

Overiding system libs in packaging, is not encouraged:
Observed issue on Tizen:2.4:Mobile (TM1) :

  sdb shell su -c "rpm -i /opt/usr/media/Others/GBS-ROOT-RI-OIC/*.rpm"
  file /usr/lib/libuuid.so.1 from install of com-oic-ri-1.2.0-0.armv7l \
  conflicts with file from package libuuid-2.20.2-4.139.slp.armv7l

But if we want to unpack RPM contents to be used along Tizen-sdk,
 as app, then uuid is also needed
 (because SDK is missing it from its sysroot).
 So application need to be linked with -luuid1 (same just renamed),
 to avoid collision.

For more details about building IoTivity for Tizen along SDK,
 please check:

https://wiki.iotivity.org/tizen

Change-Id: Iabed0221618d0d602f440e3527e1824177395ee1
Bug: https://jira.iotivity.org/browse/IOT-1343
Origin: https://gerrit.iotivity.org/gerrit/#/c/12471
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12471
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>
13 months agoJavaDoc script update 61/13361/4
uzchoi [Mon, 17 Oct 2016 10:47:15 +0000 (19:47 +0900)]
JavaDoc script update

correct primitive service package and path

Change-Id: I59ed31c14c2286a7565b7a01f26ed213ef39bd55
Reviewed-on: https://gerrit.iotivity.org/gerrit/13361
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
13 months agoUnit tests for SSL adapter update 49/13349/2
Oleksii Beketov [Mon, 17 Oct 2016 17:05:01 +0000 (20:05 +0300)]
Unit tests for SSL adapter update

Change-Id: Ib108dd1ce76632f1393383e6402e73c7ba2e60d7
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13349
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
13 months agoFix crash in Android provisioning client App. 45/13345/3
Sandeep Sharma [Mon, 17 Oct 2016 14:39:11 +0000 (20:09 +0530)]
Fix crash in Android provisioning client App.

Catch exception in provision Android client for setDeviceId API.

Change-Id: I19918e47eac9f040d490e3805964c6cc7d5d3fba
Signed-off-by: Sandeep Sharma <sandeep.s9@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13345
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
13 months agoRemove unnecessary files for MOT 43/13343/2
Chul Lee [Mon, 17 Oct 2016 14:35:21 +0000 (23:35 +0900)]
Remove unnecessary files for MOT

Change-Id: I9dbfab89b3c6cac1f82514dbb42c82c23808fc7e
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13343
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
13 months ago[Hotfix] Remove the segmentation fault while MOT. 41/13341/2
Chul Lee [Mon, 17 Oct 2016 12:09:46 +0000 (21:09 +0900)]
[Hotfix] Remove the segmentation fault while MOT.

Segmentation fault was occured by https://gerrit.iotivity.org/gerrit/#/c/13299/

In this patch,
MOT device discovery will use the pCandidateList
to handle discovered device according to patch 13229.

Change-Id: I57d9a603602d49bb3f8e287ae1599f450a044731
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13341
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
13 months agoadded error code (4.03 / 5.00) in ocstack result 39/13339/3
jihwan.seo [Wed, 12 Oct 2016 07:53:46 +0000 (16:53 +0900)]
added error code (4.03 / 5.00) in ocstack result

Change-Id: I311c0b76a2faa7704be8f4a8b89088a0ae471c6a
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13339
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
13 months agoModify /oic/res response 35/13335/3
Jee Hyeok Kim [Mon, 17 Oct 2016 06:34:17 +0000 (15:34 +0900)]
Modify /oic/res response

1. Modify /oic/res response from cloud side.
   Return 4.04 Not found if no resources found.

Change-Id: I5a8bf56ff5a3c07c2dc489dc2721b76716d9f6fd
Signed-off-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13335
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Glen Youngjin Kim <glen.kim@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
13 months agoUpdate a logic to check an availability of cloud server resource 33/13333/2
Jihun Ha [Mon, 17 Oct 2016 05:31:09 +0000 (14:31 +0900)]
Update a logic to check an availability of cloud server resource

Rather than URI, resource type of the cloud server resource is more
confirmable to check the availability.

Change-Id: I61f3b63412b39fc56e993a3041ac007d0886368b
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13333
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
13 months agoAdd null checking for observe request in easy setup 27/13327/2
Jihun Ha [Mon, 17 Oct 2016 02:42:57 +0000 (11:42 +0900)]
Add null checking for observe request in easy setup

Checking if entityHandlerRequest is NULL is added.

Change-Id: I79bf75c9f53f28b9c0c679a5dd7371552764b5cd
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13327
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
13 months agotizen: Simplify missing license macro for Tizen:2.3 97/12897/5
Philippe Coval [Thu, 6 Oct 2016 11:39:13 +0000 (13:39 +0200)]
tizen: Simplify missing license macro for Tizen:2.3

Change-Id: I6c2ceec4f37589db6c110a0f04df501c689a3fde
Origin: https://gerrit.iotivity.org/gerrit/#/c/12897/
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12897
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
13 months agoRevert wrong removal of proxy client sample build 05/13305/2
Abhishek Sharma [Fri, 14 Oct 2016 13:01:22 +0000 (18:31 +0530)]
Revert wrong removal of proxy client sample build

A DTLS related change has wrongly removed build for
proxy client sample.

Change-Id: I1f65c1cadf6a84a69691ad02bc1227793ca2fce7
Signed-off-by: Abhishek Sharma <ce.abhishek@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13305
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
13 months agoFix for all discovered devices to include a secure port 99/13299/2
Joonghwan Lee [Fri, 14 Oct 2016 11:59:46 +0000 (20:59 +0900)]
Fix for all discovered devices to include a secure port

This patch prevent to add the device that does not have a secure port to discovered device list

Change-Id: Ia7283b37b7820e045f4a51ad03395205b4240dd3
Signed-off-by: Joonghwan Lee <jh05.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13299
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
13 months agoMultiple Ownership Transfer support. 63/12063/18
Chul Lee [Fri, 14 Oct 2016 11:25:42 +0000 (20:25 +0900)]
Multiple Ownership Transfer support.

  - Patch #1 : Initial upload
  - Patch #2 : Apply the conditional compilation for Multiple Owner features.
               e.g.) scons SECURED=1 MULTIPLE_OWNER=1
  - Patch #3 : Remove compile error for arduino
  - Patch #4-5 : Rebased for latest 1.2-rel branch
  - Patch #6 : Updated according to comment.
  - Patch #7 : Updated according to comments.
  - Patch #8 : Fixed unittest error.
  - Patch #9-10 : Fix svace issues
  - Patch #11 : Rebased with latest 1.2-rel
  - Patch #12 : Updated according to Kevin's comments.
  - Patch #13 : Rebased with latest 1.2-rel
  - Patch #14-15 : Fix svace issues
  - Patch #16 : Rebased with latest 1.2-rel
  - Patch #17 : Apply the optional compile for CA layer.

[Overview]
This patch is to support the multiple ownership transfer(MOT).
We assume the MOT authenticated client is the SubOwner.
SubOwner can access the ALL resources with full permsion except the DOXM, ACL and CRED.

This patch includes following changes :
1. Update the doxm resource to include MOT related properties.
   - New Properties
     . x.org.iotivity.mom : Mode of MOT
     . x.org.iotivity.subowneruuid : List of SubOwner
   - SubOwner has READ permission for DOXM.
   - The resource server will be update subowner list of doxm
     when MOT authentication successfully done.

2. Update the cred, acl resource to include MOT related property.
   - New Properties
     . x.org.iotivity.eowneruuid : entry owner uuid for each entry.
   - SubOwner should set the eowner as subowner's UUID
     when provision the ACL and CRED.
   - SubOwner can access only those resources that registered as eowner.

3. Update the PolicyEngine for SubOwner's access control as following :
   - DOXM : READ ONLY
   - CRED/ACL : SubOwner can access only those resources that registerd as eowner.
     . SubOwner can not provision ACL which is include the DOXM, CRED, ACL, PSTAT.
   - PSTAT : FULL permission
   - Application Resources : FULL permission

4. Add Preconfigured-PIN OxM

5. Update the sample codes
   - Test Preconfigured PIN based MOT
     1. Run the sampleserver_justworks
     2. Run the provisioningclient
     [On the provisioningclient]
     3. Perform the UnOwned Device discovery [Menu:11]
     4. Perform the OTM [Menu:20]
     5. Perform the Owned Device Discovery [Menu:12]
     6. Change the server's 'mode of MOT' [Menu:70]
     7. Perform the MOT enabled device discovery [Menu:13]
        - Check the discovered device list.
     8. POST the preconfigured-PIN credential [Menu:71]
         - sample's preconfigured-PIN is '12341234'
     9. Change the server's 'oxmsel' [Menu:72]
         - '3' is preconfigured-PIN OxM
     10. Run the subownerclient
     [On the subownerclient]
     11. Perform the MOT enabled device discovery [Menu:10]
         - Check the discovered device list.
     12. Perform the MOT [Menu:20]
     13. Perform the Multiple Owned device discovery [Menu:11]
         - Check the discovered device list.
     14. Perform the ACL provisioning TEST [Menu:40]

   - Test Random PIN based MOT
     1. Run the sampleserver_randompin
     2. Run the provisioningclient
     [On the provisioningclient]
     3. Perform the UnOwned Device discovery [Menu:11]
     4. Perform the OTM [Menu:20]
     5. Perform the Owned Device Discovery [Menu:12]
     6. Change the server's 'mode of MOT' [Menu:70]
     7. Run the subownerclient
     [On the subownerclient]
     8. Perform the MOT enabled device discovery [Menu:10]
         - Check the discovered device list.
     9. Perform the MOT [Menu:20]
         In case of random PIN based MOT, PIN input required.
     [On the sampleserver_randompin]
     10. Press 'G' or 'g' on the sampleserver_randompin.
         server will generate and display the random PIN.
     11. Input the server's PIN number on the subownerclient side.
     12. Perform the Multiple Owned device discovery [Menu:11]
         - Check the discovered device list.
     13. Perform the ACL provisioning TEST [Menu:40]
     14. Press 'E' or 'e' on the sampleserver_randompin to exit server.

Change-Id: I5449834e766d256495537d9fb469eb4d597f4c7a
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Signed-off-by: Jongmin Choi <jminl.choi@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12063
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
13 months agoUpdate the ACL delete mechanism as determined by OSWG. 65/13265/6
Chul Lee [Fri, 14 Oct 2016 05:00:23 +0000 (14:00 +0900)]
Update the ACL delete mechanism as determined by OSWG.

After this patch,
If 'subject' not exist in the query string of DELETE request,
All ACE data will be removed.

Change-Id: Ife12c457b2029991168bf048bbfb90278ea4b3a2
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13265
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
13 months agoAdd license comment 93/13293/2
Parkhi [Fri, 14 Oct 2016 08:43:50 +0000 (17:43 +0900)]
Add license comment

Change-Id: I1374b2ee45e120bae756e1e2f975eba23fee24f4
Signed-off-by: Parkhi <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13293
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
13 months ago[IOT-1440] findResource() to return list of discovered resources. 11/13111/2
Harish Kumara Marappa [Tue, 11 Oct 2016 15:27:41 +0000 (00:27 +0900)]
[IOT-1440] findResource() to return list of discovered resources.

OCPlatform::findResource() does not return all the discovered resources in single callback
even though it gets the whole discovery payload from RI C layer.

This change implements OCPlatform::findResourceList() API which does return all the parsed
resources in discovery payload in single callback.

Change-Id: Ic95541f7303a15eb676029e6f2ea4952e5e3ca3e
Signed-off-by: Harish Kumara Marappa <h.marappa@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13111
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Reviewed-by: Abhishek Pandey <abhi.siso@samsung.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
13 months agoBug fix about result of static anlayzer. 69/13269/2
jaesick.shin [Fri, 14 Oct 2016 06:07:54 +0000 (15:07 +0900)]
Bug fix about result of static anlayzer.

this patch include,
bug fix about memory leak and coding idiom.

Change-Id: I6fba4a8b182ce88cda44571ebb490c7573812c01
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13269
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
13 months agoModified connectivityType on calling getDeviceInfo API at CPP Sample 61/13261/3
hyuna0213.jo [Fri, 14 Oct 2016 05:22:26 +0000 (14:22 +0900)]
Modified connectivityType on calling getDeviceInfo API at CPP Sample

Modified connectivityType on calling getDeviceInfo API at CPP Sample
Invalid connectivityType is used after merging below patch.
https://gerrit.iotivity.org/gerrit/#/c/13143

Change-Id: Ia881159af02f1eae984d4cda770e23cf6205741a
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13261
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
13 months ago[IOT-1442] Apply the new ACL policy for device owner and resource owner. 65/12265/8
Chul Lee [Tue, 27 Sep 2016 06:28:24 +0000 (15:28 +0900)]
[IOT-1442] Apply the new ACL policy for device owner and resource owner.

According to new ACL policy,
Device owner's ACL should be provisioned while OTM.
For this reason, Ownership transfer manager should updates the owner's ACL while OTM.

- Patch #1 : Initial upload
- Patch #2 : Updated according to comments.
- Patch #3 : Rebase
- Patch #4 : Fixed a bug that occured during rebase.

Change-Id: I92a78e6145afdb3341582555739a64184bee65db
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12265
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
13 months agoAdded NULL check for GetDoxmResourceData 29/13229/2
sahil bansal [Thu, 13 Oct 2016 10:35:15 +0000 (16:05 +0530)]
Added NULL check for GetDoxmResourceData

Change-Id: Iea981a40ebaccef368ae4cbd834c30cb124fd76c
Signed-off-by: sahil bansal <sahil.bansal@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13229
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
13 months agoKeep ACL rowneruuid when POST payload does not have rowneruuid 57/13257/2
Jongmin Choi [Fri, 14 Oct 2016 03:52:46 +0000 (12:52 +0900)]
Keep ACL rowneruuid when POST payload does not have rowneruuid

Maintains the ACL rowneruuid when the payload of POST request
does not have rowneruuid

Change-Id: I52177b84ba9ced8b1078b3edea12256e23d6dfd8
Signed-off-by: Jongmin Choi <jminl.choi@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13257
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
13 months agoFix for IOT-1394. 11/13211/3
Senthil Kumar G S [Wed, 5 Oct 2016 16:01:10 +0000 (21:31 +0530)]
Fix for IOT-1394.

In callbacks for GET, PUT, POST, and OBSERVE requests in
InProcClientWrapper.cpp (CPP layer of RI), the representation was parsed
only for success cases.

But when we are dealing with cloud responses,
they include a payload with error message and code even for error cases.

To catch those responses, we should ignore the status(OCStackResult)
of client response and let the error representation reach till application.

Change-Id: I103957bb79e948693807fc05e8bed461e6b2d8dd
Signed-off-by: Senthil Kumar G S <senthil.gs@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12831
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Abhishek Pandey <abhi.siso@samsung.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
(cherry picked from commit 664340cc8b5c22d3441f11c34df2b5f3d1b8eff3)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13211
Reviewed-by: Harish Marappa <h.marappa@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
13 months ago[IOT-1444] Enabling handling observe requests for collection resource. 61/13161/3
Harish Kumara Marappa [Wed, 12 Oct 2016 09:39:42 +0000 (18:39 +0900)]
[IOT-1444] Enabling handling observe requests for collection resource.

Change-Id: If72f5a85858240787dea2b307710f1167c14c68a
Signed-off-by: Harish Kumara Marappa <h.marappa@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13149
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Abhishek Pandey <abhi.siso@samsung.com>
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-by: Hun-je Yeon <hunje.yeon@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit aa9cdad0a3937ae0e8538cbc8f6c48a1a52cde9a)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13161

13 months ago[IOT-1438] Solve Build issue on Tizen secured build through gbsbuild script 99/13099/2
YounghyunJoo [Tue, 11 Oct 2016 11:08:35 +0000 (20:08 +0900)]
[IOT-1438] Solve Build issue on Tizen secured build through gbsbuild script

- add secured check logic into gbsbuild.sh file
- using this logic, check mbedtls file & apply the patch

Change-Id: I6d458ea599562216444582b78724a1b61023d6de
Signed-off-by: YounghyunJoo <yh_.joo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13099
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>
13 months ago[IOT-1451] Keep client callback when receiving error result 37/13237/2
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>
13 months agobug fix about memory leak. 55/13255/2
jaesick.shin [Fri, 14 Oct 2016 02:52:25 +0000 (11:52 +0900)]
bug fix about memory leak.

this patch include,
bug fix for dynamic analyzer.

Change-Id: I4fc7ff7436ac6019abe3aaaf8467392068e0ad7d
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13255
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
13 months agofixed bug in ResourceFind of CI 49/13249/2
Jung Seungho [Fri, 14 Oct 2016 00:59:32 +0000 (09:59 +0900)]
fixed bug in ResourceFind of CI

Change-Id: I816b8e0ed8fe62d0a6f385aa634c8e464669977c
Signed-off-by: Jung Seungho <shonest.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13249
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
13 months agoUrgent Fix (in ocstack.c) 41/13241/3
Andrii Shtompel [Thu, 13 Oct 2016 14:11:13 +0000 (17:11 +0300)]
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: 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>
14 months agoIOT-1398 Remove CheckFunc() on Win32 API 55/12955/2
David Antler [Wed, 5 Oct 2016 22:56:42 +0000 (15:56 -0700)]
IOT-1398 Remove CheckFunc() on Win32 API

CheckFunc() is dangerous on Win32 APIs because SCons is not capable
of compensating for __stdcall name mangling on x86 systems using the
Visual Studio compiler.

Change-Id: Iaec49e4d246c02ecfebc5bf70ee0c0620cdde51d
Signed-off-by: David Antler <david.a.antler@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12839
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Mike Fenelon <mike.fenelon@microsoft.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
(cherry picked from commit 823d478bbf5109a4a73c304794179410f984714e)
Reviewed-on: https://gerrit.iotivity.org/gerrit/12955
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
14 months agoUpdate observe-request processing logic. 51/13251/2
Parkhi [Thu, 13 Oct 2016 13:06:37 +0000 (22:06 +0900)]
Update observe-request processing logic.

Change-Id: Icb5ae1a3f8c8e985570b30b0420cc6e7fe98ffdc
Signed-off-by: Parkhi <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13251
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
14 months agobug fix for response of topic and modify unittest. 21/13221/4
jaesick.shin [Thu, 13 Oct 2016 10:24:40 +0000 (19:24 +0900)]
bug fix for response of topic and modify unittest.

this patch include,
1. bug fix for response of topic post case.
2. modify unittest about included interface type.

Change-Id: I5bba7ef93260c2c67f25d9d79455e383d6ea8c0c
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13219
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit f58cd738051414f36223ea6a6eb6def34a927ba9)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13221

14 months agoBug fix about memory leak. 45/13245/2
jaesick.shin [Thu, 13 Oct 2016 15:31:53 +0000 (00:31 +0900)]
Bug fix about memory leak.

this patch include,
bug fix for dynamic analyzer.

Change-Id: I9a36d496b76c9d712d80af45492f0e38a7aff4ea
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13245
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
14 months agoAdded SVACE Fixes for C++ wrapper Unit TCs 39/13239/2
abitha.s [Thu, 13 Oct 2016 11:02:01 +0000 (16:32 +0530)]
Added SVACE Fixes for C++ wrapper Unit TCs

Change-Id: I09224a2bcd6e38c0d8cbb80caf5a0009161113d2
Signed-off-by: abitha.s <abitha.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13231
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit 82f4898421586624bb7e0576ad48948e05032fff)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13239

14 months agoCA Secured TC Update 73/12973/6
m.parves [Sun, 9 Oct 2016 07:50:55 +0000 (13:50 +0600)]
CA Secured TC Update

1. Change CARegisterDtlsHandler btc
2. Add new APIs call to initiate secure connection
3. Add secure testcase for TCP adapter
4. Update build script for tinydtls and mbedtls library
5. Remove extra space

Change-Id: I81c685705281bf23f3fd1afb87ca40ac2254809d
Signed-off-by: m.parves <m.parves@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12973
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Suchita Sultana <suchita.rs@samsung.com>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
14 months agoRefactor CA android testcase, simulator and build script 67/12067/16
m.parves [Wed, 21 Sep 2016 06:20:03 +0000 (12:20 +0600)]
Refactor CA android testcase, simulator and build script

1. Remove iotivity library source. Use aar instead.
2. Remove iotivity build makefile. Use dynamic library instead
3. Merge BT and BLE client testcase
4. Refactor CA Jni API

Change-Id: I2eb5c7bfd0a1d6617bc1643e8e3c08d15a05ef93
Signed-off-by: m.parves <m.parves@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12067
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Suchita Sultana <suchita.rs@samsung.com>
Reviewed-by: Sungkyu Ko <sungkyu.ko@samsung.com>
14 months agoChange settings on deviceInfo and platformInfo in samples as per specs. 75/13175/2
Ziran Sun [Mon, 10 Oct 2016 14:17:10 +0000 (15:17 +0100)]
Change settings on deviceInfo and platformInfo in samples as per specs.

Bug: https://jira.iotivity.org/browse/IOT-1435
Change-Id: I9de03c0c6c09d4632503f9ad8f2943c9f1468527
Signed-off-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13051
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
(cherry picked from commit 18459f405216414506c405c118633405a27b0585)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13175

14 months ago[IOT-1391] fix BLE scan logic which create thread. 23/12923/2
jihwan.seo [Wed, 5 Oct 2016 05:06:04 +0000 (14:06 +0900)]
[IOT-1391] fix BLE scan logic which create thread.

scan thread was made by unicast/multicast request in BLE client.
it causes a big problem which memory overflow issue related Thread.
so, scan thread will be working as one thread.

Change-Id: Icbabfcdbc7e4c260e36b22f31e98779248b4b7ed
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12923
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>
14 months agoannotate OIC_LOG_BUFFER when looking for client callback and observer 09/13209/2
Jaewook Jung [Wed, 28 Sep 2016 01:40:45 +0000 (10:40 +0900)]
annotate OIC_LOG_BUFFER when looking for client callback and observer

Printing all token info while looking for client callback or observer
is burden and makes it hard to see entire log message
even though it is needless.

Change-Id: I25e0c3f1922f207a9d6652017495270db34e6bbc
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12375
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit ce6822710a2ee2272b2740e6747f219c8c51dfca)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13209
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
14 months agoFix bugs for result of static analizer. 01/13201/2
KIM JungYong [Thu, 13 Oct 2016 02:44:38 +0000 (11:44 +0900)]
Fix bugs for result of static analizer.

1. Initializatioin of local variable is added.
2. Invalid memory double free is removed on error handling.

Change-Id: I2d4c8460dd1e81ef88f6119f79deeae09c7f01c8
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13201
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
14 months agoUpdated Easysetup Security logic. 03/13203/2
Parkhi [Tue, 11 Oct 2016 07:12:18 +0000 (16:12 +0900)]
Updated Easysetup Security logic.

 - EnrolleeSecure resource not to re-created during previous request is processed
   for every security provisioning request to get callback from security-logic

Change-Id: I905b1cf708db68583a95bd9cad299212fa00ec84
Signed-off-by: Parkhi <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13077
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit 6bc9e3388d3cafb0af33e785b3650af9f94ff7d1)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13203
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
14 months ago[IOT-1413,IOT-1415] Fixed request handling bugs for /oic/ping resource 89/13089/6
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>
14 months ago[IOT-1445] Add ins value when publishing a resource to rd 59/13159/3
hyuna0213.jo [Wed, 12 Oct 2016 10:22:48 +0000 (19:22 +0900)]
[IOT-1445] Add ins value when publishing a resource to rd

The ins value has to be included when publishing a resource
to resource-directory. Otherwise resource-directory will
return error code.
Currently, The ins is not included because the return value
of OCGetResourceIns() was not checked properly.

Change-Id: I11b1f405e000f36bb76ca7d24c8dbbbd6e7586fe
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13159
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
14 months ago[IOT-1449] mbedTLS: Use wcslen instead of lstrlenW on Windows 83/13183/5
Kevin Kane [Wed, 12 Oct 2016 23:30:01 +0000 (16:30 -0700)]
[IOT-1449] mbedTLS: Use wcslen instead of lstrlenW on Windows

lstrlenW is not allowed in Windows Store applications. Use wcslen
instead.

Also fix a nearby narrowing size_t to int conversion to make sure
it's safe.

Change-Id: I14d37b6a0d6c82444f4733f5d54bd8173ca62b71
Signed-off-by: Kevin Kane <kkane@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13183
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
14 months agoFix a faulty logic in PMSingleDeviceDiscovery 67/13167/2
Jihun Ha [Wed, 12 Oct 2016 11:06:29 +0000 (20:06 +0900)]
Fix a faulty logic in PMSingleDeviceDiscovery

A device discovery transaction should be removed AFTER port discovery
is done or discovery time is expired.

Change-Id: I55062a3a8ef5187bf249d0afee2276e40c0f52d9
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13167
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Joonghwan Lee <jh05.lee@samsung.com>
Reviewed-by: Heewon Park <h_w.park@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
14 months agoAdded changes to remove build warning while building NS Jni Common files 87/13187/2
abitha.s [Wed, 12 Oct 2016 13:18:51 +0000 (18:48 +0530)]
Added changes to remove build warning while building NS Jni Common files

Change-Id: I0631be24a2cdfeedaae61a02fb351f047f834ae7
Signed-off-by: abitha.s <abitha.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13177
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit 2ca715130d210337381369b8d3c65283a9ab6ae4)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13187

14 months ago[IOT-1420] Solve that if, rt properties ommited 89/13189/2
Jihun Ha [Wed, 12 Oct 2016 10:29:56 +0000 (19:29 +0900)]
[IOT-1420] Solve that if, rt properties ommited

- add rt, if attributes to SceneListResource

Change-Id: I07017fbfb99755d182676e5a946fde505e121e66
Signed-off-by: ChaJiWon <jw_wonny.cha@samsung.com>
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13105
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
(cherry picked from commit 3b06e2bd1f6db4bae9189dc974632df4caa77239)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13189