hyuna0213.jo [Thu, 10 Nov 2016 09:39:24 +0000 (18:39 +0900)]
[IOT-1554] Added error callback when adapter is terminated
If application try to send data when adapter is terminated,
Error message should be delivered to application layer.
Change-Id: Iec02116e864fb8667570c67982f44838d74f84a9
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14181
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit
871b61a5eb48b4891f1bb447a6795505871e872f)
Reviewed-on: https://gerrit.iotivity.org/gerrit/14395
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Minji Park [Tue, 15 Nov 2016 07:30:02 +0000 (16:30 +0900)]
Add shutdown() to disable send/receive on a socket in catcpserver
- Add shutdown() before close socket when closing connection in catcpserver
Change-Id: Ibe2ed942428f754dc148bd1c48422036f84a319c
Signed-off-by: Minji Park <minjii.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14343
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Hyuna Jo <hyuna0213.jo@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Habib Virji [Wed, 16 Nov 2016 10:32:31 +0000 (10:32 +0000)]
Fix Device and Payload response
Bug fix due to change introduced in https://gerrit.iotivity.org/gerrit/#/c/12283/
Change-Id: Ib6b03f4296c8ef0fb1ac7ac79ff1023856a070bc
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14421
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
jihwan.seo [Wed, 16 Nov 2016 05:11:16 +0000 (14:11 +0900)]
fix findresource failure issue.
this fix is from https://gerrit.iotivity.org/gerrit/#/c/12283/
Change-Id: I322ec7f7a833134f5849eb2157f0025273ebed06
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14411
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Jaewook Jung [Thu, 17 Nov 2016 04:14:43 +0000 (13:14 +0900)]
[IOT-1570] fixed a crash issue related to block-wise transfer
When a resource server receives 4.08 error response from a resource
client, the server will try to send the response from the first
block again.
But now, the server assumes the message type that has to be sent
for receiving 4.08 error is only request message.
So I modified to handle it up to the message type.
Change-Id: I555b5dd5c44b73647c2543de551aba6f5113f909
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14433
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit
4667f8b18e45b67022a0dc0966ad85c572d52f53)
Reviewed-on: https://gerrit.iotivity.org/gerrit/14439
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Chul Lee [Mon, 14 Nov 2016 04:49:36 +0000 (13:49 +0900)]
Manufacturer certificate based ownership transfer support.
1. Add manufacturer certificate OxM callbacks
: resource/csdk/security/provisioning/src/oxmmanufacturercert.c
: resource/csdk/security/provisioning/include/oxm/oxmmanufacturercert.h
2. Apply the manufacturer cert based OxM on the client & server.
: resource/csdk/security/provisioning/src/ownershiptransfermanager.c
: resource/csdk/security/src/doxmresource.c
3. Add manufacturer certificate supported sample server
: resource/csdk/security/provisioning/sample/sampleserver_mfg.cpp
4. Add API to set the allowed/not-allowed OxM which is OCSetOxmAllowStatus()
: resource/csdk/security/provisioning/src/ocprovisioningmanager.c
: resource/csdk/security/provisioning/include/ocprovisioningmanager.h
5. Add OCStackResult code to handle not allowed OxM exception.
: resource/csdk/stack/include/octypes.h
: resource/src/OCException.cpp
: resource/include/StringConstants.h
: resource/unittests/OCExceptionTest.cpp
6. Update the SConscript according to above modifications.
: resource/csdk/security/provisioning/SConscript
: resource/csdk/security/provisioning/sample/SConscript
Change-Id: Ibb4b4eec33a1e39234f808e32cc3b96aff4879ad
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14275
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Kevin Kane [Fri, 18 Nov 2016 02:11:20 +0000 (18:11 -0800)]
[IOT-1519] Don't clear ownerPSK secret too early
Owner PSK secret was cleared too early; only clear after
all uses are finished.
Change-Id: Ie39990a5aabfcd71b8370103b7182cb76cb09f40
Signed-off-by: Kevin Kane <kkane@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14491
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Jongsung Lee <js126.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Kevin Kane [Wed, 16 Nov 2016 18:46:28 +0000 (10:46 -0800)]
Add raxmpp and yaml extlibs to .gitignore
If these dependencies are cloned into the repo, git will think
they're untracked subtrees of the iotivity repo. This change
adds them to .gitignore like the rest of the dependencies in
extlibs.
Change-Id: I65074d5df9accef813d8f1ffc3be2a0e887ced91
Signed-off-by: Kevin Kane <kkane@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14423
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
bg.chun [Wed, 9 Nov 2016 08:49:16 +0000 (17:49 +0900)]
[IOT-1528]update file path and remove static analysis warring
update file path(ifaddrs.x -> caifaddrs.x)
and fix netlink usage for remove static analysis warring
Change-Id: I672d9ba1250710cc10c66cbbde56b6b12afc15e8
Signed-off-by: bg.chun <bg.chun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14337
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Reviewed-by: George Nash <george.nash@intel.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
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>
(cherry picked from commit
ff90362afac06f289d12fb917d124c9efff3464b)
Reviewed-on: https://gerrit.iotivity.org/gerrit/14075
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Kevin Kane [Fri, 4 Nov 2016 20:53:34 +0000 (13:53 -0700)]
[IOT-1519] Securely zero buffers containing secret data
Add an OICClearMemory helper function, and use it to securely
clear buffers that contain keys and other secret data that
shouldn't be left in the stack or on the heap.
Rename privateKey to g_privateKey in csr.c.
Fix a couple of leaked payloads on error return paths in
secureresourceprovider.c (which will also now zero their
contents).
Change-Id: If79c840ad758be2a7ca1bf7e6ccccb6dbdc39cf2
Signed-off-by: Kevin Kane <kkane@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14091
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
js126.lee [Tue, 15 Nov 2016 04:48:08 +0000 (13:48 +0900)]
[IOT-1550] Resolved reset issue on rowner of cred
https://jira.iotivity.org/browse/IOT-1550
issue : Rowner of cred is reset, when saving Cert. chain
using SRPSaveTrustCertChain and SRPSaveOwnCertChain.
Patch 1: upload patch
Patch 2: rebase
Patch 3: Apply review comment
Change-Id: I59cdbfb30253c61e1c27dcf640958899af976a96
Signed-off-by: js126.lee <js126.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14327
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Jaehong Jo [Mon, 7 Nov 2016 00:45:47 +0000 (09:45 +0900)]
Return correct error code when send fails in catcpserver
Modified ssl adapter along with modified return type.
Change-Id: Ife10f276ef5315b868d21bc66fa121ff6baa61ac
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Signed-off-by: Joonghwan Lee <jh05.lee@samsung.com>
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14325
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Chul Lee [Tue, 15 Nov 2016 01:32:26 +0000 (10:32 +0900)]
Enable mbedTLS's log with LOGGING=1 option
Change-Id: I51b285aac780d17d5ff45a6e5be200bef4359602
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14311
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dmitriy Zhuravlev <d.zhuravlev@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Dave Thaler [Sat, 12 Nov 2016 08:57:16 +0000 (17:57 +0900)]
[IOT-1513] Incorrect URI construction
The % character is not legal to be placed literally in a URI, it must be
escaped (as "%25") before being enclosed in a URI. Other places were
changed in July in change 9419, and some more in change 14009, but these
code paths were not changed at that time.
This also fixes a bug in setHost which did not mark an IPv6 address as
IPv6, and adds a test case that covers this.
Change-Id: I1331ecb9c5482a2d43dd675978a1f34c6d37cb4c
Signed-off-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14273
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Parkhi [Wed, 16 Nov 2016 06:04:47 +0000 (15:04 +0900)]
fixed bug for ESEnrolleeState validation check logic
Change-Id: I51225c3f814ed6a651a06082a2504fb65289c58a
Signed-off-by: Parkhi <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14403
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Kevin Kane [Wed, 9 Nov 2016 17:38:22 +0000 (09:38 -0800)]
[IOT-1529] Sync TinyCBOR to release tag before using
Current build will sync to the head of TinyCBOR's master branch.
To remove this unpredictability from the build, always sync to
a particular release tag.
Change-Id: I471ac19aedc787bca64ee01c4733ab319d6f32d3
Signed-off-by: Kevin Kane <kkane@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14165
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
jihwan.seo [Tue, 15 Nov 2016 08:48:54 +0000 (17:48 +0900)]
fix crash issue related set interfaceQuery.
Change-Id: I7c40c0930879a0ad860e935325adc44b860d9ee8
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14371
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
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>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14219
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Sunil Kumar K R [Thu, 10 Nov 2016 06:49:24 +0000 (12:19 +0530)]
Junit files for acl id and acl verify methods
Change-Id: Ib2b138631a63a1eba9a15608d04605f726fc5ba6
Signed-off-by: Sunil Kumar K R <sunil.k14@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14175
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Chul Lee [Wed, 16 Nov 2016 00:58:20 +0000 (09:58 +0900)]
[IOT-1549] Add DTLS retransmission
Create thread for checking peer timer
Change-Id: I067b5924035b4b2563fcc094a5cbcf6dd9ae6e50
Signed-off-by: Dmitriy Zhuravlev <d.zhuravlev@samsung.com>
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14349
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
jaesick.shin [Tue, 15 Nov 2016 01:38:55 +0000 (10:38 +0900)]
[IoT-1557] Bug fix about related relay server.
This patch include,
missing the declare of function.
Change-Id: I1b543402a9ba8487029d8b59e806c6b570439652
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14313
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
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>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14217
Reviewed-by: Uze Choi <uzchoi@samsung.com>
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
Bug: 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>
Signed-off-by: bg.chun <bg.chun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14215
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
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>
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14293
Habib Virji [Mon, 14 Nov 2016 22:13:53 +0000 (22:13 +0000)]
Fix Discovery issue with OCResource
Fix memory allocation and handling response as introduced in the change for issue 1134.
Change-Id: Ieebd1dde50d87e05f9e7ea0cec04af398cabe3ef
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14295
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
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>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14073
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Jongmin Choi [Mon, 7 Nov 2016 09:57:14 +0000 (18:57 +0900)]
Change pstat.deviceuuid from R-only to RW
As SWG decided that pstat.deviceuuid is RW,
pstat handler has been fixed accordingly.
Patch #1: Initial upload
Change-Id: Ibc0b1d86ddfb06306268dddaf07f38152d8800f2
Signed-off-by: Jongmin Choi <jminl.choi@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14069
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Nathan Heldt-Sheller [Fri, 4 Nov 2016 21:13:00 +0000 (14:13 -0700)]
Change doxm.deviceuuid from R-only to RW in doxm entity handler.
CTT testing revealed a bug in 1.2 (and a matching bug in the 1.1
schema) that had marked deviceuuid as R-only. However this is
not correct: deviceuuid must be Writeable to allow the OBT
to update with a new UUID during onboarding. This has been
verified by SecWG and needs to be fixed in 1.2.
Patch #2: added a line to also copy deviceuuid in updateWriteableProperty() function
Change-Id: Icff6d978f5a12af021d557a5c71f25a4e9957ba2
Signed-off-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14053
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jongmin Choi <jminl.choi@samsung.com>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
js126.lee [Fri, 11 Nov 2016 06:20:10 +0000 (15:20 +0900)]
[IOT-1537] Fixed twice response on both svc and amacl
Issue: In CTT test (version 1.3.15), CT1.1.1 was failed.
https://jira.iotivity.org/browse/IOT-1537
Cause: the server is responding with both 4.00(ACK) & 5.00(CON)
error message for not supported SVR(amacl, svc).
Patch 1: Resolved this issue.
Change-Id: I552781a242a0932fbe89823d17a5403b419116b0
Signed-off-by: js126.lee <js126.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14211
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Dmitriy Zhuravlev [Fri, 11 Nov 2016 08:42:16 +0000 (10:42 +0200)]
Fix mbedtls-2.4.0 build error
.git/refs/tags directory is empty
Change-Id: I0127bd3c8cb5448a8b7081b5f9550c6e502db7f0
Signed-off-by: Dmitriy Zhuravlev <d.zhuravlev@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14223
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Joonghwan Lee [Wed, 2 Nov 2016 11:26:34 +0000 (20:26 +0900)]
Added CAcloseSslConnectionAll() in ssl adapter
Change-Id: I2bcd1890a70ba64fd7f4cc33e6a1dfcbf6590050
Signed-off-by: Joonghwan Lee <jh05.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13953
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Randeep Singh [Wed, 9 Nov 2016 04:19:33 +0000 (09:49 +0530)]
[IOT-1524] Added check to reject unsecure request for selected SVR resources
ALL SVR resources other than DOXM & PSTAT resource should reject request over coap.
Change-Id: Idcf0ff22d7c676bef2480fe9b32a9e7b22c2317a
Signed-off-by: Randeep Singh <randeep.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14137
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Kevin Kane [Fri, 4 Nov 2016 19:58:37 +0000 (12:58 -0700)]
[IOT-1514] Always log sensitive data at DEBUG level
Some sensitive data is logged at levels other than DEBUG. Having
all of these at DEBUG can help ensure in release builds secret
data isn't inadvertently leaked through logging.
Change-Id: I58aa4ebc8e8dcdbc9d267d7eef3135a21e6daa0b
Signed-off-by: Kevin Kane <kkane@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14085
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Chul Lee [Fri, 11 Nov 2016 12:34:58 +0000 (21:34 +0900)]
Removed SECURED define dependency from JNI.
Change-Id: I7fd578d3d18a220e86794ce558e3cc704784b605
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14229
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Harry [Fri, 11 Nov 2016 05:51:14 +0000 (14:51 +0900)]
Fix crash issue while stopCaching.
Change-Id: I7319690301e32cb41e224528e8e032e57d58fc77
Signed-off-by: Harry <h.marappa@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14207
Reviewed-by: JungYong KIM <jyong2.kim@samsung.com>
Reviewed-by: Jay Sharma <jay.sharma@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Oleksii Beketov [Wed, 9 Nov 2016 15:50:49 +0000 (17:50 +0200)]
Add manufacturer certificate
1. Added ability to switch TLS
between different credential usage types
2. Manufacturer credentials injected to
oic_svr_db_client.dat and oic_svr_db_server_mfg.dat
Change-Id: Ide5ec7f849a03a787e45bb77e31076e94e1eb1b3
Signed-off-by: Dmitriy Zhuravlev <d.zhuravlev@samsung.com>
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14049
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Jongmin Choi [Wed, 9 Nov 2016 10:58:26 +0000 (19:58 +0900)]
[CONPRO-296] Check Null parameter in GetACLResourceData()
Check Null parameter in GetACLResourceData()
Change-Id: Ifac67589b6d3fd949122d94584574635c38f8ab0
Signed-off-by: Jongmin Choi <jminl.choi@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14159
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jongsung Lee <js126.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
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>
Kevin Kane [Wed, 2 Nov 2016 19:57:38 +0000 (12:57 -0700)]
[IOT-1511] Update mbedTLS to use 2.4.0 release tagged version
Change-Id: I259709cd2024eb9eca83aa19c90783bc2a9f8c72
Signed-off-by: Kevin Kane <kkane@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13973
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: David Antler <david.a.antler@intel.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Reviewed-by: Oleksandr Dmytrenko <o.dmytrenko@samsung.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
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/14173
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
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>
(cherry picked from commit
02ec9d7a594a13827c844d5e205927e6b7afab7d)
Reviewed-on: https://gerrit.iotivity.org/gerrit/12283
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Philippe Coval [Thu, 10 Nov 2016 11:47:39 +0000 (12:47 +0100)]
yocto: Add aarch64 for DragonBoard-410c
Backported to 1.1-rel branch
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/14187
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Habib Virji [Tue, 8 Nov 2016 15:09:27 +0000 (15:09 +0000)]
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>
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13997
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Tested-by: Phil Coval <philippe.coval@osg.samsung.com>
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>
(cherry picked from commit
77b6057600843dab97b1af64f31c6aacd5a9b32c)
Reviewed-on: https://gerrit.iotivity.org/gerrit/14143
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>
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/14109
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Sandeep Sharma [Tue, 8 Nov 2016 07:31:56 +0000 (13:01 +0530)]
Fix 'return' statements
Fix return statements in OCRegisterTrustCertChainNotifier
and OCRemoveTrustCertChainNotifier API.
Change-Id: Ifd3e19f05d3e4b9f79726d00ed50501d7e4a51b4
Signed-off-by: Sandeep Sharma <sandeep.s9@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14103
Reviewed-by: Ashwini Kumar <k.ashwini@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
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/14071
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
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/14009
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Reviewed-by: David Antler <david.a.antler@intel.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
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 was missed.
Change-Id: Ie98c10d97265e70b2b09d6fef7957e4ecb83e49b
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13939
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
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>
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>
(cherry picked from commit
f2b0686987db22fedaf290141641ea30c2dcde58)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13951
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
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>
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/13969
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
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>
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/14055
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
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/13959
Reviewed-by: Kevin Kane <kkane@microsoft.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>
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>
Ashwini Kumar [Fri, 4 Nov 2016 12:26:38 +0000 (17:56 +0530)]
Added C and C++ callback API for TrustCertChain Change Notification.
patch #2,3,4 : Fix callback context at RI layer
patch #5: Address review comments
Change-Id: I1d776a01cfb41074ce518ee20ddda1ce7ccde40f
Signed-off-by: Sandeep Sharma <sandeep.s9@samsung.com>
Signed-off-by: Ashwini Kumar <k.ashwini@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14033
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Ashwini Kumar [Fri, 4 Nov 2016 12:23:05 +0000 (17:53 +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>
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/13929
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dmitriy Zhuravlev <d.zhuravlev@samsung.com>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Alex Kelley [Tue, 1 Nov 2016 02:51:00 +0000 (19:51 -0700)]
[IOT-1469] Fix MOT build issues for Windows
- Added new .def file for MOT exports
- Fixed samples to use public APIs
- Updated PreconfigPin API names to align
Change-Id: Ib9b473b8b70eed243c8a7dbbd19e27eaa49a4edd
Signed-off-by: Alex Kelley <alexke@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13921
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Soemin Tjong <stjong@microsoft.com>
Reviewed-by: David Antler <david.a.antler@intel.com>
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
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>
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>
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>
(cherry picked from commit
4a0e8ff523c2266633580f6ec0f1ddc2a9c0d58b)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13735
Reviewed-by: George Nash <george.nash@intel.com>
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
Philippe Coval [Wed, 19 Oct 2016 18:09:52 +0000 (20:09 +0200)]
tizen: Use tag and not upstream branch
Change-Id: Ib45d37341fe326d42e9bdd8a81a6d479623fd8c0
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13463
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
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>
(cherry picked from commit
6cc3ae595f9e77c210323116656649ab2af71056)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13937
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>
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>
(cherry picked from commit
dfb723819d6a26571df5b7c8e308eb8944bd24d6)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13875
Habib Virji [Mon, 31 Oct 2016 12:27:46 +0000 (12:27 +0000)]
[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: I9540061add94ea325f7b5261f53159d88ad0fee9
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12905
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
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>
(cherry picked from commit
329265241170fa97589cc9dd39131886267ad93e)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13819
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/13851
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
KIM JungYong [Mon, 31 Oct 2016 07:31:39 +0000 (16:31 +0900)]
Add including headers description.
Change-Id: I304790db3f9346e7eb80a1e662dcbe4ba6d4a616
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13869
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
Chul Lee [Mon, 31 Oct 2016 01:52:14 +0000 (10:52 +0900)]
Remove the liboc link from PM's SConcript.
Change-Id: Ieb3f8ecb87233869242817eeb83e979bf9d50eb9
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13853
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Joonghwan Lee <jh05.lee@samsung.com>
Reviewed-by: Junghyun Oh <junghyun.oh@samsung.com>
Reviewed-by: Jongsung Lee <js126.lee@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
KIM JungYong [Mon, 31 Oct 2016 02:49:12 +0000 (11:49 +0900)]
Fix bug for can not callback on consumer cpp layer.
When starting consumer service, getTopic callback fisrt
and then discover callback due to can not call both changed callback and discover callback.
because when callback getTopic, NSProvider instance does not set the listener,
and when callback discover after, NSProvider instance already create, so can not callback discover.
This point is invalid logic on CPP layer.
With this patch, altough call getTopic first, can callback discover callback.
Change-Id: Ib7a3c8cf3e78edf24d0251227c5d3c225c3ba3a4
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13855
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
KIM JungYong [Mon, 31 Oct 2016 02:34:02 +0000 (11:34 +0900)]
Fix bugs for no catch std::out_of_range exceptions.
Samples of serveral services, no catch exception about out_of_range.
With this patch, all of exception was caught.
Change-Id: I18b9cf7633ac6c6ad3d5a8b9e37a5110ffd9d68f
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13859
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
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>
(cherry picked from commit
fab7f2948658a97d1e7367d57681789431ea0591)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13843
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>
(cherry picked from commit
b9885b46f1db70f8eb6544454adb6f3f7a4de0e1)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13845
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
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/13769
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Hyuna Jo <hyuna0213.jo@samsung.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
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>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13825
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>
(cherry picked from commit
5695ec7bbd056f50964570835929bdae428e3997)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13815
Philippe Coval [Tue, 4 Oct 2016 12:41:58 +0000 (14:41 +0200)]
tizen: Reformat subpackages specs files to align master one
To avoid confusion, of configuration flags,
each configuration change is welcome to be done in all spec files at once.
Change-Id: I4a35d7129719c8bfa29455f41624e1231158c62d
Origin: https://gerrit.iotivity.org/gerrit/#/c/12773/
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12773
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
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>
(cherry picked from commit
3a92e3476f2009b646d4fc02818e456c74a0e757)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13813
Chul Lee [Fri, 28 Oct 2016 05:51:16 +0000 (14:51 +0900)]
Modify the SRMRequestHandler to use the CAEndpoint_t's infomation
for identify a secure channel connection.
Change-Id: I91caf27ba7b08ee69623a960bb8df4da0acfefd9
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13809
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Joonghwan Lee <jh05.lee@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Jaehong Jo [Wed, 12 Oct 2016 07:18:39 +0000 (16:18 +0900)]
Fixed static analysis issues in RI.
Change-Id: Id6a1b8edb41b3863ba722db43285d28e264dfda8
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13133
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit
07dbd388c00fb4aa122f13d59b5373854a64176f)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13823
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>
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>
(cherry picked from commit
71e467fc875e757902b5eca06c777e8934ec6d75)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13807
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>
(cherry picked from commit
fef21899b621739349050eb50fe904001013bb86)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13803
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>
(cherry picked from commit
28c6ab3d9f116cefb365373069e00cee895f490a)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13805
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>
(cherry picked from commit
7827b3a896e14c17d5e19bb225480f43fc7c6ec4)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13801
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/13759
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
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>
(cherry picked from commit
bbe7232e50edc0e1db38a45f17fba8e5da26612a)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13793
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>
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>
(cherry picked from commit
2704cda8385fd6c974cccaa58c588c6298809326)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13795
Chul Lee [Thu, 20 Oct 2016 06:49:28 +0000 (15:49 +0900)]
Add credential verification API and add logs for debugging.
Patch #1 : Cherry-pick from master
Patch #2 : Modify the unittest of secure resource provider to remove error.
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>
(cherry picked from commit
06b7dc1f47482238a3e4f987bc81ef23c417dfdd)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13777
Jihun Ha [Thu, 27 Oct 2016 07:39:25 +0000 (16:39 +0900)]
Add more descriptive log messages in easy setup
This patch is for removing mis-used log messages and
adding one for more convenient debugging.
Change-Id: I354292210a18e16e74d8ae3c0d66b91a90f31ab9
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/12963
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Heewon Park <h_w.park@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit
13f06a192eac3c8fd6ef76fbfba9d64eb2f8e78f)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13745
Reviewed-by: Senthil Kumar G S <senthil.gs@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
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/13743
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
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>
(cherry picked from commit
e33caeb66dfa94e5a5ab9c15600857bf42c71989)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13729
Joonghwan Lee [Fri, 21 Oct 2016 06:58:39 +0000 (15:58 +0900)]
Fix to get only single credential entry
Old function(GetCredResourceDataByCredId) return not only the indicated credential entry but also all linked entries.
Change-Id: I0466b4c25a21395f08664a11ecfa6fd51a94b258
Signed-off-by: Joonghwan Lee <jh05.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13547
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
f849ddefea68e5668900f274976d440931818ef3)
Reviewed-on: https://gerrit.iotivity.org/gerrit/13693
Reviewed-by: Chul Lee <chuls.lee@samsung.com>