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 */>;
148 …std::variant<PairingFailure, EncryptionChangeView, EncryptionKeyRefreshCompleteView> WaitEncryptio… in WaitEncryptionChanged()
150 …if (e.type != PairingEvent::HCI_EVENT) return PairingFailure("Was expecting HCI event but received… in WaitEncryptionChanged()
152 if (!e.hci_event->IsValid()) return PairingFailure("Received invalid HCI event"); in WaitEncryptionChanged()
157 return PairingFailure("Invalid Encryption Change packet received"); in WaitEncryptionChanged()
165 return PairingFailure("Invalid Key Refresh packet received"); in WaitEncryptionChanged()
170 …return PairingFailure("Was expecting Encryption Change or Key Refresh Complete but received someth… in WaitEncryptionChanged()
181 std::variant<PairingFailure, KeyExchangeResult> ExchangePublicKeys(const InitialInformations& i,
366 std::variant<typename CodeToPacketView<CODE>::type, PairingFailure> WaitPacket() {
370 return PairingFailure(
374 return PairingFailure(
378 return PairingFailure(
384 return PairingFailure("Malformed L2CAP packet received!");
391 if (!pkt.IsValid()) return PairingFailure("Malformed " + CodeText(CODE) + " packet");
392 return PairingFailure(/*FROM_HERE,*/
397 return PairingFailure(/*FROM_HERE,*/
404 if (!pkt.IsValid()) return PairingFailure("Malformed " + CodeText(CODE) + " packet");