Skip to content

Commit

Permalink
Mark UnauthenticatedSession active when initiating a PASE session (#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien-apple authored and pull[bot] committed Sep 6, 2023
1 parent 96aea12 commit 2192083
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/protocols/secure_channel/PASESession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ CHIP_ERROR PASESession::Pair(SessionManager & sessionManager, uint32_t peerSetUp
mRole = CryptoContext::SessionRole::kInitiator;

mExchangeCtxt = exchangeCtxt;

// When commissioning starts, the peer is assumed to be active.
mExchangeCtxt->GetSessionHandle()->AsUnauthenticatedSession()->MarkActiveRx();

mExchangeCtxt->SetResponseTimeout(kSpake2p_Response_Timeout + mExchangeCtxt->GetSessionHandle()->GetAckTimeout());

mLocalMRPConfig = mrpLocalConfig;
Expand Down

0 comments on commit 2192083

Please sign in to comment.