Home
last modified time | relevance | path

Searched refs:PairingFailure (Results 1 – 10 of 10) sorted by relevance

/system/bt/gd/security/
Dpairing_handler_le.cc51 …i.OnPairingFinished(PairingFailure("User either did not accept the remote pairing, or the prompt t… in PairingMain()
60 if (std::holds_alternative<PairingFailure>(phase_1_result)) { in PairingMain()
65 i.OnPairingFinished(std::get<PairingFailure>(phase_1_result)); in PairingMain()
90 if (std::holds_alternative<PairingFailure>(key_exchange_result)) { in PairingMain()
92 i.OnPairingFinished(std::get<PairingFailure>(key_exchange_result)); in PairingMain()
100 if (std::holds_alternative<PairingFailure>(stage1result)) { in PairingMain()
101 i.OnPairingFinished(std::get<PairingFailure>(stage1result)); in PairingMain()
107 if (std::holds_alternative<PairingFailure>(stage_2_result)) { in PairingMain()
108 i.OnPairingFinished(std::get<PairingFailure>(stage_2_result)); in PairingMain()
123 if (std::holds_alternative<PairingFailure>(stage1result)) { in PairingMain()
[all …]
Dpairing_handler_le_secure_connections.cc28 std::variant<PairingFailure, KeyExchangeResult> PairingHandlerLe::ExchangePublicKeys(const InitialI… in ExchangePublicKeys()
40 return PairingFailure("Can't validate my own public key"); in ExchangePublicKeys()
52 if (std::holds_alternative<PairingFailure>(response)) { in ExchangePublicKeys()
53 return std::get<PairingFailure>(response); in ExchangePublicKeys()
69 return PairingFailure("Can't validate remote public key"); in ExchangePublicKeys()
183 if (std::holds_alternative<PairingFailure>(response)) { in DoSecureConnectionsStage2()
184 return std::get<PairingFailure>(response); in DoSecureConnectionsStage2()
190 return PairingFailure("Ea != Eb"); in DoSecureConnectionsStage2()
194 if (std::holds_alternative<PairingFailure>(response)) { in DoSecureConnectionsStage2()
195 return std::get<PairingFailure>(response); in DoSecureConnectionsStage2()
[all …]
Dpairing_failure.h29 struct PairingFailure { struct
46 PairingFailure(/*const base::Location& location, */ const std::string& message) in PairingFailure() function
49PairingFailure(/*const base::Location& location, */ const std::string& message, Code received_code) in PairingFailure() argument
52PairingFailure(/*const base::Location& location, */ const std::string& message, PairingFailedReaso… in PairingFailure() argument
Dpairing_handler_le.h85 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()
[all …]
Dpairing_handler_le_legacy.cc103 if (!response) return PairingFailure("Passkey did not arrive!"); in LegacyPasskeyEntry()
154 if (std::holds_alternative<PairingFailure>(sconfirm_pkt)) { in DoLegacyStage2()
155 return std::get<PairingFailure>(sconfirm_pkt); in DoLegacyStage2()
164 if (std::holds_alternative<PairingFailure>(random_pkt)) { in DoLegacyStage2()
165 return std::get<PairingFailure>(random_pkt); in DoLegacyStage2()
185 return PairingFailure("sconfirm does not match generated value"); in DoLegacyStage2()
205 if (std::holds_alternative<PairingFailure>(mconfirm_pkt)) { in DoLegacyStage2()
206 return std::get<PairingFailure>(mconfirm_pkt); in DoLegacyStage2()
215 if (std::holds_alternative<PairingFailure>(random_pkt)) { in DoLegacyStage2()
216 return std::get<PairingFailure>(random_pkt); in DoLegacyStage2()
[all …]
Dinitial_informations.h59 using PairingResultOrFailure = std::variant<PairingResult, PairingFailure>;
Dpairing_handler_le_unittest.cc164 EXPECT_CALL(*pairingResult, OnPairingFinished(VariantWith<PairingFailure>(_))).Times(1); in TEST_F()
/system/bt/gd/security/internal/
Dsecurity_manager_impl.cc106 NotifyDeviceBondFailed(address, PairingFailure("Already bonded")); in CreateBondLe()
363 if (!std::holds_alternative<PairingFailure>(status)) { in OnPairingHandlerComplete()
567 NotifyDeviceBondFailed(address, PairingFailure("Connection closed")); in OnConnectionClosedLe()
577 …NotifyDeviceBondFailed(pending_le_pairing_.address_, PairingFailure("Connection establishment fail… in OnConnectionFailureLe()
611 if (std::holds_alternative<PairingFailure>(pairing_result)) { in OnPairingFinished()
612 PairingFailure failure = std::get<PairingFailure>(pairing_result); in OnPairingFinished()
/system/bt/gd/security/test/
Dpairing_handler_le_pair_test.cc100 LOG_INFO("pairing with ... failed: %s", std::get<PairingFailure>(r).message.c_str()); in OnPairingFinishedMaster()
109 LOG_INFO("pairing with ... failed: %s", std::get<PairingFailure>(r).message.c_str()); in OnPairingFinishedSlave()
/system/bt/gd/security/pairing/
Dclassic_pairing_handler.cc93 result = PairingFailure(hci::ErrorCodeText(last_status_)); in Cancel()