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 Feb 1, 2022
1 parent 6e6cbdd commit ef6f5bb
Show file tree
Hide file tree
Showing 2 changed files with 3 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
6 changes: 2 additions & 4 deletions src/commissioner/States.h
Original file line number Diff line number Diff line change
Expand Up @@ -390,10 +390,8 @@ 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 ef6f5bb

Please sign in to comment.