Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 32c3fb81 authored by Martin Brabham's avatar Martin Brabham
Browse files

If a LINK_KEY_REQUEST comes in without us calling CreateBond then

it isn't explicitly triggered by the local stack.

Link verification happens over EnforceSecurityPolicy and will trigger pairing locally.

So Assume LINK_KEY_REQUEST without CreateBond or EnforceSecurityPolicy to be triggered by remote

Bug: 162984360
Test: cert/run --host SecurityTest
Tag: #gd-refactor
Change-Id: I3fbebcdb735dbb358fa861b672ed94969fbab895
parent 61fc7d0c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -235,7 +235,7 @@ void SecurityManagerImpl::HandleEvent(T packet) {
    auto record =
        security_database_.FindOrCreate(hci::AddressWithType{bd_addr, hci::AddressType::PUBLIC_DEVICE_ADDRESS});
    LOG_WARN("Dispatch #2");
    DispatchPairingHandler(record, true);
    DispatchPairingHandler(record, false);
    entry = pairing_handler_map_.find(bd_addr);
  }
  entry->second->OnReceive(packet);