- 13 Mar, 2019 1 commit
-
-
Oleksii Beketov authored
This patch unites reverted #22987 and CTT fix 23279. PEM/DER casting removed, allowing mbedtls to manage certificate conversion by itself. Credresource loads certificates that could be either PEM or DER encoded to a linked list instead of pushing them to a buffer. Change-Id: I6dd0d957721d59feaf70f3dd421bf65d7c02ef1d Signed-off-by:
Oleksii Beketov <ol.beketov@samsung.com>
-
- 11 Oct, 2018 1 commit
-
-
Oleksandr Andrieiev authored
Request to /oic/sec/csr creates itself a new credential Get PrimarySertKey for appropriated Primary Certificate. (cherry picked from commit 456bc218) Change-Id: I6714ab43430a01e2e05f111f72dfc0eb38499827 Signed-off-by:
Oleksandr Andrieiev <o.andrieiev@samsung.com>
-
- 25 Sep, 2018 3 commits
-
-
Aleksey authored
Set default PSK callback after the reset of secure resources Change-Id: Ib4e768c7401247dc9dd4917ff5a611396e8e07a1 Signed-off-by:
Aleksey Volkov <a.volkov@samsung.com> (cherry picked from commit 758fc4ae)
-
Aleksey authored
Change-Id: I27bab5b348a4b0c52319447ce52e9ebdf3755628 Signed-off-by:
Aleksey Volkov <a.volkov@samsung.com>
-
Aleksey authored
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>
-
- 20 Sep, 2018 1 commit
-
-
Oleksandr Andrieiev authored
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: Ic766fa2256d548c99ed4a5dd76f6f3c53b5250a9 Signed-off-by:
Oleksandr Andrieiev <o.andrieiev@samsung.com>
-
- 23 Jul, 2018 1 commit
-
-
Vitalii Irkha authored
PM app doesn't clear owned list Change SQL requests for WHERE statements with blob params. (Support sqlite3 ver. 3.11, OS specific - Ubuntu 16.04.3 LTS). Change-Id: Icf7f7e562da27df180a9b30c436db98d051869de Signed-off-by:
Vitalii Irkha <v.irkha@samsung.com>
-
- 23 Mar, 2018 1 commit
-
-
Philippe Coval authored
Bug: https://jira.iotivity.org/browse/IOT-1745 Change-Id: I14190ffe2f857d48e062f3f78e9b7b52123efe1b Signed-off-by:
Philippe Coval <philippe.coval@osg.samsung.com>
-
- 09 Mar, 2018 1 commit
-
-
Oleksandr Dmytrenko authored
old version servers support Change-Id: I2f7d54c0ff6b4a372b82c4e99263af4df2c98a4e Signed-off-by:
Oleksandr Dmytrenko <o.dmytrenko@samsung.com>
-
- 09 Feb, 2018 1 commit
-
-
Oleksandr Dmytrenko authored
add json2cbor save doxm section Change-Id: I2578ebd8162978b489833edc7e6159b30cb851ec Signed-off-by:
Oleksandr Dmytrenko <o.dmytrenko@samsung.com> (cherry picked from commit 2a46516c) Origin: https://gerrit.iotivity.org/gerrit/#/c/23903/
-
- 06 Feb, 2018 2 commits
-
-
Philippe Coval authored
Bug: https://jira.iotivity.org/browse/IOT-524 Change-Id: Idb2b2da72104f91d4a1257f571abdea4ca10d88a Origin: https://github.com/TizenTeam/iotivity/tree/sandbox/pcoval/on/master/fedoraSigned-off-by:
Philippe Coval <philippe.coval@osg.samsung.com>
-
Thiago Macieira authored
Since we're doing err |=, the correct way to check for OOM is with &. TinyCBOR 0.5 is capable of reporting if you added too many or too few elements to a container. So don't skip adding one: always add them all, so we can get the actual size you need. Change-Id: I56b444f9d6274221a3b7fffd150d4c8e2cb6618a Signed-off-by:
Thiago Macieira <thiago.macieira@intel.com>
-
- 01 Feb, 2018 1 commit
-
-
George Nash authored
This cleans new build warnings discovered when building iotivity with GCC 7.2.1 -Werror=format-truncation Fixed in json2cbor that was a result of incorrect buffer size in snprintf -Werror=implicit-fallthrough With the addition of the [[fallthrough]] keyword in C++17 GCC now detects fallthrough locations. The fallthrough error can be hidden by adding the comment "fall through" to the case that is falling though. -Werror=pragmas and -Werror=attributes are from the external tinyCbor code. We Ignore build warnings from extern libraries. We may fix the warnings by working witht he external project but it should not block any work in IoTivity. Change-Id: I86c9fb42b987858c66698fe48e4c2a405769b004 Signed-off-by:
George Nash <george.nash@intel.com>
-
- 29 Jan, 2018 1 commit
-
-
Philippe Coval authored
Working tests will be sorted out in later changes, for now hierarchy is kept. libcoap is installed as static lib used by com-oic-es-sample. This was needed for ARTIK7 on Fedora-24 Bug: https://jira.iotivity.org/browse/IOT-524 Change-Id: Idca20f1ddd00fbaf8c980e959a041397887f123b Forwarded: https://gerrit.iotivity.org/gerrit/#/c/23471/ Origin: https://github.com/TizenTeam/iotivity/tree/sandbox/pcoval/on/master/fedoraSigned-off-by:
Philippe Coval <philippe.coval@osg.samsung.com>
-
- 25 Jan, 2018 1 commit
-
-
Sushil Yadav authored
The following change has been merged in the master. https://gerrit.iotivity.org/gerrit/20689 Pushing the change one the 1.3-rel branch as suggested by Phil. Change-Id: I8d4b8b97d93521174273e08aa9202e6008e6abfe Signed-off-by:
Sushil Yadav <sushil.ky@samsung.com> Reviewed-by:
Jooseok Park <jooseok.park@samsung.com> Reviewed-by:
Phil Coval <philippe.coval@osg.samsung.com> Reviewed-by:
Uze Choi <uzchoi@samsung.com> Reviewed-by:
Ashok Babu Channa <ashok.channa@samsung.com> Origin: https://gerrit.iotivity.org/gerrit/#/c/23347/
-
- 24 Jan, 2018 1 commit
-
-
Philippe Coval authored
Functions in payload_logging.h can be used in examples, so it's installed in "experimental" sub namespace along dependencies. Bug: https://jira.iotivity.org/browse/IOT-1745 Change-Id: If3a9e4309601c356ab9a2faaa9fbe26283408633 Signed-off-by:
Philippe Coval <philippe.coval@osg.samsung.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/21195Tested-by:
jenkins-iotivity <jenkins@iotivity.org> Reviewed-by:
George Nash <george.nash@intel.com> Reviewed-by:
Dan Mihai <Daniel.Mihai@microsoft.com>
-
- 02 Jan, 2018 4 commits
-
-
Oleksandr Dmytrenko authored
sample randompin server refactoring Bug: https://jira.iotivity.org/browse/IOT-2912 Change-Id: I4aa744a34d706a995fb8d4d7d2927ff29a2ec39a Signed-off-by:
Oleksandr Dmytrenko <o.dmytrenko@samsung.com>
-
Oleksandr Dmytrenko authored
svr db editor refactoring Bug: https://jira.iotivity.org/browse/IOT-2912 Change-Id: Id08cb65a06c296619bf81814bf4ca9490688e2c8 Signed-off-by:
Oleksandr Dmytrenko <o.dmytrenko@samsung.com>
-
Aleksey authored
possible NULL derefence fix Change-Id: Ib1cb32a746555ae66bc89b26bb35fbcb52223c18 Signed-off-by:
Oleksii Beketov <ol.beketov@samsung.com> Signed-off-by:
Aleksey Volkov <a.volkov@samsung.com>
-
Oleksandr Dmytrenko authored
Possible NULL dereference fix Change-Id: I89f0883d2e20616585a143c6b96e00d19528a907 Signed-off-by:
Oleksii Beketov <ol.beketov@samsung.com> Signed-off-by:
Oleksandr Dmytrenko <o.dmytrenko@samsung.com>
-
- 13 Dec, 2017 1 commit
-
-
Philippe Coval authored
The fix is to do querry only on resource's address (to use CoAPs channel) Observed issue was: ./ocserverbasicops ./occlientbasicops -u 0 -c 0 -d 1 -p 0 -t 2 (...) INFO: occlientbasicops: Callback Context for GET query recvd successfully INFO: occlientbasicops: StackResult: OC_STACK_UNAUTHORIZED_REQ INFO: occlientbasicops: SEQUENCE NUMBER: 16777216 INFO: PayloadLog: NULL Payload INFO: occlientbasicops: =============> Get Response I fixed it to: INFO: occlientbasicops: StackResult: OC_STACK_OK (...) INFO: PayloadLog: Payload Type: Representation (...) INFO: PayloadLog: URI:/a/led (...) INFO: PayloadLog: state(bool):false (...) Extra note, it look like the parse function is never returning false. Change-Id: Id3e48c8a04453e87a09e7636ead9a9f64c499d44 Bug: https://jira.iotivity.org/browse/IOT-2390 Origin: https://gerrit.iotivity.org/gerrit/#/c/23637/Signed-off-by:
Philippe Coval <philippe.coval@osg.samsung.com> (cherry picked from commit f6394a48)
-
- 11 Dec, 2017 1 commit
-
-
Oleksii Beketov authored
Multiple ownership enable Change-Id: Ic6cff37ada8f84417c623bead93539f73d61b68d Signed-off-by:
Oleksii Beketov <ol.beketov@samsung.com>
-
- 08 Dec, 2017 3 commits
-
-
Mushfiqul Islam Antu authored
If a server supports both randompin and certificate then the doxm.sct value should be 24, instead of current default 16 on IoTivity. Change-Id: I017bed18d3e0ad568b662a03d9bd80134538a8c3 Signed-off-by:
Mushfiqul Islam Antu <i.mushfiq@samsung.com>
-
Vitalii Irkha authored
This is workaround. One of callbacks provide OC_STACK_INVALID_QUERY instead of OC_STACK_RESOURCE_DELETED. Details please see in https://jira.iotivity.org/browse/IOT-2788. Change-Id: Iccf2d6e5308ba2bc8322fa66c3acec395ef21811 Signed-off-by:
Vitalii Irkha <v.irkha@samsung.com>
-
Todd Malsbary authored
Bug: https://jira.iotivity.org/browse/IOT-2828 Change-Id: Iac85f39806857767bbc6f5dcab02057f791bb5bc Signed-off-by:
Todd Malsbary <todd.malsbary@intel.com>
-
- 30 Nov, 2017 1 commit
-
-
Mushfiqul Islam Antu authored
Current randompin database is having "sct" value 9. Which is improper. Correct value should be 16 Change-Id: I017bed18d3e0ad568b662a03d9bd80134538a8c1 Signed-off-by:
Mushfiqul Islam Antu <i.mushfiq@samsung.com>
-
- 29 Nov, 2017 1 commit
-
-
Mushfiqul Islam Antu authored
OCGetServerInstanceID() & OCGetServerInstanceID() these 2 APIs were keeping a local copy of doxm.deviceuuid, while there is no way to keep track whether doxm.deviceuuid was updated by the provisioning manager. So local copies are removed, each time d.di is required, it will be fetched doxm.deviceuuid Change-Id: I017bed18d3e0ad568b662a03d9bd80134538a8c2 Signed-off-by:
Mushfiqul Islam Antu <i.mushfiq@samsung.com>
-
- 22 Nov, 2017 2 commits
-
-
Vadym Riznyk authored
Add Cred add symmetric key pair Add Cred modification TrustCA cert is saved in cred->publicdata instead of optional data. (see https://gerrit.iotivity.org/gerrit/#/c/21983/) [IOT-2494] SVR DB Editor : Clean codes Fix typo, memleak Remove unnecessary codes. New Feature: https://jira.iotivity.org/browse/IOT-2494Signed-off-by:
Sangjoon Je <sangjoon.je@samsung.com> Change-Id: I487786c432c7d51ead84d08fca0326d34b10e27a Signed-off-by:
Vadym Riznyk <v.riznyk@samsung.com>
-
Vadym Riznyk authored
Adding InitPstatResourceToDefault() to svrdbeditor, for initialize gPstat and correctly get dos.state Change-Id: I5eefd50d6dcfcc35fd20ffd3e6e147acbf924e45 Signed-off-by:
Vadym Riznyk <v.riznyk@samsung.com>
-
- 15 Nov, 2017 1 commit
-
-
Nathan Heldt-Sheller authored
This reverts commit 7f9d8c71. 22967 caused a regression in the CTT; we'll fix and re-submit after regression testing. Change-Id: Ie06cf59b6463072c54b23c61d322bdb7f09cc22f Signed-off-by:
Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
-
- 14 Nov, 2017 2 commits
-
-
Oleksandr Dmytrenko authored
provisioningclient set rowneruuid for all the SVRs Change-Id: I46df6479aeb313955639df32b7e73c52b14691e0 Signed-off-by:
Oleksandr Dmytrenko <o.dmytrenko@samsung.com>
-
Oleksii Beketov authored
Allow to parse all CA certificates when SVR DB contains more than one root CA. Change-Id: Ie82632b459a9a064a90ff14e100e4db9ab60492d Signed-off-by:
Oleksii Beketov <ol.beketov@samsung.com>
-
- 09 Nov, 2017 2 commits
-
-
Habib Virji authored
Add ttl parameter to RD client APIs. Bug: https://jira.iotivity.org/browse/IOT-1935 Change-Id: Ic189cebebbcf8127bea1d127dd11a116e09743bb Signed-off-by:
Habib Virji <habib.virji@samsung.com> Signed-off-by:
Todd Malsbary <todd.malsbary@intel.com>
-
Nathan Heldt-Sheller authored
Fix for a binary->CBOR marshaling case, where payload is to contain "dos", but not "p". This in in turns causes the next Property to be incorrectly placed inside the "dos" CBOR map (and then skipped over by the CBOR->binary un-marshaling code). Also improved logging. Change-Id: Ib28fc1e30fdaf1e639afa940ee2626ba14e77584 Signed-off-by:
Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
-
- 08 Nov, 2017 1 commit
-
-
Ibrahim Esmat authored
Cherry Pick Mats change from master to enable building with SCons 3.0 in 1.3-rel branch. This change and the change in review https://gerrit.iotivity.org/gerrit/#/c/22809 will be needed to merge together. With these 2 changes merged to 1.3-rel, you can successfully build IoTivity with SCons 3.0. Which will also allow you to build the UWP versions of the libraries needed for UWP Apps. Change in master: Prepare for scons3: change prints and others In preparation for scons3, recently released, modify remaining print statements by surrounding them with parens so they look like function calls. That takes care of the scons3 syntax requirement. The remaining instances of the sequence "print FOO; Exit(1)" were changed to "msg = FOO; Exit(msg)" - this helps with the change by not even using the print statement, and by giving the message to the output function, it is sent to the error stream rather than the output stream. Calls to dictionary keys() and values() are now wrapped in list(), on Python 3 these return special objects, not the expected list. That's harmless to Python 2 usage. The old exception format "except FooErr, err" is no longer supported; since the Python 3 format "except FooErr as err" has been available since Python 2.6, there is no problem switching these. Some instances of using the commands module in extlibs changes to use subprocess module. Change is transparent. A couple of instances of filter(lambda ...)) were changes to a python list comprehension, this is considered preferred for Python 3 (change was suggested by a conversion tool) Note on print() change: When running with Python2, the print statement is still used. That has a bit of an impact: print(a) is just prints the argument, but print(a, b, c) is interpreted as printing a tuple (a, b, c), so we could see: >>> print "This", "is", "a", "test" This is a test >>> print("This", "is", "a", "test") ('This', 'is', 'a', 'test') The second is not pretty. You can make Python2 code use the function instead of the statement: >>> from __future__ import print_function >>> print("This", "is", "a", "test") This is a test but that's a pain, so the small number of existing prints which used a comma as argument separators were updated to use addition, so now we're concatenating a string to produce one arg instead of supplying multiple "arguments" that would be misinterpreted as a tuple in print(). It's fine to add the import statement if it's needed. Change-Id: Idac00e1389b79ee65da4a2eb6ef3246551b66843 Signed-off-by:
Mats Wichmann <mats@linux.com> Signed-off-by:
Ibrahim Esmat <iesmat@microsoft.com>
-
- 07 Nov, 2017 1 commit
-
-
Veeraj Khokale authored
According to COAP spec section 4.5, confirmable duplicated requests should not be silently dropped, instead they need to be acknowledged every time. Therefore check if message is confirmable before dropping it. Change-Id: Ie7a49da9f7869fc11f679054fe8dd5c78684eb53 Signed-off-by:
Veeraj Khokale <veeraj.sk@samsung.com>
-
- 06 Nov, 2017 1 commit
-
-
Srikrishna Gurugubelli authored
Introspection resource was not checking for interface filter properly resulting in missing mandatory properties expected on baseline interface query. Signed-off-by:
Srikrishna Gurugubelli <srikguru@microsoft.com> Change-Id: I920d4a1ecc4442e34fc1de8633291de6f341a123 Bug: https://jira.iotivity.org/browse/IOT-2618
-
- 02 Nov, 2017 1 commit
-
-
Oleksii Beketov authored
Improper callbacks registration removed. Manufacturer certificate related info and ciphers callbacks are already set in StartOwnershipTransfer. Change-Id: Id1cb14cb31e4325d17961737fa87e0224735235a Signed-off-by:
Oleksii Beketov <ol.beketov@samsung.com>
-
- 31 Oct, 2017 2 commits
-
-
Dan Mihai authored
Return an error response when a Client tries to post a role with a mistmatched public key. Change-Id: Ie689f862d1534093026979c076239fdf604b91e1 Signed-off-by:
Dan Mihai <Daniel.Mihai@microsoft.com>
-
Dan Mihai authored
Avoid persisting the cert null terminator, to be able to return the original cert for RETRIEVE. Add the null terminator just temporarily, before calling mbedtls_x509_crt_parse(). This patch allows CT1.7.4.5 to make progress past Check_3. This test case still fails later on - to be investigated. Change-Id: Icda1afaad478548682599f97ff46b3017b01588e Signed-off-by:
Dan Mihai <Daniel.Mihai@microsoft.com>
-