Skip to content

Commit

Permalink
added TODO about issue project-chip#9825
Browse files Browse the repository at this point in the history
  • Loading branch information
Marty Leisner authored and Marty Leisner committed Sep 19, 2021
1 parent dc5b682 commit 900d5bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/credentials/DeviceAttestationConstructor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ CHIP_ERROR DeconstructAttestationElements(const ByteSpan & attestationElements,
ReturnErrorOnFailure(tlvReader.EnterContainer(containerType));

CHIP_ERROR error = CHIP_NO_ERROR;

// TODO: per conversation with Tennessee, shold be two consecutive loops (rather than one big
// loop, since the contextTags come before the profileTags)
while ((error = tlvReader.Next()) == CHIP_NO_ERROR)
{
uint64_t tag = tlvReader.GetTag();
Expand Down Expand Up @@ -139,6 +142,8 @@ CHIP_ERROR DeconstructAttestationElements(const ByteSpan & attestationElements,
}

// TODO: have independent vendorId and profileNum entries map to each vendor Reserved entry
// Have a class for vendor reserved data, discussed in:
// https://github.com/project-chip/connectedhomeip/issues/9825
CHIP_ERROR ConstructAttestationElements(const ByteSpan & certificationDeclaration, const ByteSpan & attestationNonce,
uint32_t timestamp, const ByteSpan & firmwareInfo, ByteSpan * vendorReservedArray,
size_t vendorReservedArraySize, uint16_t vendorId, uint16_t profileNum,
Expand Down

0 comments on commit 900d5bf

Please sign in to comment.