- 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>
-
- 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>
-
- 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>
-
- 11 Dec, 2017 1 commit
-
-
Oleksii Beketov authored
Multiple ownership enable Change-Id: Ic6cff37ada8f84417c623bead93539f73d61b68d Signed-off-by:
Oleksii Beketov <ol.beketov@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>
-
- 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 3 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>
-
- 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>
-
- 25 Oct, 2017 1 commit
-
-
Nathan Heldt-Sheller authored
See JIRA IOT-2830 for more information. Change-Id: If043f6705ccdede4630b469c13e1933a2b53af16 Signed-off-by:
Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
-
- 23 Oct, 2017 2 commits
-
-
Nathan Heldt-Sheller authored
The Update handler is still doing things such as self-updating /doxm.rowneruuid or /doxm.owned. Also, the logic for determining OTM start/stop is wrong. This patch cleans up the JustWorks flow as a template, and the same fix will be applied to Random PIN and Cert-based once verified and reviewed. Change-Id: Ieb68911de87cf816597352aec760b3ef85baa87d Signed-off-by:
Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
-
Nathan Heldt-Sheller authored
The fix to /cred.rowneruuid (from many to one) means we have to reset the single global rowneruuid also. Change-Id: I309e5bfe9926290785d4943d2b9358fc06448a20 Signed-off-by:
Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
-
- 21 Oct, 2017 1 commit
-
-
Nathan Heldt-Sheller authored
A recent patch over-wrote the fix to 2806 (patch 22855) so this is just a re-creation of 22855. However gerrit can't figure out how to re-apply 22855, and I don't know how to force it, so I'm just creating a new patch. Change-Id: I5c4b67a3cdfa1f9a4368fc8f7b24203da1644524 Signed-off-by:
Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
-
- 20 Oct, 2017 1 commit
-
-
Nathan Heldt-Sheller authored
There are a few cases of missing implicit access that are added by this patch: 1) DOXS has access to all SVRs 2) AMS and CMS have access to /pstat Change-Id: I7eebc86c88b392dc2a6447c64f3a216afee70b19 Signed-off-by:
Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
-
- 19 Oct, 2017 3 commits
-
-
Oleksandr Dmytrenko authored
Fixed doxm POST handler modifies values without request from OBT Change-Id: I4631063002ebf830160b772f55c9a9f139b78dbc Signed-off-by:
Oleksandr Dmytrenko <o.dmytrenko@samsung.com> Signed-off-by:
Dan Mihai <Daniel.Mihai@microsoft.com>
-
George Nash authored
When built with build option SECURED=0 some functions are no longer used due to preprocessor macros. The functions WithinBounds and IsEmptyCred were moved within the if defined(__WITH_DTLS__) || defined(__WITH_TLS__) macro Bug: https://jira.iotivity.org/browse/IOT-2539 Change-Id: I9c0e3fa57dee5531bd9661216f2b5160fb002f33 Signed-off-by:
George Nash <george.nash@intel.com>
-
Nathan Heldt-Sheller authored
The Parameter "p" in the /pstat "dos" Property is meant to be read-only in every Device Onboarding State. This fixes the Update handler to treat "p" as read-only. It also fixes the pstat->CBOR marshaling code to provide the option to omit "p". And it updates the provisioningclient code to omit "p" from Updates to /pstat. Change-Id: I25a92bd33e5476d7d5896021e42102762deb6c31 Signed-off-by:
Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
-
- 17 Oct, 2017 4 commits
-
-
Nathan Heldt-Sheller authored
The way CBOR->/pstat binary is written, the Properties in the current gPstat are added to the binary representation even if the CBOR payload doesn't contain that Property. This may be ok in most cases since it means that (if a Property is omitted) the gPstat value won't be changed from whatever it is. But this also means that if /pstat.dos.s is Updated, the /pstat.dos.s Property Update must be done after all other Properties, so that if a /pstat.dos.s update changes other /pstat Properties, the new values aren't subsequently overwritten. Change-Id: I07369355ec3141c40b5178cae41ba02e5e7813fc Signed-off-by:
Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
-
Nathan Heldt-Sheller authored
Fix a few log messages that are incorrectly logged as ERROR type. Change-Id: I417b148840fbc6c6df641b0101fdfc3233f8b511 Signed-off-by:
Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
-
Nathan Heldt-Sheller authored
The current parsing code will accept a v1 ACE in a V2 /acl payload and vice versa. It should at least ignore and skip the wrong-version ACE. Change-Id: I9cb3fc84671afe25a730484e4fb2904a0d3c5c95 Signed-off-by:
Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
-
Nathan Heldt-Sheller authored
Please cherry-pick this patch and re-run TC. Change-Id: Ic4cfd419bc11c76545e9e385993f4ae71c4bd52e Signed-off-by:
Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
-
- 16 Oct, 2017 4 commits
-
-
George Nash authored
The -Wformat= warning is given when the conversion specifier in a printf or scanf command does not match the value actually passed in. In this commit all of the issues are found in LOG functions. If type passed in was a variable size parameter like a pointer or size_t. The the PRIuPTR value from the inttypes.h header is used. For ssize_t variables the PRIdPTR was used. Bug: https://jira.iotivity.org/browse/IOT-2539 Change-Id: I4977253ac7ee68d2e80a26a0963b770b2ce87032 Signed-off-by:
George Nash <george.nash@intel.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/21771Tested-by:
jenkins-iotivity <jenkins@iotivity.org> Reviewed-by:
Dan Mihai <Daniel.Mihai@microsoft.com> (cherry picked from commit 60d89aa8 )
-
Aleksey authored
Fixing usage rownerid. Change-Id: I89f65d4f5ab404d2766fa179c26948439c16a686 Signed-off-by:
Oleksandr Dmytrenko <o.dmytrenko@samsung.com> Signed-off-by:
Aleksey Volkov <a.volkov@samsung.com>
-
Jongmin Choi authored
Add NULL check for reset profile Change-Id: Ic767c5af6c65dad64f355ab9bbfed8ad054d919b Signed-off-by:
Jongmin Choi <jminl.choi@samsung.com>
-
Alex Kelley authored
Change-Id: I6905b2c836d61d05b20a47b43c9ce777c2af0f61 Signed-off-by:
Alex Kelley <alexke@microsoft.com>
-
- 12 Oct, 2017 2 commits
-
-
George Nash authored
credresource.c: Removed the [-Wunused-const-variable=] warning The CRED_EMPTY_ROOT_MAP_SIZE was used in the past but is no longer referenced anywhere in the code. provisioningclient.c: Removed the [-Wunused-const-variable=] warning The SUPPORTED_PRMS array was used in the past but is no longer referenced anywhere in the code. ocserver.cpp Removed the [-Wunused-variable] warning Looking at the logs a instance that gDeviceUUID was used could not be found at any point in time. stacktest.cpp: Removed the [-Wunused-variable] warnings Variables peer, pinNumber, and pmSel were only used in Direct Pairing related unit tests which were removed as part of IOT-2306. provisioningclient.cpp: Removed the [-Wunused-function] warning The InputPdACL function was only used by the Direct Pairing code that was removed as part of IOT-2306. Bug: https://jira.iotivity.org/browse/IOT-2539 Bug: https://jira.iotivity.org/browse/IOT-2306 Change-Id: I80f52619a04ee7eafc83b79b886c1121f61a6ba1 Signed-off-by:
George Nash <george.nash@intel.com>
-
Nathan Heldt-Sheller authored
The RESET state should clear all the cm and tm bits before setting the two lsbs (RESET and TAKE_OWNER bits) to 0b01 for cm and 0b10 for tm. Change-Id: I2b602153ea806d51bb1367514463ac590d4353db Signed-off-by:
Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
-