- 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 1 commit
-
-
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>
-
- 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>
-
- 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>
-
- 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>
-
- 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 1 commit
-
-
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>
-
- 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 4 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>
-
Nathan Heldt-Sheller authored
Although the Security Spec is silent on whether DOXS has implicit access (that is, a permanent ACE, or default ACE that can't be modified) to the /crl Resource. CTT interprets that to mean it doesn't have implicit access, even though DOXS can access related configuration Resources (/doxm, /pstat, /acl2, /cred). Rather than fight over it I'm changing because either way works, it's just more effort for OBT with implicit access reduced. Still a reasonable inference (though not normatively supported). Change-Id: I86f8a7f1ed217b7bdeb3cae2ab015fb035cd8940 Signed-off-by:
Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
-
Mats Wichmann authored
In recently introduced code, a pair of temporary buffers is used to help convert ascii digits to a number; one is a static allocation but the other is OICMalloc'd, but was not freed. Change-Id: Iab1e8ce48c20aa6332d375c891f6b38ecb6939e7 Bug: https://jira.iotivity.org/browse/IOT-2863Signed-off-by:
Mats Wichmann <mats@linux.com>
-
- 28 Oct, 2017 2 commits
-
-
Nathan Heldt-Sheller authored
Right now the /doxm handler code to disable the anon cipher suite is not correct, so it's removed in this patch. Instead, the /cred code disables the anon suite after calculating PSK. If there is a request is over secure channel, but requester ID is Nil UUID, then (in current IoTivity at least) it means that this request arrived over DTLS established via anon cipher suite. A successful connection has taken place, and that's an opportunity to disable the anon cipher suite so no other anon connections can be made during OTM. For now, we're just removing the incorrect /doxm code to disable, and leaving the more aggressive disable timing for another release. See [IOT-2858] for more info. Change-Id: I99c2a48abbfc6f3e5aa52385ee5b778c4c80ccfc Signed-off-by:
Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
-
akk0rd authored
Fixed false generating dat file, added wrapper functions with rowner parameter Change-Id: Ia8badb9b0b78de5f620f8dbad6f070c1276ebf74 Signed-off-by:
akk0rd <v.riznyk@samsung.com>
-
- 27 Oct, 2017 1 commit
-
-
Abhishek Pandey authored
JIRA IOT-2845: https://jira.iotivity.org/browse/IOT-2845 This seems to be side effect of JIRA [IOT-2539]. Build is breaking on some linux platforms (i.e. i686). Most compilation errors are related to printf format specifiers. Probably this wasn't caught by jenkins when merging patch for IOT-2845 due to its system configuration matches expected size for all data types. Fixed the error by using portable format specifiers while logging. %PRId - for int64_t %PRIu - for unit64_t %PRIuPTR - for size_t (unsigned) Change-Id: I30a21cacdddc84776392100ee783ccbe7e1eae0d Signed-off-by:
Abhishek Pandey <abhi.siso@samsung.com>
-
- 26 Oct, 2017 2 commits
-
-
Dan Mihai authored
mbedtls_pk_parse_key was not able to parse the key converted to DER by GetDerKey(). It encountered in the DER an unexpected key format version. However, mbedtls_pk_parse_key is able to parse correctly the original PEM format of the same key. This patch allows CT1.7.4.5 to establish a connection to an IoTivity server. This test case still fails later on - to be investigated. Change-Id: I933ea9d3b761ed159faa2c4f371890e477caf23f Signed-off-by:
Dan Mihai <Daniel.Mihai@microsoft.com>
-
Nathan Heldt-Sheller authored
These functions were applied at incorrect times (e.g. if a normal Update was rejected due to read-only properties during OTM, the entire system would "restore" to a wrong state). They were also wrong, in that they restored some values, left others unchanged, and set others to wrong values (e.g. presumed JustWorks OTM). Also, the duplicate message logic was not being used to any consistent effect and causing warnings. It's also completely optional and so was removed. Change-Id: I23d23f946fbafe02cdc2d2ac6ac46abcedd1f149 Signed-off-by:
Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
-