Skip to content

Commit

Permalink
Fix naming of public key param of ExampleOperationalCredentialsIssuer (
Browse files Browse the repository at this point in the history
…#9629)

The public key field is named "ephemeralKey" which is presumably a copy
paste error from chip-tool which generates a new credential every time
it runs. Fix it to "pubkey" which matches the definition.
  • Loading branch information
mspang authored and pull[bot] committed Sep 29, 2021
1 parent 38285b0 commit c1bab4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/ExampleOperationalCredentialsIssuer.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class DLL_EXPORT ExampleOperationalCredentialsIssuer : public OperationalCredent
* This method is expected to be called once all the checks (e.g. device attestation, CSR verification etc)
* have been completed, or not required (e.g. for self trusted devices such as commissioner apps).
*/
CHIP_ERROR GenerateNOCChainAfterValidation(NodeId nodeId, FabricId fabricId, const Crypto::P256PublicKey & ephemeralKey,
CHIP_ERROR GenerateNOCChainAfterValidation(NodeId nodeId, FabricId fabricId, const Crypto::P256PublicKey & pubkey,
MutableByteSpan & rcac, MutableByteSpan & icac, MutableByteSpan & noc);

private:
Expand Down

0 comments on commit c1bab4b

Please sign in to comment.