Align naming in Operational Credentials cluster with the spec. (#24472)
* Align naming in Operational Credentials cluster with the spec.
* Regenerate generated files.
diff --git a/examples/lighting-app/lighting-common/lighting-app.matter b/examples/lighting-app/lighting-common/lighting-app.matter
index 623877d..2269e90 100644
--- a/examples/lighting-app/lighting-common/lighting-app.matter
+++ b/examples/lighting-app/lighting-common/lighting-app.matter
@@ -1250,8 +1250,13 @@
}
server cluster OperationalCredentials = 62 {
- enum OperationalCertStatus : ENUM8 {
- kSuccess = 0;
+ enum CertificateChainTypeEnum : ENUM8 {
+ kDACCertificate = 1;
+ kPAICertificate = 2;
+ }
+
+ enum NodeOperationalCertStatusEnum : ENUM8 {
+ kOk = 0;
kInvalidPublicKey = 1;
kInvalidNodeOpId = 2;
kInvalidNOC = 3;
@@ -1269,17 +1274,17 @@
fabric_idx fabricIndex = 254;
}
- fabric_scoped struct FabricDescriptor {
+ fabric_scoped struct FabricDescriptorStruct {
octet_string<65> rootPublicKey = 1;
- vendor_id vendorId = 2;
- fabric_id fabricId = 3;
- node_id nodeId = 4;
+ vendor_id vendorID = 2;
+ fabric_id fabricID = 3;
+ node_id nodeID = 4;
char_string<32> label = 5;
fabric_idx fabricIndex = 254;
}
readonly attribute access(read: administer) NOCStruct NOCs[] = 0;
- readonly attribute FabricDescriptor fabrics[] = 1;
+ readonly attribute FabricDescriptorStruct fabrics[] = 1;
readonly attribute int8u supportedFabrics = 2;
readonly attribute int8u commissionedFabrics = 3;
readonly attribute OCTET_STRING trustedRootCertificates[] = 4;
@@ -1292,7 +1297,7 @@
}
request struct CertificateChainRequestRequest {
- INT8U certificateType = 0;
+ CertificateChainTypeEnum certificateType = 0;
}
request struct CSRRequestRequest {
@@ -1322,12 +1327,12 @@
}
request struct AddTrustedRootCertificateRequest {
- OCTET_STRING rootCertificate = 0;
+ OCTET_STRING rootCACertificate = 0;
}
response struct AttestationResponse = 1 {
OCTET_STRING attestationElements = 0;
- OCTET_STRING signature = 1;
+ OCTET_STRING attestationSignature = 1;
}
response struct CertificateChainResponse = 3 {
@@ -1340,7 +1345,7 @@
}
response struct NOCResponse = 8 {
- OperationalCertStatus statusCode = 0;
+ NodeOperationalCertStatusEnum statusCode = 0;
optional fabric_idx fabricIndex = 1;
optional CHAR_STRING debugText = 2;
}