Skip to content

Commit

Permalink
Update operational credentials code to match the specifications (#7500)
Browse files Browse the repository at this point in the history
* Move trusted root certs to operational credentials cluster

* update zap files

* Regenerate zap code and move trusted root code to op cred cluster

* Send root cert before sending operational certificates

* Add support for ICA certificates

* fix telink build

* fix build after rebase

* add comment to describe why 2 certs are being stored

* address review comments
  • Loading branch information
pan-apple authored and pull[bot] committed Jun 21, 2021
1 parent b87bb7b commit 2113162
Show file tree
Hide file tree
Showing 98 changed files with 2,380 additions and 3,735 deletions.
87 changes: 17 additions & 70 deletions examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"featureLevel": 29,
"featureLevel": 35,
"creator": "zap",
"keyValuePairs": [
{
Expand Down Expand Up @@ -3009,6 +3009,22 @@
"source": "client",
"incoming": 1,
"outgoing": 1
},
{
"name": "AddTrustedRootCertificate",
"code": 161,
"mfgCode": null,
"source": "client",
"incoming": 1,
"outgoing": 0
},
{
"name": "RemoveTrustedRootCertificate",
"code": 162,
"mfgCode": null,
"source": "client",
"incoming": 1,
"outgoing": 0
}
],
"attributes": [
Expand Down Expand Up @@ -3095,75 +3111,6 @@
}
]
},
{
"name": "Trusted Root Certificates",
"code": 63,
"mfgCode": null,
"define": "TRUSTED_ROOT_CERTIFICATES_CLUSTER",
"side": "client",
"enabled": 0,
"commands": [
{
"name": "AddTrustedRootCertificate",
"code": 0,
"mfgCode": null,
"source": "client",
"incoming": 1,
"outgoing": 1
},
{
"name": "RemoveTrustedRootCertificate",
"code": 1,
"mfgCode": null,
"source": "client",
"incoming": 1,
"outgoing": 1
}
],
"attributes": [
{
"name": "cluster revision",
"code": 65533,
"mfgCode": null,
"side": "client",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0001",
"reportable": 0,
"minInterval": 0,
"maxInterval": 65344,
"reportableChange": 0
}
]
},
{
"name": "Trusted Root Certificates",
"code": 63,
"mfgCode": null,
"define": "TRUSTED_ROOT_CERTIFICATES_CLUSTER",
"side": "server",
"enabled": 1,
"commands": [],
"attributes": [
{
"name": "cluster revision",
"code": 65533,
"mfgCode": null,
"side": "server",
"included": 1,
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0x0001",
"reportable": 0,
"minInterval": 0,
"maxInterval": 65344,
"reportableChange": 0
}
]
},
{
"name": "Door Lock",
"code": 257,
Expand Down
Loading

0 comments on commit 2113162

Please sign in to comment.