iotivity.git
5 days ago[IOT-3203] keyUsage digitalSignature bit 61/27261/1 master
Nathan Heldt-Sheller [Wed, 17 Oct 2018 12:26:49 +0000 (05:26 -0700)]
[IOT-3203] keyUsage digitalSignature bit

Per CR 2611, CA and SubCA Certificates may (or may not) include
the keyUsage "digitalSignature" bit.  This change removes that
bit from the list of disallowed bits.

Change-Id: Ib70b838518bf2375be7b4ade9b5ab9d98cb397e9
Signed-off-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
11 days agoProper fix for "Static Analysis issues fixed" 03/27203/1
Vitalii Irkha [Thu, 11 Oct 2018 10:05:20 +0000 (13:05 +0300)]
Proper fix for "Static Analysis issues fixed"

Fixed typo passed parameter of GetDoxmDeviceID in PostOwnershipInformation
Fixed double free issues

Change-Id: I07669049e4ff47176332d69660c4c2de6bb00732
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
2 weeks agoStatic Analysis issues fixed 25/27125/6
Vitalii Irkha [Thu, 4 Oct 2018 15:23:20 +0000 (18:23 +0300)]
Static Analysis issues fixed

Change-Id: I556003eb0babcb08698466bc9acde2790c1d7916
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
3 weeks agochande from SP names to OIDS 49/27049/2
Steven Saunders [Fri, 21 Sep 2018 21:55:44 +0000 (15:55 -0600)]
chande from SP names to OIDS

Change-Id: Idbd71399d008e8a21819b400b1f664977ca5db0f
Signed-off-by: Steven Saunders <s.saunders-contractor@cablelabs.com>
3 weeks agoFixed some typo issues 79/27079/2
Vitalii Irkha [Thu, 27 Sep 2018 15:18:13 +0000 (18:18 +0300)]
Fixed some typo issues

Corrected Error Log statements in provisioningclient

Change-Id: Ife42b22236f90a25161e0ccb276fa3d1ee2871f2
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
3 weeks agoexamples/OCFSecure: Add ARTIK board 77/27077/2
Inho Oh [Mon, 13 Aug 2018 09:52:21 +0000 (18:52 +0900)]
examples/OCFSecure: Add ARTIK board

This patch add the ARTIK board to the list of supported devices.
The blue LED on board (GPIO38) is used for switch resource in the server
program. And the GPIO is controlled by "mraa" library which already used
in the server program.

The "mraa" library is not support the ARTIK board. So to use the raw GPIO
pin number, "raw=true" option is added.

Change-Id: I2004bc473c64189f3cc1010ae76c4cfe757b33f5
Signed-off-by: Inho Oh <webispy@gmail.com>
(cherry picked from commit 912a3a47cae8575030d298a3e67e7fd8472e5636)

3 weeks agoSample application maintenance for OCFSecure 81/26981/2
Rami Alshafi [Wed, 8 Aug 2018 00:46:11 +0000 (17:46 -0700)]
Sample application maintenance for OCFSecure

The DOXM resource in the RFOTM state needs to provide
write permissions to the onboarding tool.
Fixed code indentation formats and improved README

Change-Id: I8909f4b5182488bc01e69b2889cdf3ddeb8f42ab
Signed-off-by: Rami Alshafi <ralshafi@vprime.com>
(cherry picked from commit d23d1287715feb3297691d4f3340966eb5f0f9ef)

3 weeks agoMerge "Merge branch '1.4-rel' (758fc4a)" nhs-test
Mats Wichmann [Tue, 25 Sep 2018 13:47:10 +0000 (13:47 +0000)]
Merge "Merge branch '1.4-rel' (758fc4a)"

3 weeks agoAdd doxygen comments for simulator 93/26593/9
pooja [Wed, 25 Jul 2018 13:29:14 +0000 (18:59 +0530)]
Add doxygen comments for simulator

Change-Id: Icd198cf5bd0ddae84bd6fa29757e6302cded9227
Signed-off-by: pooja <pooja.k@partner.samsung.com>
3 weeks agoAdd doxygen comments for notification 87/26587/11
pooja [Wed, 25 Jul 2018 11:17:53 +0000 (16:47 +0530)]
Add doxygen comments for notification

Change-Id: I0b1ef304a494687e1b53fee0be82b4af56d7326b
Signed-off-by: pooja <pooja.k@partner.samsung.com>
4 weeks agoMerge branch '1.4-rel' (758fc4a) 03/27003/2
Philippe Coval [Fri, 21 Sep 2018 10:28:50 +0000 (12:28 +0200)]
Merge branch '1.4-rel' (758fc4a)

Relate-to:
      I47ae68cbd633f0e8ffb38cde3e1b984e1c8505f5
      Ib4e768c7401247dc9dd4917ff5a611396e8e07a1
      I27bab5b348a4b0c52319447ce52e9ebdf3755628
      Ife04ffe93cd1780b448aa43072d7eba869a672fb
      I9bed4ade3fb12747e35d390b4a4e0339288ff564
      I29a2bafd1d163c4754cc3edcb77c15661399cbeb
      Ib48c441f4e07acbb4d9f74ba070ae427956e4178
      Id680843a04f69090b4ae7554e18d442f093debc7
      I5d43bc1e950811bbabceb1f42fd8cdcae31f87d0

Change-Id: Iaed67e1f8365f4d4cafea3a7cf149a73a7c601a4
Bug: https://jira.iotivity.org/browse/IOT-2453
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
4 weeks ago[IOT-3140] Revert PSK callback at reset 25/27025/2
Aleksey Volkov [Thu, 20 Sep 2018 15:14:09 +0000 (18:14 +0300)]
[IOT-3140] Revert PSK callback at reset

Set default PSK callback after the reset of
secure resources

Change-Id: Ib4e768c7401247dc9dd4917ff5a611396e8e07a1
Signed-off-by: Aleksey Volkov <a.volkov@samsung.com>
4 weeks ago[IOT-3140] Revert PSK callback at reset 23/27023/2 1.4-rel
Aleksey Volkov [Thu, 20 Sep 2018 15:14:09 +0000 (18:14 +0300)]
[IOT-3140] Revert PSK callback at reset

Set default PSK callback after the reset of
secure resources

Change-Id: Ib4e768c7401247dc9dd4917ff5a611396e8e07a1
Signed-off-by: Aleksey Volkov <a.volkov@samsung.com>
4 weeks ago[IOT-3140] Fix roles deinit crash 19/27019/1
Aleksey Volkov [Thu, 20 Sep 2018 11:51:24 +0000 (14:51 +0300)]
[IOT-3140] Fix roles deinit crash

Change-Id: I27bab5b348a4b0c52319447ce52e9ebdf3755628
Signed-off-by: Aleksey Volkov <a.volkov@samsung.com>
4 weeks ago[IOT-3107] Proper SP resource reset 17/27017/1
Aleksey Volkov [Wed, 12 Sep 2018 09:40:47 +0000 (12:40 +0300)]
[IOT-3107] Proper SP resource reset

Reset SP secure resource to mfr defaults:
Add SP resource support to the reset profile in PS
API implementation.

Change-Id: Id680843a04f69090b4ae7554e18d442f093debc7
Signed-off-by: Aleksey Volkov <a.volkov@samsung.com>
4 weeks ago[IOT-3140] Enable ResetSecureResources 15/27015/1
Aleksey Volkov [Mon, 10 Sep 2018 14:16:39 +0000 (17:16 +0300)]
[IOT-3140] Enable ResetSecureResources

Uncomment ResetSecureResources call on transition reset state.
This will return the proper state of the security resources
after reset.

Change-Id: I5d43bc1e950811bbabceb1f42fd8cdcae31f87d0
Signed-off-by: Aleksey Volkov <a.volkov@samsung.com>
4 weeks ago[IOT-3140] Fix roles deinit crash 13/27013/1
Aleksey Volkov [Thu, 20 Sep 2018 11:51:24 +0000 (14:51 +0300)]
[IOT-3140] Fix roles deinit crash

Change-Id: I27bab5b348a4b0c52319447ce52e9ebdf3755628
Signed-off-by: Aleksey Volkov <a.volkov@samsung.com>
4 weeks agoMerge "Merge branch '1.4-rel' (455c136)"
Phil Coval [Thu, 20 Sep 2018 09:26:55 +0000 (09:26 +0000)]
Merge "Merge branch '1.4-rel' (455c136)"

4 weeks agoRD samples need to call OCProcess. 91/26991/2
Todd Malsbary [Mon, 27 Nov 2017 19:30:56 +0000 (11:30 -0800)]
RD samples need to call OCProcess.

Bug: https://jira.iotivity.org/browse/IOT-2846
Change-Id: Ife04ffe93cd1780b448aa43072d7eba869a672fb
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
4 weeks agobuild: Disable MOT by default to align spec 87/24887/3
Philippe Coval [Mon, 17 Jul 2017 17:17:11 +0000 (19:17 +0200)]
build: Disable MOT by default to align spec

An extra build job might be requiered to turn on all features

Bug: https://jira.iotivity.org/browse/IOT-2241
Change-Id: I9bed4ade3fb12747e35d390b4a4e0339288ff564
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Origin: https://gerrit.iotivity.org/gerrit/#/c/21493/
(cherry picked from commit 49d3f8b51d81705933006c968bc32da30ac1c387)

4 weeks ago[IOT-3055] Fix to handle single element of batch 07/26007/12
koushik.girijala [Wed, 27 Jun 2018 09:52:27 +0000 (15:22 +0530)]
[IOT-3055] Fix to handle single element of batch

Response for collection with batch interface should be an array and not
object, This change will fix the case when the collection resource have
to send only one element in response, instead of sending it as array of
one element it sends as single object
As per OCF 2.0 spec , for single element case the response should be an
array even for single element

Change-Id: I29a2bafd1d163c4754cc3edcb77c15661399cbeb
Signed-off-by: koushik.girijala <g.koushik@samsung.com>
4 weeks ago[IOT-3125] OTM between IoTivity and Iotivity-Lite 05/26805/9
Vitalii Irkha [Mon, 20 Aug 2018 15:45:12 +0000 (18:45 +0300)]
[IOT-3125] OTM between IoTivity and Iotivity-Lite

IoTivity Provisioning Client initiates OTM with IoTivity-Lite server

Change-Id: Ie1b1fed631541d39d0243cee02f6aca3a65a83fe
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
5 weeks agobridging: build: Remove duplicated -Werror 71/26971/2
Philippe Coval [Fri, 14 Sep 2018 15:32:31 +0000 (17:32 +0200)]
bridging: build: Remove duplicated -Werror

Should rely only only ./build_common/

More cleanup to come later

Change-Id: Ib48c441f4e07acbb4d9f74ba070ae427956e4178
Signed-off-by: Philippe Coval <p.coval@samsung.com>
5 weeks ago[IOT-3107] Proper SP resource reset 53/26953/2
Aleksey Volkov [Wed, 12 Sep 2018 09:40:47 +0000 (12:40 +0300)]
[IOT-3107] Proper SP resource reset

Reset SP secure resource to mfr defaults:
Add SP resource support to the reset profile in PS
API implementation.

Change-Id: Id680843a04f69090b4ae7554e18d442f093debc7
Signed-off-by: Aleksey Volkov <a.volkov@samsung.com>
5 weeks ago[IOT-3140] Enable ResetSecureResources 35/26935/2
Aleksey Volkov [Mon, 10 Sep 2018 14:16:39 +0000 (17:16 +0300)]
[IOT-3140] Enable ResetSecureResources

Uncomment ResetSecureResources call on transition reset state.
This will return the proper state of the security resources
after reset.

Change-Id: I5d43bc1e950811bbabceb1f42fd8cdcae31f87d0
Signed-off-by: Aleksey Volkov <a.volkov@samsung.com>
5 weeks agoBangkok SP updates 65/26965/1
Steven Saunders [Thu, 13 Sep 2018 21:12:59 +0000 (15:12 -0600)]
Bangkok SP updates

Change-Id: Ia14bf12669c385602886be9850ae719e85dd1980
Signed-off-by: Steven Saunders <s.saunders-contractor@cablelabs.com>
5 weeks agoMerge branch '1.4-rel' (455c136) 07/26807/2
Philippe Coval [Thu, 13 Sep 2018 14:34:20 +0000 (16:34 +0200)]
Merge branch '1.4-rel' (455c136)

Relate-to:
      I923216cf283e97eada4b600d5ebf8f5360c9e317
      I3de75a1485c47fd54ea46da2f3079a6e5fae8084
      I6e9296de9b22858f831ee503587fda51323ac902
      Iead0efa96b95f026b6a5b20731c8069f688c9483
      Ib4f04677cdc6951a0a9505efbd6ab47a7a79288b
      Ic88f9bae3137c439518901084d77285ace964d99
      I6b6320e8a6444a43c6400527f2f982a39a3d9128
      Ibaf2c7d0b9daad7248b2f226da164a7a301dc526
      I4b820e50158e34a94d84195e4979ada6fefff190
      I91c44d9e3e8af731175337bc80afa13a44222d6c
      I5c10141d76c1d2a1ce3efc656990a628dfd6a246

Change-Id: Ie30199897cd6fe64e2fd7a66126a3c87d25d9c1d
Bug: https://jira.iotivity.org/browse/IOT-2453
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
5 weeks agoUpdate /sp to latest CR text 51/26951/1
Nathan Heldt-Sheller [Fri, 3 Aug 2018 05:05:42 +0000 (22:05 -0700)]
Update /sp to latest CR text

The Security WG approved a new version of the CR (v14) that
reflects several changes in the /sp Resource.  From a Server
perspective the main impact is that the Property names were
changed, and support for all 4 defined Profiles is required
for CTT validation.

Change-Id: Ibaf2c7d0b9daad7248b2f226da164a7a301dc526
Signed-off-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
6 weeks agobuild: Remove duplicated -Werror 13/26813/5
Philippe Coval [Wed, 22 Aug 2018 07:32:49 +0000 (09:32 +0200)]
build: Remove duplicated -Werror

Should rely only only ./build_common/

More cleanup to come later

Change-Id: I3de75a1485c47fd54ea46da2f3079a6e5fae8084
Origin: https://gerrit.iotivity.org/gerrit/#/c/26833/
Signed-off-by: Philippe Coval <p.coval@samsung.com>
(cherry picked from commit e26d8059b6c3eff4e6001cf6f9fa9355feefe1e0)

6 weeks agoAdd doxygen comments for easy-setup 55/26655/7
pooja [Tue, 31 Jul 2018 09:32:23 +0000 (15:02 +0530)]
Add doxygen comments for easy-setup

Change-Id: I0b0870dca6ce6c9b3813e5dbf1e263beac785075
Signed-off-by: pooja <pooja.k@partner.samsung.com>
6 weeks agoIotivity hangup 53/26853/4
Jozef Kralik [Thu, 30 Aug 2018 07:30:47 +0000 (09:30 +0200)]
Iotivity hangup

- fix for mutex deadlock in case of simualetionesly send & recieve of tcp/tls connections

Bug: https://jira.iotivity.org/browse/IOT-3075
Bug: https://jira.iotivity.org/browse/IOT-3059
Change-Id: I6e9296de9b22858f831ee503587fda51323ac902
Signed-off-by: Jozef Kralik <jozef.kralik@kistler.com>
6 weeks agoadd a function to swap elements in a u_arraylist 51/26851/2
Jozef Kralik [Thu, 30 Aug 2018 07:27:40 +0000 (09:27 +0200)]
add a function to swap elements in a u_arraylist

- u_arraylist_swap provides swap of elements in a array list

Bug: https://jira.iotivity.org/browse/IOT-3075
Bug: https://jira.iotivity.org/browse/IOT-3059
Change-Id: Iead0efa96b95f026b6a5b20731c8069f688c9483
Signed-off-by: Jozef Kralik <jozef.kralik@kistler.com>
6 weeks agointroduce a refcounter for data 49/26849/2
Jozef Kralik [Thu, 30 Aug 2018 07:23:57 +0000 (09:23 +0200)]
introduce a refcounter for data

- provides interface and implementation of reference counter
- for example of using look to:
  resource/c_common/oc_refcounter/test/linux/oc_refcounter_tests.cpp

Bug: https://jira.iotivity.org/browse/IOT-3075
Bug: https://jira.iotivity.org/browse/IOT-3059
Change-Id: Ib4f04677cdc6951a0a9505efbd6ab47a7a79288b
Signed-off-by: Jozef Kralik <jozef.kralik@kistler.com>
6 weeks agoUpdate vagrant build 17/26817/3
Mats Wichmann [Wed, 22 Aug 2018 18:46:51 +0000 (12:46 -0600)]
Update vagrant build

Things a bit out of date, general update to add ubuntu 18.04
stanza, newer extlibs pkg, etc.

Change-Id: I2d8526f8ea32283bb05db872610c63494b5c597f
Signed-off-by: Mats Wichmann <mats@linux.com>
6 weeks agoAdd valgrind builders to auto_build.py 45/26845/2
Mats Wichmann [Wed, 29 Aug 2018 22:46:59 +0000 (16:46 -0600)]
Add valgrind builders to auto_build.py

For possible future CI use, and for developer use, add
build options which run a memory checker while executing
unit tests (this was recently disabled as the default).

Some script refactoring as well, and updating of the
help message.

Change-Id: I8ddb0729854af1fd9e98d5e22034d94e5d1c5f08
Signed-off-by: Mats Wichmann <mats@linux.com>
6 weeks agobuild: Remove duplicated -Werror 33/26833/3
Philippe Coval [Wed, 22 Aug 2018 07:32:49 +0000 (09:32 +0200)]
build: Remove duplicated -Werror

Should rely only only ./build_common/

More cleanup to come later

Change-Id: I3de75a1485c47fd54ea46da2f3079a6e5fae8084
Origin: https://gerrit.iotivity.org/gerrit/#/c/26833/
Signed-off-by: Philippe Coval <p.coval@samsung.com>
6 weeks agotizen: Prepare before importing snapshot 33/25833/8
Philippe Coval [Thu, 14 Jun 2018 07:04:21 +0000 (09:04 +0200)]
tizen: Prepare before importing snapshot

Change-Id: I2f0c11cabdf14ee7c2287a8d9774be59da46cef4
Signed-off-by: Philippe Coval <p.coval@samsung.com>
7 weeks agoAdd doxygen comments to connectivity module 81/26581/8
pooja [Wed, 25 Jul 2018 10:19:57 +0000 (15:49 +0530)]
Add doxygen comments to connectivity module

Change-Id: Id2820a733503eb05861cf354ae3ea6a2a81a6736
Signed-off-by: pooja <pooja.k@partner.samsung.com>
7 weeks agoPlug resource leaks in acl test 55/24655/6
Mats Wichmann [Sat, 14 Apr 2018 14:52:11 +0000 (08:52 -0600)]
Plug resource leaks in acl test

Change-Id: I6b28e507ab3a7d03797da07fb0cc8663918e39f8
Signed-off-by: Mats Wichmann <mats@linux.com>
7 weeks agoFix possible uninit accesses 29/24229/6
Mats Wichmann [Wed, 15 Nov 2017 17:17:45 +0000 (10:17 -0700)]
Fix possible uninit accesses

Change-Id: Ib3cbbae66326f40ade6ff4e0e7960e8698c4c37c
Signed-off-by: Mats Wichmann <mats@linux.com>
8 weeks agoBuild extlibs libs straight to destination 57/26157/9
Mats Wichmann [Wed, 4 Jul 2018 20:17:05 +0000 (14:17 -0600)]
Build extlibs libs straight to destination

As described in IOT-1986, Windows builders (in particular) have occasional
problems with multi-process builds - that is -j with a number larger
than one.  Libraries are built with a {Static,Shared}Library() call which
builds in the directory where the SConscript is executing, following
which we "install" into the top-level directory, where link instructions
will find them (the top dir is always in LIBPATH), and where tests and
other binaries expect to find them. For example, from these instructions:

  static_libmbedx509 = mbex509_env.StaticLibrary('mbedx509', mbeX509_src)
  mbex509_env.InstallTarget(static_libmbedx509, 'mbedx509')

For that, we see this abridged sequence from a Linux build log:

  scons: building `extlibs/mbedtls/libmbedx509.a' because it doesn't exist
  Preparing target extlibs/mbedtls/libmbedx509.a...
  Building extlibs/mbedtls/libmbedx509.a with action:
    $AR $ARFLAGS $TARGET $SOURCES
  Building extlibs/mbedtls/libmbedx509.a with action:
    $RANLIB $RANLIBFLAGS $TARGET
  ranlib extlibs/mbedtls/libmbedx509.a
  scons: building `out/linux/x86_64/debug/libmbedx509.a' because it doesn't exist
  Preparing target out/linux/x86_64/debug/libmbedx509.a...
  Building out/linux/x86_64/debug/libmbedx509.a with action:
    Copy("$TARGET", "$SOURCE")
  Copy("out/linux/x86_64/debug/libmbedx509.a", "extlibs/mbedtls/libmbedx509.a")

The actual target that matters for dependency computation is the result
of the library build, and that target is "done" when the StaticLibrary
call is complete, so other processes which depend on that target can be
released by the SCons Taskmaster to run at that point.  File copies are
not necessarily atomic on Windows Python, and worse, the build-plus-copy
is certainly not atomic, so sometimes one of the released processes
finds the "installed" library is not there (yet) when it tries to
link to it.

At least one of the sconscripts in extlibs has tried to mitigate this
problem by not doing the InstallTarget(), and instead pointing clients
of the library right to the directory it is built in by adding to the
LIBPATH construction variable. This is also done for a couple of libs in
build_common/windows/SConscript. This change is the other side of the same
coin - instead of pointing builds to a bunch of places where a library was
built, just build straight into the location where we want the library,
still avoiding the copy step.  In other words, instead of saying:

  StaticLibrary(target='foo', source=foo_src)
  env.AppendUniqe(LIBPATH, this-dir)

we can say:

  StaticLibrary(target='<somepath>/foo', source=foo_src)

Sorry for the long message - the upshot is, to test this idea, start
by converting the extlibs libraries to build straight into the place we
want them; if it works out, convert the others later.

Change-Id: I81858f221a2e0a0ee913dcd452fc607fcf79e7b2
Signed-off-by: Mats Wichmann <mats@linux.com>
Bug: https://jira.iotivity.org/browse/IOT-1986

2 months agoAdd doxygen comments for resource-encapsulation 61/26661/3
pooja [Tue, 31 Jul 2018 10:11:18 +0000 (15:41 +0530)]
Add doxygen comments for resource-encapsulation

Change-Id: I821c17f18eb1cc3c2133a97344f0bbbd2c8d90d7
Signed-off-by: pooja <pooja.k@partner.samsung.com>
2 months agoAdd doxygen comments for scene-manager 59/26659/4
pooja [Tue, 31 Jul 2018 10:08:33 +0000 (15:38 +0530)]
Add doxygen comments for scene-manager

Change-Id: Ifa897b017f54a5149df3c6be533ab5525049c092
Signed-off-by: pooja <pooja.k@partner.samsung.com>
2 months agovalgrind default switched to off. 57/26757/2
Mats Wichmann [Sun, 12 Aug 2018 13:55:19 +0000 (07:55 -0600)]
valgrind default switched to off.

A construction variable, VALGRIND_CHECKS, is added to the environment if
the target supports valgrind (currently that list is is linux and darwin).
It defaults to True.  If TEST mode is on, then the various unit test
locations will call the run_tests() tool which builds a command line
to run the test. If two conditions are met - (1) a pathname indicating
where to store the valgrind output is passed as the second argument
and (2) VALGRIND_CHECKS is set in the environment and evaluates True,
then that command line will be written to run the test under valgrind
control. In practical terms, This means the (linux) unit_tests builder
will run tests under valgrind. This happens on every patch submitted
to Gerrit, as part of the Jenkins CI setup.

At the moment, valgrind reports are not actively pursued by developers,
and are proving unstable (that is the terminology used by the Jenkins
valgrind report plugin itself, indicating that results differ from run
to run). Many patches have been stalled by the valgrind report plugin
marking the unit_tests build a failure, even if the patch had no
impact at all on the run.

Until this situation improves, flip the VALGRIND_CHECKS default to
False. Any developer can set up their own valgrind run at any time
by passing TEST=1 VALGRIND_CHECKS=1 to scons.

The run_test docstring is reworded.

Change-Id: I2519ab8771e2a9e299853a0e1574a10568db68a2
Signed-off-by: Mats Wichmann <mats@linux.com>
2 months agoresource-encapsulation: Install unit tests 43/26543/3
Philippe Coval [Fri, 23 Mar 2018 10:46:15 +0000 (11:46 +0100)]
resource-encapsulation: Install unit tests

Bug: https://jira.iotivity.org/browse/IOT-524
Change-Id: Ic88f9bae3137c439518901084d77285ace964d99
Origin: https://gerrit.iotivity.org/gerrit/#/c/26515/
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2 months agoAdd unused markers if MULTIPLE_OWNER is undefined 75/24875/2
Mats Wichmann [Mon, 23 Apr 2018 16:18:47 +0000 (10:18 -0600)]
Add unused markers if MULTIPLE_OWNER is undefined

Several functions in one source file have code which is bracketed
by #ifdef MULTIPLE_OWNER. If not defined, these trigger warnings
about unused parameters; since warnings now cause error, this is
fatal. Add OC_UNUSED() wrappings for these.

Change-Id: I6b6320e8a6444a43c6400527f2f982a39a3d9128
Signed-off-by: Mats Wichmann <mats@linux.com>
(cherry picked from commit d0c36f5b96caac409dcde289a0bb1b037fb54d03)

2 months agoMerge "Merge branch '1.4-rel' (44ce6a7) aka 2.0.0"
Phil Coval [Mon, 20 Aug 2018 17:17:35 +0000 (17:17 +0000)]
Merge "Merge branch '1.4-rel' (44ce6a7) aka 2.0.0"

2 months agoupdate outdated dat file 19/25919/4
George Nash [Fri, 22 Jun 2018 18:45:43 +0000 (11:45 -0700)]
update outdated dat file

Change-Id: Iaccf50a0a8f452c56d0c960619d7d028eaf28d08
Signed-off-by: George Nash <george.nash@intel.com>
2 months agoBuild unit tests for IP transport only 11/24111/17
Mats Wichmann [Thu, 8 Feb 2018 14:37:24 +0000 (07:37 -0700)]
Build unit tests for IP transport only

"./auto_build.sh unit_tests" is used by the CI system for the unit test
run (the .sh just invokes auto_build.py).  Since the CI system is virtual,
it does not have bluetooth hardware or NFS.  Initializing the stack
on Linux will try to make sure the selected transports are connected,
and Bluetooth will time out.  Depending on the configuration of the
distro in question, the dbus connection can time out in 2.5 seconds all
the way up to 25. This slows down the "stacktests" test and risks it
failing due to the deadman timer firing (the short timeout is currently
5 seconds). Build this configuration for the IP transport only.

The behavior of the dbus connection varies from run to run it seems,
(and as noted, newer Linux distributions have a much longer timeout,
so if you have to pay the timeout, test time goes up accordingly), but
picking from a log of the current CI unit_test builder (Ubuntu 12.04),
one instance of the entire unit test run took:

96 tests from 17 test cases ran. (4851 ms total)

Locally, removing the effort to touch bluetooth brings the whole unit
test time down well under a second on a system that does not actually
have bluetooth, similar to the case of the CI builders.

Bug: https://jira.iotivity.org/browse/IOT-2518
Change-Id: I453e00b0d829d5caf83b785011970db38b1a9db1
Signed-off-by: Mats Wichmann <mats@linux.com>
2 months agoUpdate /sp to latest CR text 87/26687/3
Nathan Heldt-Sheller [Fri, 3 Aug 2018 05:05:42 +0000 (22:05 -0700)]
Update /sp to latest CR text

The Security WG approved a new version of the CR (v14) that
reflects several changes in the /sp Resource.  From a Server
perspective the main impact is that the Property names were
changed, and support for all 4 defined Profiles is required
for CTT validation.

Change-Id: Ibaf2c7d0b9daad7248b2f226da164a7a301dc526
Signed-off-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
2 months agoplugins: Use common params for Werror flag 93/26493/2
Philippe Coval [Sun, 22 Jul 2018 06:58:24 +0000 (08:58 +0200)]
plugins: Use common params for Werror flag

This flag should be used at project level using build_common settings

For reference the build issue was oberved on Yocto's poky master:

    bridging/plugins/lifx_plugin/lifx_objects/lifx.cpp:83:53:\
    required from here
    extlibs/rapidjson/rapidjson/include/rapidjson/document.h:1635:24: \
    error: 'void* memcpy(void*, const void*, size_t)' \
    writing to an object of type \
    'class rapidjson::GenericValue<rapidjson::UTF8<> >' \
    with no trivial copy-assignment; \
    use copy-assignment or copy-initialization instead \
    [-Werror=class-memaccess]
    std::memcpy(data_.a.elements, values, count * sizeof(GenericValue));
    (...)

Change-Id: I4b820e50158e34a94d84195e4979ada6fefff190
Signed-off-by: Philippe Coval <p.coval@samsung.com>
2 months agonotification: Install unit tests 45/26545/4
Philippe Coval [Fri, 23 Mar 2018 10:45:56 +0000 (11:45 +0100)]
notification: Install unit tests

Bug: https://jira.iotivity.org/browse/IOT-524
Origin: https://gerrit.iotivity.org/gerrit/#/c/26509/
Change-Id: I91c44d9e3e8af731175337bc80afa13a44222d6c
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2 months agotizen: Enable MULTIPLE_OWNER=1 for EasySetup 85/24885/6
Philippe Coval [Wed, 17 May 2017 10:36:51 +0000 (12:36 +0200)]
tizen: Enable MULTIPLE_OWNER=1 for EasySetup

Bug: https://jira.iotivity.org/browse/IOT-2241
Origin: https://gerrit.iotivity.org/gerrit/#/c/20331/
Change-Id: I5c10141d76c1d2a1ce3efc656990a628dfd6a246
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2 months agoplugins: Relocate tests 23/26523/6
Philippe Coval [Sat, 24 Mar 2018 11:31:28 +0000 (12:31 +0100)]
plugins: Relocate tests

Bug: https://jira.iotivity.org/browse/IOT-524
Origin: https://gerrit.iotivity.org/gerrit/#/c/26523/
Change-Id: I49ddaf5b2dc1123ae79b37d9df3c7dd4d29cc820
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
(cherry picked from commit 50253f87bc3be307ad6f37c9aad16c2557e0e99a)

2 months agonotification: Install unit tests 09/26509/4
Philippe Coval [Fri, 23 Mar 2018 10:45:56 +0000 (11:45 +0100)]
notification: Install unit tests

Bug: https://jira.iotivity.org/browse/IOT-524
Origin: https://gerrit.iotivity.org/gerrit/#/c/26509/
Change-Id: I91c44d9e3e8af731175337bc80afa13a44222d6c
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2 months agoMerge branch '1.4-rel' (44ce6a7) aka 2.0.0 55/26755/1
Philippe Coval [Sat, 11 Aug 2018 07:59:14 +0000 (09:59 +0200)]
Merge branch '1.4-rel' (44ce6a7) aka 2.0.0

Relate-to:
      I673cc882862dc99c39623316f0ecdb68d4f69afe
      I92948b4039e464cd2ee02dcdf236a57942bf1992
      I8be9e04196558f81a584bd440b4cdb4aaa01e130
      I160789e7def32ef8022729c7479c16d7843a948f
      I49ddaf5b2dc1123ae79b37d9df3c7dd4d29cc820

Change-Id: I44ce6a7e6e66d593f4947340b863f118ab1b4ed1
Bug: https://jira.iotivity.org/browse/IOT-2453
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2 months agoMerge "Merge branch '1.4-rel' (1d3461a)"
Phil Coval [Sat, 11 Aug 2018 07:57:22 +0000 (07:57 +0000)]
Merge "Merge branch '1.4-rel' (1d3461a)"

2 months ago[IOT-3125] OTM error with IoTivity Lite 39/26739/3
Vitalii Irkha [Wed, 8 Aug 2018 15:40:51 +0000 (18:40 +0300)]
[IOT-3125] OTM error with IoTivity Lite

Provisioning Client send rowneruuid property during only RFOTM state
accordingly to OCF spec.
Also fixed some insignificant issues.

Change-Id: Ib82e652b8b2d7a159eec8d41c859fa88eed117d5
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
2 months ago[IOT-3096] Revert Fix for TCP IPv6 socket 53/26653/3
Koushik4082 [Tue, 31 Jul 2018 04:51:22 +0000 (10:21 +0530)]
[IOT-3096] Revert Fix for TCP IPv6 socket

Revert changes

Change-Id: I92948b4039e464cd2ee02dcdf236a57942bf1992
Signed-off-by: Koushik4082 <g.koushik@samsung.com>
2 months agotizen: Support armv7l EABI 15/26415/3
Philippe Coval [Thu, 14 Jun 2018 11:49:27 +0000 (13:49 +0200)]
tizen: Support armv7l EABI

Bug: https://jira.iotivity.org/browse/IOT-2994
Change-Id: I8be9e04196558f81a584bd440b4cdb4aaa01e130
Origin: https://gerrit.iotivity.org/gerrit/#/c/26077/
Signed-off-by: Philippe Coval <p.coval@samsung.com>
2 months agocomments for resource-container and scene-manager 91/26591/3
pooja [Wed, 25 Jul 2018 13:23:21 +0000 (18:53 +0530)]
comments for resource-container and scene-manager

Change-Id: Ie61b6db9e929883027c10c313e0e947255fa2818
Signed-off-by: pooja <pooja.k@partner.samsung.com>
2 months agoresource: Fix delete issue in FridgeServer sample 01/22101/20
jihwan.seo [Tue, 30 May 2017 05:10:57 +0000 (14:10 +0900)]
resource: Fix delete issue in FridgeServer sample

Bug: https://jira.iotivity.org/browse/IOT-2379
Change-Id: I7773a60a0ed58bb51cd9be6af80837f04d89d276
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
2 months agoAdd doxygen comments for resource-encapsulation 89/26589/3
pooja [Wed, 25 Jul 2018 12:15:53 +0000 (17:45 +0530)]
Add doxygen comments for resource-encapsulation

Change-Id: I87036ea9adcab811e16ea71f4d4d4235780fea48
Signed-off-by: pooja <pooja.k@partner.samsung.com>
2 months agocoap-http-proxy: Relocate tests 49/26549/4
Philippe Coval [Sat, 24 Mar 2018 11:31:28 +0000 (12:31 +0100)]
coap-http-proxy: Relocate tests

Bug: https://jira.iotivity.org/browse/IOT-524
Origin: https://gerrit.iotivity.org/gerrit/#/c/26521/
Change-Id: I160789e7def32ef8022729c7479c16d7843a948f
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2 months agoplugins: Relocate tests 41/26541/3
Philippe Coval [Sat, 24 Mar 2018 11:31:28 +0000 (12:31 +0100)]
plugins: Relocate tests

Bug: https://jira.iotivity.org/browse/IOT-524
Origin: https://gerrit.iotivity.org/gerrit/#/c/26523/
Change-Id: I49ddaf5b2dc1123ae79b37d9df3c7dd4d29cc820
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2 months agoMerge branch '1.4-rel' (1d3461a) 81/26481/2
Philippe Coval [Mon, 30 Jul 2018 08:14:38 +0000 (10:14 +0200)]
Merge branch '1.4-rel' (1d3461a)

Relate-to:
      Iab61b96720daa544f502a2f3598041085b775954
      I5ec710a552305e692a16d17f5bac5accc171c641
      I90f971ec1f51d7a2b7dd829c3ebd6fbd61f90c77
      Ifff1cb0c043d3ea089bfef5e1568c57edfa86c89
      I7ed76995ace68ea16e13f083b32606a1b63a2cd6
      I0cf7091c124548504e44f614da69a5d61d702002
      I8e046da345b18e5731939c9cb5e5832fa33786b7
      I8e046da345b18e5731939c9cb5e5832fa33786b6
      I2d7c4cba8408c97f2c8eb959fb3c69473e9f117a
      I1bca35ab9c516f7a0850dd209e043048d9194007
      I2e1afd6201f2047226ff5dc7911f736a240920f3
      Ifc7d3179993ad3a10cf866f0ae648c7cd4fd00c7
      Icec0d1a9c5cbf20f0adbc32745486333766234e7
      I35083f5e240ecbc6d1c731642b5c8124c5283712

Change-Id: Ifbfca9065c08f43fd8f95da43f2da347754399ce
Bug: https://jira.iotivity.org/browse/IOT-2453
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
2 months agoresource-encapsulation: Bypass test for gcc-7 47/26547/3
Philippe Coval [Sun, 22 Jul 2018 09:07:15 +0000 (11:07 +0200)]
resource-encapsulation: Bypass test for gcc-7

This should be reworked soon or later

Change-Id: I5ec710a552305e692a16d17f5bac5accc171c641
Origin: https://gerrit.iotivity.org/gerrit/#/c/26503/
Signed-off-by: Philippe Coval <p.coval@samsung.com>
2 months ago[IOT-3096] Fix for connecting to TCP IPv6 socket 95/26295/7
koushik.girijala [Tue, 10 Jul 2018 15:02:49 +0000 (20:32 +0530)]
[IOT-3096] Fix for connecting to TCP IPv6 socket

Change-Id: I90f971ec1f51d7a2b7dd829c3ebd6fbd61f90c77
Signed-off-by: koushik.girijala <g.koushik@samsung.com>
2 months agoAdd doxygen comments for easy-setup 85/26585/2
pooja [Wed, 25 Jul 2018 10:43:28 +0000 (16:13 +0530)]
Add doxygen comments for easy-setup

Change-Id: Ia7ff5ffee691995867209259c5d6b70462425b52
Signed-off-by: pooja <pooja.k@partner.samsung.com>
2 months agombedtls: remove .git after prepared for tizen 85/26385/2
Philippe Coval [Thu, 14 Jun 2018 07:21:37 +0000 (09:21 +0200)]
mbedtls: remove .git after prepared for tizen

Change-Id: Ifff1cb0c043d3ea089bfef5e1568c57edfa86c89
Origin: https://gerrit.iotivity.org/gerrit/#/c/25835/
Signed-off-by: Philippe Coval <p.coval@samsung.com>
(cherry picked from commit 5ae3ade733f273da06c86b0260d67dadec06703f)

2 months ago[IOT-3023] Easy Setup Missing Library for x86 73/26573/3
Larry Sachs [Tue, 24 Jul 2018 20:44:38 +0000 (13:44 -0700)]
[IOT-3023] Easy Setup Missing Library for x86

The libeasysetup-jni.so and libESMediatorRich.so libraries
are now being placed in the correct directories for inclusion
into the apk file for x86 and x86_64 builds.

Change-Id: I7ed76995ace68ea16e13f083b32606a1b63a2cd6
Signed-off-by: Larry Sachs <larry.j.sachs@intel.com>
2 months agodoc: Install chrpath 13/26413/2
Philippe Coval [Tue, 17 Jul 2018 22:58:20 +0000 (07:58 +0900)]
doc: Install chrpath

Bug: https://jira.iotivity.org/browse/IOT-3120
Change-Id: I0cf7091c124548504e44f614da69a5d61d702002
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
3 months agoAdd libocsrm to tizen build 27/26427/2
Mushfiqul Islam Antu [Wed, 18 Jul 2018 11:19:27 +0000 (17:19 +0600)]
Add libocsrm to tizen build

Added ocsrm library as target install library

Bug: https://jira.iotivity.org/browse/IOT-3076
Change-Id: I8e046da345b18e5731939c9cb5e5832fa33786b7
Signed-off-by: Mushfiqul Islam Antu <i.mushfiq@samsung.com>
3 months agoImport less of environment for Android/gradle 81/26181/3
Mats Wichmann [Thu, 5 Jul 2018 13:34:38 +0000 (07:34 -0600)]
Import less of environment for Android/gradle

[In development pending answers to some of the below]

As noted in IOT-2559, the Gradle builder fails unless some of the
environment is passed. Since we didn't know what it needed, the whole env
was passed. This change trims that down to just two environment variables,
JAVA_HOME and ANDROID_HOME, which seems to be sufficient (but see
question following).

This change was only for the top-level java/SConscript, and works for
files which Import('jdk_env'). Note the script under service/ do not do
that import, and set up their own environment using these steps:

os.environ['ANDROID_HOME'] = env.get('ANDROID_HOME')
os.environ['ANDROID_NDK_HOME'] = env.get('ANDROID_NDK')
...
jdk_env = Environment(ENV=os.environ)

So this leaves two questions: should ANDROID_NDK_HOME also be set in the
main java SConscript (android case)?  should these scripts in service/
be modified in a similar way to to also set less env?
That list of scripts is:

service/easy-setup/mediator/richsdk/android/SConscript
service/easy-setup/sampleapp/mediator/android/SConscript
service/notification/android/SConscript
service/notification/examples/android/NotiConsumerExample/SConscript
service/notification/examples/android/NotiProviderExample/SConscript
service/resource-container/android/SConscript
service/resource-encapsulation/android/SConscript

Another question not directly part of this patch but noticed while looking
at it: in java/SConscript the Gradle builder is defined, then redefined
using a different syntax.  The first is for building library/API code,
the second for examples.  Since other scripts import the environment
which defines this builder, that doesn't seem like a really great idea
although it works as things are currently structures. Wouldn't it
be better to define two distinct builders?

Bug: https://jira.iotivity.org/browse/IOT-2559
Change-Id: Ib7bafb1ef2b24491718020e497ddeabcc87b44b2
Signed-off-by: Mats Wichmann <mats@linux.com>
3 months agoMerge "Merge branch '1.4-rel' (2116f2d)"
Nathan Heldt-Sheller [Sun, 15 Jul 2018 17:52:45 +0000 (17:52 +0000)]
Merge "Merge branch '1.4-rel' (2116f2d)"

3 months agobuild: Remove RPATH on install using chrpath 43/26043/4 1.4.0-RC3 2.0.0 2.0.0-RC1
Philippe Coval [Fri, 24 Nov 2017 22:08:00 +0000 (23:08 +0100)]
build: Remove RPATH on install using chrpath

Note to system admin please install the package on infrastructure

This is useful for ARTIK7 support on fedora-24

Bug: https://jira.iotivity.org/browse/IOT-524
Change-Id: I8e046da345b18e5731939c9cb5e5832fa33786b6
Origin: https://gerrit.iotivity.org/gerrit/#/c/23449/
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
(cherry picked from commit dd22384162f1f744e33f144e1903638243f3dffa)

3 months agoFix SCons double target in cloud 73/26173/3
Mats Wichmann [Thu, 5 Jul 2018 12:44:39 +0000 (06:44 -0600)]
Fix SCons double target in cloud

The cloud scsonscript was called twice, once in normal flow
and once from the example dir. This led to complaints that
targets were multiply defined.  The call from the example
dir is not needed, since the scons run is just one big
collection anyway, so removed.

Change-Id: Iefd57680a8921dedac741ef73c8d67cf0caa3876
Signed-off-by: Mats Wichmann <mats@linux.com>
3 months ago[IOT-2234] Fix libcoap configure for Windows UWP 67/26067/4
Mats Wichmann [Sat, 30 Jun 2018 23:41:33 +0000 (17:41 -0600)]
[IOT-2234] Fix libcoap configure for Windows UWP

The libcoap sconscript has a special case for Windows UWP because it
did not configure right. The problem is the list of libraries set by the
Windows build_common script is cleared before running the configure test,
and that is not the right answer for UWP, which needs one particular
library in order to access the standard Windows library functions.
Rather than building the exact knowledge into this script, the required
list is saved in the Windows build script, and retrieved here for use
for the UWP platform.

Bugs: https://jira.iotivity.org/browse/IOT-2234
Change-Id: I70016d81c5d51c7454b1794280e12f5574a5fd41
Signed-off-by: Mats Wichmann <mats@linux.com>
3 months agotinycbor: Remove .git after prepared for tizen 35/26235/2
Philippe Coval [Thu, 14 Jun 2018 00:39:04 +0000 (02:39 +0200)]
tinycbor: Remove .git after prepared for tizen

Bug: https://jira.iotivity.org/browse/IOT-1745
Change-Id: I2d7c4cba8408c97f2c8eb959fb3c69473e9f117a
Origin: https://gerrit.iotivity.org/gerrit/#/c/26075/
Signed-off-by: Philippe Coval <p.coval@samsung.com>
(cherry picked from commit 17d3a5661a87c35af73bb0c979bad43ffa587ddd)

3 months ago[IOT-3108] Disabled identity check for MFG OTM 87/26087/2
Oleksandr Andrieiev [Mon, 2 Jul 2018 11:01:48 +0000 (14:01 +0300)]
[IOT-3108] Disabled identity check for MFG OTM

Bug: https://jira.iotivity.org/browse/IOT-3108
Change-Id: I1bca35ab9c516f7a0850dd209e043048d9194007
Signed-off-by: Oleksandr Andrieiev <o.andrieiev@samsung.com>
3 months agobuild: Update version to 2.0.0 81/26081/4
Philippe Coval [Mon, 2 Jul 2018 07:51:28 +0000 (09:51 +0200)]
build: Update version to 2.0.0

I wasnt aware about the 2.0-rel but I saw it was changed elsewher
and decided it should be consistent:

May be squashed in:

https://gerrit.iotivity.org/gerrit/#/c/26031/2/resource/csdk/include/octypes.h

5165b2baeb4b667aa0a9768f5f0ae9bd3bfb2a9f

Bug: https://jira.iotivity.org/browse/IOT-1745
Origin: https://gerrit.iotivity.org/gerrit/#/c/26081/
Change-Id: I2e1afd6201f2047226ff5dc7911f736a240920f3
Signed-off-by: Philippe Coval <p.coval@samsung.com>
3 months agoignore: generated files from debian 79/25879/4
Philippe Coval [Wed, 18 Apr 2018 16:49:01 +0000 (18:49 +0200)]
ignore: generated files from debian

Change-Id: Ifc7d3179993ad3a10cf866f0ae648c7cd4fd00c7
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
(cherry picked from commit 7e749393f68f56cf7fb23d46f086a9728d3dd8f9)

3 months agoFix and clean up libcoap build 15/26215/2
Mats Wichmann [Fri, 6 Jul 2018 13:27:51 +0000 (07:27 -0600)]
Fix and clean up libcoap build

Most signficant change: when upstream libcoap is used (always true for
Windows), do "git checkout" even if the desired tag is already in the
repo, this should fix the case where the checkout is not up to date but
the repo is, so no checkout is done.

Minor changes:

* The forked-coap case is moved to the top of if clauses for readability
  (before there might have been dozens of lines, then else: followed by
  two lines)
* A bug where PREFIX rather than LIBPREFIX was fetched from the
  construction environment is fixed.
* One of the config file names was simplified a bit.
* The Glob call to determine source files to build is now wrapped in a
  try block, the current Tizen SCons is so old it does not support the
  "exclude" attribute.
* A check for the Tizen case ("don't use git commands in sconscript")
  is added.
* Comment updates

Change-Id: Icec0d1a9c5cbf20f0adbc32745486333766234e7
Signed-off-by: Mats Wichmann <mats@linux.com>
3 months ago[IOT-3098] create Resource as OC_SECURE by default 87/26187/3
Nathan Heldt-Sheller [Thu, 5 Jul 2018 23:14:30 +0000 (16:14 -0700)]
[IOT-3098] create Resource as OC_SECURE by default

The current behavior of OCCreateResource() is to create an unsecure
Resource by default.  However it should be flipped, so that creating
an unsecure Resource requires explicit intention.  This may fix
IOT-3098, where several Resources are unsecure that should not be.

Change-Id: I35083f5e240ecbc6d1c731642b5c8124c5283712
Signed-off-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
3 months agoMerge branch '1.4-rel' (2116f2d) 71/26071/2
Philippe Coval [Mon, 9 Jul 2018 15:59:43 +0000 (17:59 +0200)]
Merge branch '1.4-rel' (2116f2d)

Relate-to:
      I2c9e39600e4d336b5a01dacf50aef8d79caac1e0
      I560830d62bad76447bf1c4acaf004cc779fbcdfb
      If23e5c258e61298e6b10996402b0961b2ebcd672

Change-Id: I2116f2d2d86ef45f7d5eca8074279c7c935c6b0d
Bug: https://jira.iotivity.org/browse/IOT-2453
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
3 months agotinycbor: Remove .git after prepared for tizen 75/26075/3
Philippe Coval [Thu, 14 Jun 2018 00:39:04 +0000 (02:39 +0200)]
tinycbor: Remove .git after prepared for tizen

Bug: https://jira.iotivity.org/browse/IOT-1745
Change-Id: I2d7c4cba8408c97f2c8eb959fb3c69473e9f117a
Origin: https://gerrit.iotivity.org/gerrit/#/c/26075/
Signed-off-by: Philippe Coval <p.coval@samsung.com>
3 months agoFix and clean up libcoap build 13/26213/2
Mats Wichmann [Fri, 6 Jul 2018 13:27:51 +0000 (07:27 -0600)]
Fix and clean up libcoap build

Most signficant change: when upstream libcoap is used (always true for
Windows), do "git checkout" even if the desired tag is already in the
repo, this should fix the case where the checkout is not up to date but
the repo is, so no checkout is done.

Minor changes:

* The forked-coap case is moved to the top of if clauses for readability
  (before there might have been dozens of lines, then else: followed by
  two lines)
* A bug where PREFIX rather than LIBPREFIX was fetched from the
  construction environment is fixed.
* One of the config file names was simplified a bit.
* The Glob call to determine source files to build is now wrapped in a
  try block, the current Tizen SCons is so old it does not support the
  "exclude" attribute.
* A check for the Tizen case ("don't use git commands in sconscript")
  is added.
* Comment updates

Change-Id: Icec0d1a9c5cbf20f0adbc32745486333766234e7
Signed-off-by: Mats Wichmann <mats@linux.com>
3 months agobuild: Remove RPATH on install using chrpath 49/23449/22
Philippe Coval [Fri, 24 Nov 2017 22:08:00 +0000 (23:08 +0100)]
build: Remove RPATH on install using chrpath

Note to system admin please install the package on infrastructure

This is useful for ARTIK7 support on fedora-24

Bug: https://jira.iotivity.org/browse/IOT-524
Change-Id: I8e046da345b18e5731939c9cb5e5832fa33786b6
Origin: https://gerrit.iotivity.org/gerrit/#/c/23449/
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
3 months ago[CR2392] Security Profile Purple 67/25967/3
Oleksandr Andrieiev [Mon, 25 Jun 2018 12:15:45 +0000 (15:15 +0300)]
[CR2392] Security Profile Purple

Updated cred entries check condition, because Purple
profile currently requires mfg cert to be used. Updated
tests and sample application to recognize the profile.

Bug: https://jira.iotivity.org/browse/IOT-3104
Change-Id: I02cb12592c112783d48fd4d5c09b91ec96af5d72
Signed-off-by: Oleksandr Andrieiev <o.andrieiev@samsung.com>
3 months ago[IOT-3106] Memory leak when converting PEM to DER 97/25997/6
Oleksandr Andrieiev [Tue, 26 Jun 2018 12:25:44 +0000 (15:25 +0300)]
[IOT-3106] Memory leak when converting PEM to DER

Bug: https://jira.iotivity.org/browse/IOT-3106
Change-Id: I560830d62bad76447bf1c4acaf004cc779fbcdfb
Signed-off-by: Oleksandr Andrieiev <o.andrieiev@samsung.com>
3 months agoUpdate IoTivity version in octypes.h 31/26031/2
Nathan Heldt-Sheller [Thu, 28 Jun 2018 16:54:57 +0000 (09:54 -0700)]
Update IoTivity version in octypes.h

At OSWG meeting we agreed to change version 1.4 to 2.0.  I won't
rename the branch but I'm going to change the final tag name to
2.0.0 instead of 1.4.0, and I'm going to change the version
reported by IoTivity itself (this patch).

Change-Id: If23e5c258e61298e6b10996402b0961b2ebcd672
Signed-off-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
3 months agoMerge "Merge branch '1.4-rel' (ca39b98)"
Mats Wichmann [Thu, 28 Jun 2018 13:18:35 +0000 (13:18 +0000)]
Merge "Merge branch '1.4-rel' (ca39b98)"

3 months agombedtls: remove .git after prepared for tizen 35/25835/5
Philippe Coval [Thu, 14 Jun 2018 07:21:37 +0000 (09:21 +0200)]
mbedtls: remove .git after prepared for tizen

Change-Id: Ifff1cb0c043d3ea089bfef5e1568c57edfa86c89
Origin: https://gerrit.iotivity.org/gerrit/#/c/25835/
Signed-off-by: Philippe Coval <p.coval@samsung.com>
3 months agoMerge branch '1.4-rel' (ca39b98) 99/25999/1
Philippe Coval [Tue, 26 Jun 2018 14:03:59 +0000 (16:03 +0200)]
Merge branch '1.4-rel' (ca39b98)

Relate-to:
      I98182500474f82e9c83a0419f8ddc8e9f0ee1579
      I7be3da0c09b41516d57c02cef98a6815dd1950bb
      If26baa6a2e994184cc829919fb1a5f0303d78f31
      I331ef9ed19d128ff975d150f6c0058eff64b59ff
      I547f9936d09d4fcfb0a6d84b075bd30252852d6e
      If6a51416f90be533ebdd70096781c3d094512752
      Id52c8acaf5a76e727bedf28288c08472255a988a

Change-Id: Ica39b98ef89daa030ceb4794c08cc137cd980ac0
Bug: https://jira.iotivity.org/browse/IOT-2453
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
3 months agoExtend cloud components configuration - reverify 31/25531/3
Ondrej Tomcik [Wed, 30 May 2018 05:55:04 +0000 (07:55 +0200)]
Extend cloud components configuration - reverify

Change-Id: Icc70ed42fb622e5f133aa0874427489ddcf05c2b
Signed-off-by: Ondrej Tomcik <ondrej.tomcik@kistler.com>
3 months agoIntroduce master pom for cloud project 67/24867/2
Ondrej Tomcik [Tue, 24 Apr 2018 12:01:21 +0000 (14:01 +0200)]
Introduce master pom for cloud project

Change-Id: Ic59d6045e74767f1caf5160afccdfe0f6a654124
Signed-off-by: Ondrej Tomcik <ondrej.tomcik@kistler.com>
3 months ago[IOT-3044]Adding token to empty signaling message 91/25491/8
koushik.girijala [Mon, 14 May 2018 10:12:03 +0000 (15:42 +0530)]
[IOT-3044]Adding token to empty signaling message

Support for adding token to empty signaling message
Draft changes in coap and IoTivity

Change-Id: I7be3da0c09b41516d57c02cef98a6815dd1950bb
Signed-off-by: koushik.girijala <g.koushik@samsung.com>
3 months ago[IOT-3094] Cloud deregister does not work properly 97/25897/5
Vitalii Irkha [Thu, 21 Jun 2018 10:58:29 +0000 (13:58 +0300)]
[IOT-3094] Cloud deregister does not work properly

Refactoring SignOut Cloud API

Change-Id: If26baa6a2e994184cc829919fb1a5f0303d78f31
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
3 months agoUpdate upstream-libcoap to IoTivity-1.4 tag 25/25925/2
Mats Wichmann [Sun, 24 Jun 2018 14:09:20 +0000 (08:09 -0600)]
Update upstream-libcoap to IoTivity-1.4 tag

New coap code is needed so update the tag to look for. Fixes the
failed Windows CI builds in https://gerrit.iotivity.org/gerrit/#/c/25491/

Other changes:
* The SConscript adds the WITH_WS definition to the build
* Quiet the windows warning on size mismatches (W4267)
- Note these two indicate problems introduced by iotivity patches to
the dthaler libcoap fork, and the problems themselves should be fixed
(WITH_WS is correct, but the logic in the case statement is not, so the
absence of the flag caused build failures which are now covered up -
this one is IOT-3103)

* libcoap script checked tag in last line of commit log, that's fragile,
so changed to use git log instead.

* The standard check for the alternate way the code may be populated
is added.  This is used for Tizen builds.

* A little restructuring for readability (message strings defined away
from the code so we can read the code), and the "git checkout" is now
actually error-checked.

Bug: https://jira.iotivity.org/browse/IOT-3044
Change-Id: I331ef9ed19d128ff975d150f6c0058eff64b59ff
Signed-off-by: Mats Wichmann <mats@linux.com>
4 months ago[IOT-3097] change sct from 1 back to 9 93/25893/2
Nathan Heldt-Sheller [Wed, 20 Jun 2018 16:22:01 +0000 (09:22 -0700)]
[IOT-3097] change sct from 1 back to 9

Since CTT Devs are using oic_svr_db_server_justworks.json/.dat for testing,
and they depend on sct 9, it doesn't hurt to use sct 9 (even though this
particular example is to demonstrate justworks).  Changing to prevent CTT
Devs from having to workaround.

Change-Id: I547f9936d09d4fcfb0a6d84b075bd30252852d6e
Signed-off-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>