Skip to content

Commit

Permalink
Update MTRCSRInfo.mm
Browse files Browse the repository at this point in the history
  • Loading branch information
nivi-apple authored Apr 10, 2023
1 parent 6e67b49 commit 1cd4c69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/darwin/Framework/CHIP/MTRCSRInfo.mm
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ - (instancetype)initWithCSRNonce:(NSData *)csrNonce
{
// We don't care about the nonce.
chip::ByteSpan ignoredNonce;
VerifyOrReturnValue(ExtracCSRAndNonce(csrElementsTLV, csr, ignoredNonce) == CHIP_NO_ERROR, nil);
VerifyOrReturnValue(ExtractCSRAndNonce(csrElementsTLV, csr, ignoredNonce) == CHIP_NO_ERROR, nil);
}

return [self initWithCSR:AsData(csr) csrNonce:csrNonce csrElementsTLV:csrElementsTLV attestationSignature:attestationSignature];
Expand All @@ -78,7 +78,7 @@ - (instancetype)initWithCSRNonce:(NSData *)csrNonce
- (instancetype)initWithCSRElementsTLV:(MTRTLVBytes)csrElementsTLV attestationSignature:(NSData *)attestationSignature
{
chip::ByteSpan csr, csrNonce;
VerifyOrReturnValue(ExtracCSRAndNonce(csrElementsTLV, csr, csrNonce) == CHIP_NO_ERROR, nil);
VerifyOrReturnValue(ExtractCSRAndNonce(csrElementsTLV, csr, csrNonce) == CHIP_NO_ERROR, nil);

return [self initWithCSR:AsData(csr)
csrNonce:AsData(csrNonce)
Expand Down

0 comments on commit 1cd4c69

Please sign in to comment.