iotivity.git
12 months 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>
12 months 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>
12 months 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>
12 months 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>
12 months 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>
12 months 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>
12 months 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>
12 months 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>
12 months 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

12 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>
12 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>
12 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>
12 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"

13 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>
13 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>
13 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)

13 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>
13 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>
13 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)"

13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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>
13 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)

13 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>
13 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>
13 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>
14 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>
14 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)"

14 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)

14 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>
14 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>
14 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)

14 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>
14 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>
14 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)

14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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)"

14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 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>
14 months ago[IOT-3075] Aborting TCP connect operation 89/25489/3
koushik.girijala [Fri, 25 May 2018 10:12:34 +0000 (15:42 +0530)]
[IOT-3075] Aborting TCP connect operation

Aborting TCP connect operation during IP disconnect and Adapter stop

Change-Id: If6a51416f90be533ebdd70096781c3d094512752
Signed-off-by: koushik.girijala <g.koushik@samsung.com>
14 months ago[IOT-3090] disable /sp Resource 37/25837/2 1.4.0-RC2
Nathan Heldt-Sheller [Sun, 17 Jun 2018 02:27:37 +0000 (19:27 -0700)]
[IOT-3090] disable /sp Resource

/sp Resource must be temporarily disabled until CTT is updated to recognize
it (~Bangkok point release) else it causes CTT failures.

Change-Id: Id52c8acaf5a76e727bedf28288c08472255a988a
Signed-off-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
15 months agoMerge branch '1.4-rel' (0bba2f8) 43/25843/1
Philippe Coval [Mon, 18 Jun 2018 09:11:49 +0000 (11:11 +0200)]
Merge branch '1.4-rel' (0bba2f8)

Relate-to:
      I2704ed9c7c6fa3b234f49b50ff7cdd53f2d1f737
      I69ca3d5a0fe59626b545047530b68fd0cfdd27ad
      I20333c980226dc6a0c257dc36aab1502202993d9
      Ibd33bf931322a58e3efac1ccfebd5ea5cb6a1330
      I95ea9ae239336c7b602d55569d2c2f9b5b2976d3
      I85e0b6a1585eac4d0f90154c261103ce58343fd7

Change-Id: I0bba2f80fe940271fe32e4c34dd4f54deb0f2dc6
Bug: https://jira.iotivity.org/browse/IOT-2453
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
15 months ago[IOT-3075] Aborting TCP connect operation 63/25463/6
koushik.girijala [Fri, 25 May 2018 10:12:34 +0000 (15:42 +0530)]
[IOT-3075] Aborting TCP connect operation

Aborting TCP connect operation during IP disconnect and Adapter stop

Change-Id: If6a51416f90be533ebdd70096781c3d094512752
Signed-off-by: koushik.girijala <g.koushik@samsung.com>
15 months agoAdd 'webos' into the target OS list 35/23935/67
sungmok.shin [Mon, 15 Jan 2018 09:52:29 +0000 (18:52 +0900)]
Add 'webos' into the target OS list

- TARGET_OS "webos" is added
- IP adapter for network monitoring is implemented
- Introduce PmLog for IoTivity over webos
- Provisioning library is included
- Crash with iotivity-node application is fixed
- Build error due to RD_MODE=all is fixed
- ACG (Access Control Group) configuration file for
  sample application is added
- Procedure for registering/Unregistering luna service
  is implemented
- Internal function for getting LSHandle is implemented
- ocserverbasicops & occlientbasicops for webos
  is implemented (built from separate folder)
- IoTivity sampler(iotivity-node) for webOS is implemented
- Set native application path to /usr/palm/services

Bug: https://jira.iotivity.org/browse/IOT-2967
Change-Id: I3f4f143e7f528e873e5758410e226d98b2679151
Signed-off-by: sungmok.shin <sungmok.shin@lge.com>
15 months ago[IOT-3083] IUT crash while batch update by href 05/25805/2
Biman Paul [Fri, 8 Jun 2018 10:25:03 +0000 (15:55 +0530)]
[IOT-3083] IUT crash while batch update by href

IUT crash occured while executing CTT Server Testcase 1.2.13
Batch update by href. Double free occured for server request
handle. Once in HandleSingleResponse() and another in
HandleAggregateResponse().
6  0x00007ffff705f452 in OICFree (ptr=0x7fffd400d6f0)
    at resource/c_common/oic_malloc/src/oic_malloc.c:150
7  0x00007ffff729da8e in DeleteServerRequest (serverRequest=0x7fffd40008c0)
    at resource/csdk/stack/src/ocserverrequest.c:412
8  0x00007ffff729eaf1 in HandleAggregateResponse (ehResponse=0x7fffe8dcc450)
    at resource/csdk/stack/src/ocserverrequest.c:892

Change-Id: I69ca3d5a0fe59626b545047530b68fd0cfdd27ad
Signed-off-by: Biman Paul <biman.paul@samsung.com>
15 months ago[IOT-3083] IUT crash while batch update by href 35/25735/3
Biman Paul [Fri, 8 Jun 2018 10:25:03 +0000 (15:55 +0530)]
[IOT-3083] IUT crash while batch update by href

IUT crash occured while executing CTT Server Testcase 1.2.13
Batch update by href. Double free occured for server request
handle. Once in HandleSingleResponse() and another in
HandleAggregateResponse().
6  0x00007ffff705f452 in OICFree (ptr=0x7fffd400d6f0)
    at resource/c_common/oic_malloc/src/oic_malloc.c:150
7  0x00007ffff729da8e in DeleteServerRequest (serverRequest=0x7fffd40008c0)
    at resource/csdk/stack/src/ocserverrequest.c:412
8  0x00007ffff729eaf1 in HandleAggregateResponse (ehResponse=0x7fffe8dcc450)
    at resource/csdk/stack/src/ocserverrequest.c:892

Change-Id: I69ca3d5a0fe59626b545047530b68fd0cfdd27ad
Signed-off-by: Biman Paul <biman.paul@samsung.com>
15 months ago[CR2390] Identity spoofing/privelege escalation 71/25771/6
Oleksandr Andrieiev [Fri, 8 Jun 2018 13:54:23 +0000 (16:54 +0300)]
[CR2390] Identity spoofing/privelege escalation

For secure connections that use certificates the SubjectUUID
is retrieved from leaf certificate's CN. However, there is
no binding mechanism between Root CA and Device Id that it
can generate certificates for. Root CAs can issue certificates
with arbitrary UUIDs, which can be used to impersonate another
Device.

The fix adds callback to the certificate chain validation
function. This callback collects single-linked list of all
UUIDs associated with the certificate in cred entries.
When leaf certificate is reached, UUID of Device is retrieved
and matched against static list. If no matching UUID is
found, connection should be rejected.

Bug: https://jira.iotivity.org/browse/IOT-3087
Change-Id: I20333c980226dc6a0c257dc36aab1502202993d9
Signed-off-by: Oleksandr Andrieiev <o.andrieiev@samsung.com>
15 months agoFix:Added default target_os for tizen 65/24465/3
Sanjay Kumar [Fri, 23 Mar 2018 08:59:55 +0000 (14:29 +0530)]
Fix:Added default target_os for tizen

Change-Id: I9599855e1e88d0c4af95d822373ddf4352ec1265
Signed-off-by: Sanjay Kumar <sanjay@graniteriverlabs.in>
15 months agoUpdate java/scons version check 85/25785/1
Mats Wichmann [Tue, 12 Jun 2018 14:25:04 +0000 (08:25 -0600)]
Update java/scons version check

Java 9/10 still not supported in scons 3, but at least
print more updated information.

Change-Id: Ic4948540fa0a9aaa7ef0c98b4a3774d8ea557972
Signed-off-by: Mats Wichmann <mats@linux.com>
15 months agoFix PATH not append to env on windows. 11/22311/5
Ricky He [Mon, 4 Sep 2017 08:26:42 +0000 (01:26 -0700)]
Fix PATH not append to env on windows.

Change-Id: I26688494a209cbc320fbb79eb18a957ec3ce8999
Signed-off-by: Ricky He <timemanager.rick@gmail.com>
15 months agoFix rapidjson build for gcc8 another way 07/25707/2
Mats Wichmann [Thu, 7 Jun 2018 15:00:15 +0000 (09:00 -0600)]
Fix rapidjson build for gcc8 another way

Uplifiting rapidjson version apparently not sufficient,
so do a temporary fix to disable Werror.

Also changed link to point to official github location.

Change-Id: I762636f3185c3d75b28aad237da69ba9cf0c6884
Signed-off-by: Mats Wichmann <mats@linux.com>
15 months agofix compilation failure on VS2017 73/25473/7
George Nash [Fri, 25 May 2018 22:02:33 +0000 (15:02 -0700)]
fix compilation failure on VS2017

In the latest build of Visual Studio 2017 will
produce a build waring when encountering any code
in the str::tr1 namespace. The warning is produced
when headers from the external googletest framework
are included in the build.

Adding the _SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING
macro will cause the build to ignore the build warning.

The googletest project is aware of the issue. See the
actual commit for a link to the ticket for the google
test project.

Change-Id: I9be616498df95b8dd9aa165717bd178c53f3221b
Signed-off-by: George Nash <george.nash@intel.com>
15 months ago[IOT-3022] Build CNC as standalone lib 95/25395/9
Vitalii Irkha [Wed, 23 May 2018 08:24:59 +0000 (11:24 +0300)]
[IOT-3022] Build CNC as standalone lib

SConscript for cloud build
Cloud Reset is also was added

Change-Id: Ibd33bf931322a58e3efac1ccfebd5ea5cb6a1330
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
15 months agoupdate NSAcceptedProviders copy/assign operators 77/25677/3
George Nash [Wed, 2 May 2018 18:45:10 +0000 (11:45 -0700)]
update NSAcceptedProviders copy/assign operators

This addresses an iterator missmatch error that is reported by
static analysis tool. This changes the code to use the built in
map assignment operator as well as grab locks before copying the
map to prevent the map being modified while the copy is
occuring.

Bug: https://jira.iotivity.org/browse/IOT-1742
Change-Id: Id7d8eeed91d587db7d2b0f8ca6a8d5b3d98f90fe
Signed-off-by: George Nash <george.nash@intel.com>
15 months agoFix double free in bridging curl client 17/25317/2
Mats Wichmann [Sat, 19 May 2018 14:25:47 +0000 (08:25 -0600)]
Fix double free in bridging curl client

A recent change added a destructor for _MemoryChunk, to
fix a problem where something was not being freed.
However, this left another location freeing memory
twice - once explicitly, once when the destructor runs.

Change-Id: Ie10829334238a359e38c55df789d3e69425f67b3
Signed-off-by: Mats Wichmann <mats@linux.com>
15 months agoFix memory leak 99/25299/3
Inho Oh [Fri, 1 Dec 2017 07:06:06 +0000 (16:06 +0900)]
Fix memory leak

This patch fix critical memory leak. When I run CTT with CT1.2.3 test
case, memory is increased every time.

Change-Id: Idee5e3ed9b043a21d55ba5dc752c537156d99d8e
Signed-off-by: Inho Oh <webispy@gmail.com>
15 months ago[IOT-3022] Fix ResetClouds() api 85/25685/3
Vitalii Irkha [Wed, 6 Jun 2018 16:43:51 +0000 (19:43 +0300)]
[IOT-3022] Fix ResetClouds() api

Fixed minor issues

Change-Id: I95ea9ae239336c7b602d55569d2c2f9b5b2976d3
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
15 months agoGenerate introspection data for coaps+tcp endpoint 11/25411/2
George Nash [Wed, 23 May 2018 18:16:11 +0000 (11:16 -0700)]
Generate introspection data for coaps+tcp endpoint

Bug: https://jira.iotivity.org/browse/IOT-3056

Change-Id: I85e0b6a1585eac4d0f90154c261103ce58343fd7
Signed-off-by: George Nash <george.nash@intel.com>
15 months agoMerge "Merge branch '1.4-rel' (01fd9ec)"
Phil Coval [Mon, 4 Jun 2018 08:08:57 +0000 (08:08 +0000)]
Merge "Merge branch '1.4-rel' (01fd9ec)"

15 months ago[IOT-3012] Update JniOcProvisioning API usage 43/25343/3
Larry Sachs [Mon, 21 May 2018 21:24:26 +0000 (14:24 -0700)]
[IOT-3012] Update JniOcProvisioning API usage

Use of deprecated functions in JniOcProvisioning.cpp has been updated
to use their replacements.

Java example ProvisioningClient.java has also been updated.

Change-Id: Ie46dccffc714b47109100dbd8c70aa3598d94190
Signed-off-by: Larry Sachs <larry.j.sachs@intel.com>
15 months agoMerge branch '1.4-rel' (01fd9ec) 71/25571/1
Philippe Coval [Thu, 31 May 2018 08:22:26 +0000 (10:22 +0200)]
Merge branch '1.4-rel' (01fd9ec)

Relate-to:
      I25836d20803e82764b8f9dbc30ddfde80810518f
      I40a9b3c3f89894e92c75c798e918f1713e9e6740
      I44bd904f13cdd7b44e34e47a69ce403248e550b9
      Idbe257c1baa90a7cabce6fe6113ab09fb5644eab
      I1cfad27fcfd5cf3a42510412e6555b84ea905259

Change-Id: I01fd9ecd719dbb68b74712b058a50d768f90624d
Bug: https://jira.iotivity.org/browse/IOT-2453
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
15 months ago[IOT-3022] Add cloud reset api 15/25315/4
Aleksey Volkov [Fri, 11 May 2018 10:01:07 +0000 (13:01 +0300)]
[IOT-3022] Add cloud reset api

Change-Id: I40a9b3c3f89894e92c75c798e918f1713e9e6740
Signed-off-by: Aleksey Volkov <a.volkov@samsung.com>
15 months ago[IOT-3022] Session delete fix 07/25407/2
Aleksey Volkov [Wed, 23 May 2018 14:04:41 +0000 (17:04 +0300)]
[IOT-3022] Session delete fix

Do not delete session in case if token refresh thread stops

Change-Id: I44bd904f13cdd7b44e34e47a69ce403248e550b9
Signed-off-by: Aleksey Volkov <a.volkov@samsung.com>
15 months agoAdd SECURED flag to SimpleClientServer build 73/24573/4
Mats Wichmann [Wed, 4 Apr 2018 13:56:13 +0000 (07:56 -0600)]
Add SECURED flag to SimpleClientServer build

The code in this sample contains #ifdef SECURED,
but the flag is not set during building even if
SECURED mode is selected.

Change-Id: Ied64c34db0437736aaaac4c88d0b53037639a34a
Signed-off-by: Mats Wichmann <mats@linux.com>
15 months agoAdd csdk API to send COAP ping messages over TCP 05/25305/3
Koushik Girijala [Mon, 26 Mar 2018 12:53:15 +0000 (18:23 +0530)]
Add csdk API to send COAP ping messages over TCP

Add csdk API in ocstack to send COAP ping messages
over tcp.

Change-Id: Idbe257c1baa90a7cabce6fe6113ab09fb5644eab
Signed-off-by: Veeraj Khokale <veeraj.sk@samsung.com>
Signed-off-by: koushik girijala <g.koushik@samsung.com>
(cherry picked from commit bfbac92c38ba2ae9280ff8694e0862610423b43f)

15 months agoMerge "Merge branch '1.4-rel'"
Phil Coval [Fri, 25 May 2018 19:35:38 +0000 (19:35 +0000)]
Merge "Merge branch '1.4-rel'"

15 months agoMerge branch '1.4-rel' 69/25469/1
Mats Wichmann [Fri, 25 May 2018 13:16:34 +0000 (07:16 -0600)]
Merge branch '1.4-rel'

Includes:

e6f2764e1 Cloud resource fix
b08cb060d tizen: Only support IP transport by default
718227d3f [IOT-3022] Code style and fix minor issues.
456bc2189 [IOT-3047] Request to csr creates a new credential
e8671983e [IOT-3022] CNC fixes for CTT
9204d7826 [IOT-3022] cloud fix #2
dbf736917 mbedtls: Install Static libs
b6744aca4 tinycbor: Update to v0.5.1
ee6a853cb Merge branch '1.3-rel' into 1.4-rel

Change-Id: I832157c55f2ea18654a021d2579a461c48a5220e
Signed-off-by: Mats Wichmann <mats@linux.com>
15 months agoIOT-3079 Fix change port number issue 41/25441/4
Jeonghwan Kim [Thu, 24 May 2018 01:09:49 +0000 (10:09 +0900)]
IOT-3079 Fix change port number issue

When using provisioning tool, this code change to target dev's port number.
reproduction case is below in provisioning tol.

1. Discovery All devices or unowned devices.
2. do Ownership transfers.
3. hard reset device.

4. Discovery All devices
5. Do Ownership transfer.

it happens to error in provisioning tool because of changing to target's port number

Conflicts:
resource/csdk/security/provisioning/src/ocprovisioningmanager.c

Change-Id: Ie5bcc1be58bc11609dd3bcc0b674d64202ed4573
Signed-off-by: Jeonghwan Kim <addy.kim@lge.com>
15 months agoRemoving arduino files that came back in merge 49/25449/1
Mats Wichmann [Thu, 24 May 2018 13:19:02 +0000 (07:19 -0600)]
Removing arduino files that came back in merge

A merge commit unintentionally brought back previously deleted arduino
sample code.  Removing again.

Change-Id: I77284bea5ba0bec2c0ee8e065a831727d624b742
Signed-off-by: Mats Wichmann <mats@linux.com>
15 months ago[IOT-3044] No response for Ping message 43/25443/1
Veeraj Khokale [Thu, 5 Apr 2018 09:35:54 +0000 (15:05 +0530)]
[IOT-3044] No response for Ping message

TCP adapter disconnects the session whenever
the data to be sent has an empty payload.
Since ping messages and signaling messages
need to have an empty payload they are dropped.
Fix this by checking if the message is a signaling
message before dropping it.

Change-Id: I1cfad27fcfd5cf3a42510412e6555b84ea905259
Signed-off-by: Veeraj Khokale <veeraj.sk@samsung.com>
(cherry picked from commit c7dce6b522604e2c6b99847c88a00f7da275c08d)

15 months agotizen: Only support IP transport by default 27/24927/8
Philippe Coval [Tue, 24 Apr 2018 13:57:57 +0000 (15:57 +0200)]
tizen: Only support IP transport by default

It looks like BLE support has been dropped,
while some bits are remaining, check for:
CA_BLE_NORMAL_SEGMENT_PAYLOAD_SIZE

Bug: https://jira.iotivity.org/browse/IOT-2030
Change-Id: Idb99ebfbd721c6abb5ce6cfcf2c381ece195ffc8
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
(cherry picked from commit b08cb060de3421b9277c097c18d369c3eb682248)

15 months agoCloud resource fix 85/25385/1
koushik.girijala [Fri, 18 May 2018 05:16:34 +0000 (10:46 +0530)]
Cloud resource fix

fixed resource uri for issue [IOT- 3069]
removed unsecure enpoints from cloud payload [IOT-3071]
adding oic.if.rw interface to cloud resource [IOT-3070]

Change-Id: I719d54bd846f77a5cf2905ccc130ab0434005491
Signed-off-by: koushik.girijala <g.koushik@samsung.com>
15 months agotizen: Add dockerfile to rebuild package 51/23451/8
Philippe Coval [Fri, 24 Nov 2017 17:31:47 +0000 (18:31 +0100)]
tizen: Add dockerfile to rebuild package

Usage:
  docker build -f tools/tizen/Dockerfile .

Reference:

  docker 17.12.1-ce
  gbs 0.25.2

Bug: https://jira.iotivity.org/browse/IOT-524
Change-Id: I5feec4f3b0e70831c6069e78473e1374b45aeadf
Forwarded: https://gerrit.iotivity.org/gerrit/#/c/23451/
Origin: https://github.com/TizenTeam/iotivity/tree/sandbox/pcoval/on/master/fedora
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
15 months agotizen: Only support IP transport by default 81/24881/2
Philippe Coval [Tue, 24 Apr 2018 13:57:57 +0000 (15:57 +0200)]
tizen: Only support IP transport by default

It looks like BLE support has been dropped,
while some bits are remaining, check for:
CA_BLE_NORMAL_SEGMENT_PAYLOAD_SIZE

Bug: https://jira.iotivity.org/browse/IOT-2030
Change-Id: Idb99ebfbd721c6abb5ce6cfcf2c381ece195ffc8
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
16 months agoFix recently introduced python2-ism 77/25277/2
Mats Wichmann [Wed, 16 May 2018 16:32:27 +0000 (10:32 -0600)]
Fix recently introduced python2-ism

print statement needs to be a function

Change-Id: Iaa163903749e64156a2cbbb9a97f4dd1da9ff901
Signed-off-by: Mats Wichmann <mats@linux.com>
16 months agoDocumentation improvements to layout and grouping 35/24535/12
Mats Wichmann [Sun, 25 Mar 2018 18:07:27 +0000 (12:07 -0600)]
Documentation improvements to layout and grouping

All four doxyfiles are updated to current template
  (newer doxygen version) by running doxygen -u
iotivity logo is added, doxyfiles point to it
C SDK adds individual listings for (some) libraries
xml template for C SDK displays library page
  doxygen thinks these are "modules", but mostly ok
xml template also displays "pages", which causes a
  a list of deprecated elements to be displayed
Some headers are marked up for their inclusion
  in libraries (work in progress). Libraries are
  "defined" in guides/Home.txt, so far with only
  minimal definitions - need improving.
An iotivity-specific css file is added, so far
  includes markup for two new elements (aliases)
Two aliases are defined, @experimental prints a section
  indicating the feature is experimental; @sideeffect
  takes one argument and prints a section with that
  argument as the body. Intended as a way to be able
  to note e.g. if a function causes allocations that need to
  be tracked - there are no current users of this alias.
Some minor doc cleanup is included.
Cloud auth.h emits errors on processing, those were
  fixed, some doc wording added, and the prototype
  for CloudStart was removed as there is no implementation.

Change-Id: I8a434bb3cb51523129ec8e478ac45ac196cf41b5
Signed-off-by: Mats Wichmann <mats@linux.com>
16 months ago[IOT-3022] Code style and fix minor issues. 49/25249/8
Vitalii Irkha [Tue, 15 May 2018 15:09:02 +0000 (18:09 +0300)]
[IOT-3022] Code style and fix minor issues.

Fixed some negligible issues.

Change-Id: If6ef5b77514a2b4cccea90e609da340c75083ac6
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>