• Home
  • Raw
  • Download

Lines Matching refs:PairingFailure

85 using CommandViewOrFailure = std::variant<CommandView, PairingFailure>;
87 using Phase1ResultOrFailure = std::variant<PairingFailure, Phase1Result>;
91 using Stage1ResultOrFailure = std::variant<PairingFailure, Stage1Result>;
92 using Stage2ResultOrFailure = std::variant<PairingFailure, Octet16 /* LTK */>;
93 using DistributedKeysOrFailure = std::variant<PairingFailure, DistributedKeys, std::monostate>;
96 using LegacyStage1ResultOrFailure = std::variant<PairingFailure, LegacyStage1Result>;
97 using StkOrFailure = std::variant<PairingFailure, Octet16 /* STK */>;
154 …std::variant<PairingFailure, EncryptionChangeView, EncryptionKeyRefreshCompleteView> WaitEncryptio… in WaitEncryptionChanged()
156 …if (e.type != PairingEvent::HCI_EVENT) return PairingFailure("Was expecting HCI event but received… in WaitEncryptionChanged()
158 if (!e.hci_event->IsValid()) return PairingFailure("Received invalid HCI event"); in WaitEncryptionChanged()
163 return PairingFailure("Invalid Encryption Change packet received"); in WaitEncryptionChanged()
171 return PairingFailure("Invalid Key Refresh packet received"); in WaitEncryptionChanged()
176 …return PairingFailure("Was expecting Encryption Change or Key Refresh Complete but received someth… in WaitEncryptionChanged()
179 std::variant<PairingFailure, hci::LeLongTermKeyRequestView> WaitLeLongTermKeyRequest() { in WaitLeLongTermKeyRequest()
181 …if (e.type != PairingEvent::HCI_EVENT) return PairingFailure("Was expecting HCI event but received… in WaitLeLongTermKeyRequest()
183 if (!e.hci_event->IsValid()) return PairingFailure("Received invalid HCI event"); in WaitLeLongTermKeyRequest()
185 …if (e.hci_event->GetEventCode() != hci::EventCode::LE_META_EVENT) return PairingFailure("Was expec… in WaitLeLongTermKeyRequest()
189 return PairingFailure("Invalid LE Event received"); in WaitLeLongTermKeyRequest()
193 return PairingFailure("Was expecting Long Term Key Request"); in WaitLeLongTermKeyRequest()
198 return PairingFailure("Invalid LE Long Term Key Request received"); in WaitLeLongTermKeyRequest()
212 std::variant<PairingFailure, KeyExchangeResult> ExchangePublicKeys(const InitialInformations& i,
432 std::variant<typename CodeToPacketView<CODE>::type, PairingFailure> WaitPacket() {
436 return PairingFailure(
440 return PairingFailure(
444 return PairingFailure(
450 return PairingFailure("Malformed L2CAP packet received!");
457 if (!pkt.IsValid()) return PairingFailure("Malformed " + CodeText(CODE) + " packet");
458 return PairingFailure(/*FROM_HERE,*/
463 return PairingFailure(/*FROM_HERE,*/
470 if (!pkt.IsValid()) return PairingFailure("Malformed " + CodeText(CODE) + " packet");
484 …std::variant<bluetooth::security::PairingConfirmView, bluetooth::security::PairingFailure> WaitPai…