Skip to content

Commit

Permalink
changing Logs to ScopedNodeID instead of just NodeID
Browse files Browse the repository at this point in the history
  • Loading branch information
Alami-Amine committed Feb 6, 2025
1 parent df17402 commit ba43ac1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/protocols/secure_channel/CASESession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1381,8 +1381,8 @@ CHIP_ERROR CASESession::HandleSigma2Resume(System::PacketBufferHandle && msg)
GetRemoteSessionParameters());
}

ChipLogDetail(SecureChannel, "Peer with NodeID 0x" ChipLogFormatX64 " assigned session key ID %d", ChipLogValueX64(mPeerNodeId),
parsedSigma2Resume.responderSessionId);
ChipLogDetail(SecureChannel, "Peer: " ChipLogFormatScopedNodeId " assigned session key ID %d",
ChipLogValueScopedNodeId(GetPeer()), parsedSigma2Resume.responderSessionId);
SetPeerSessionId(parsedSigma2Resume.responderSessionId);

if (mSessionResumptionStorage != nullptr)
Expand Down Expand Up @@ -1563,8 +1563,8 @@ CHIP_ERROR CASESession::HandleSigma2(System::PacketBufferHandle && msg)
ReturnErrorOnFailure(responderPublicKey.ECDSA_validate_msg_signature(msgR2SignedSpan.data(), msgR2SignedSpan.size(),
parsedSigma2TBEData.tbsData2Signature));

ChipLogDetail(SecureChannel, "Peer with NodeID 0x" ChipLogFormatX64 " assigned session key ID %d", ChipLogValueX64(mPeerNodeId),
parsedSigma2.responderSessionId);
ChipLogDetail(SecureChannel, "Peer: " ChipLogFormatScopedNodeId " assigned session key ID %d",
ChipLogValueScopedNodeId(GetPeer()), parsedSigma2.responderSessionId);
SetPeerSessionId(parsedSigma2.responderSessionId);

std::copy(parsedSigma2TBEData.resumptionId.begin(), parsedSigma2TBEData.resumptionId.end(), mNewResumptionId.begin());
Expand Down

0 comments on commit ba43ac1

Please sign in to comment.