You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DeconstructAttestationElements requires that no context-specific tags are present other than the ones it knows about. This means that future specification versions will not be able to add fields to the attestation-elements due to existing commissioners failing with the new devices.
Proposed Solution
Allow unknown tags, for future-proofing.
The text was updated successfully, but these errors were encountered:
DeviceAttestationDeconstructor was too stringent in expecting no
unknown tags at all, preventing future tags from breaking backward
compatibility when they are benign if ignored.
- Fix DeviceAttestationDeconstructor to skip unexpected tags
- Simplify logic for ensuring in-order tags
- Fix a corner case of the vendor-specific data iterator not
caught before
- Clean-up extraction of profileNum in CHIP tags
Fixesproject-chip#11247
* Make device attestation data parser future proof
DeviceAttestationDeconstructor was too stringent in expecting no
unknown tags at all, preventing future tags from breaking backward
compatibility when they are benign if ignored.
- Fix DeviceAttestationDeconstructor to skip unexpected tags
- Simplify logic for ensuring in-order tags
- Fix a corner case of the vendor-specific data iterator not
caught before
- Clean-up extraction of profileNum in CHIP tags
Fixes#11247
* Restyled by clang-format
* Update src/lib/core/CHIPTLVTags.h
* Update src/credentials/DeviceAttestationVendorReserved.h
Co-authored-by: Boris Zbarsky <[email protected]>
* Add mandatory existence of timestamp
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Boris Zbarsky <[email protected]>
Problem
DeconstructAttestationElements
requires that no context-specific tags are present other than the ones it knows about. This means that future specification versions will not be able to add fields to theattestation-elements
due to existing commissioners failing with the new devices.Proposed Solution
Allow unknown tags, for future-proofing.
The text was updated successfully, but these errors were encountered: