Skip to content

Commit

Permalink
Revise for compatibility with project-chip#13330
Browse files Browse the repository at this point in the history
  • Loading branch information
msandstedt committed Jan 7, 2022
1 parent 2fcc219 commit fac4c76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/OperationalDeviceProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ CHIP_ERROR OperationalDeviceProxy::Emplace(const Transport::PeerAddress & addr,
{
mPeerId = peerId;
mState = State::Initialized;
if (session && mInitParams.sessionManager->GetSecureSession(session.Get()))
if (session && session.Get()->AsSecureSession())
{
mSecureSession.Grab(session.Get());
mState = State::SecureConnected;
Expand Down
5 changes: 1 addition & 4 deletions src/commissioner/States.h
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,7 @@ struct CapturingAttestationChallenge : Base<TContext>
{}
void Enter()
{
const ByteSpan challenge = this->mCommissionee.mSystemState->SessionMgr()
->GetSecureSession(this->mCommissionee.mPaseSession.Get())
->GetCryptoContext()
.GetAttestationChallenge();
ByteSpan challenge = this->mCommissionee.mPaseSession.Get()->AsSecureSession()->GetCryptoContext().GetAttestationChallenge();
if (mAttestationInformation.Challenge()->Set(challenge) == CHIP_NO_ERROR)
{
this->mCtx.Dispatch(TContext::Event::template Create<Events::AttestationInformation>(mAttestationInformation));
Expand Down

0 comments on commit fac4c76

Please sign in to comment.