Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmelveilleux committed May 16, 2022
1 parent 585f422 commit 3920bea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/credentials/FabricTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ class DLL_EXPORT FabricInfo

Crypto::P256Keypair * GetOperationalKey() const
{
if (mOperationalKey == nullptr)
if (!mHasExternallyOwnedOperationalKey && (mOperationalKey == nullptr))
{
// TODO: Refactor the following two cases to go through SetOperationalKey()
#ifdef ENABLE_HSM_CASE_OPS_KEY
mOperationalKey = chip::Platform::New<Crypto::P256KeypairHSM>();
mOperationalKey->CreateOperationalKey(mFabricIndex);
Expand Down

0 comments on commit 3920bea

Please sign in to comment.