Lines Matching refs:PairingFailure
51 …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()
76 …i.OnPairingFinished(PairingFailure("Resulting key size is bad", PairingFailedReason::ENCRYPTION_KE… in PairingMain()
102 if (std::holds_alternative<PairingFailure>(key_exchange_result)) { in PairingMain()
104 i.OnPairingFinished(std::get<PairingFailure>(key_exchange_result)); in PairingMain()
112 if (std::holds_alternative<PairingFailure>(stage1result)) { in PairingMain()
113 i.OnPairingFinished(std::get<PairingFailure>(stage1result)); in PairingMain()
119 if (std::holds_alternative<PairingFailure>(stage_2_result)) { in PairingMain()
120 i.OnPairingFinished(std::get<PairingFailure>(stage_2_result)); in PairingMain()
140 if (std::holds_alternative<PairingFailure>(stage1result)) { in PairingMain()
142 i.OnPairingFinished(std::get<PairingFailure>(stage1result)); in PairingMain()
148 if (std::holds_alternative<PairingFailure>(stage2result)) { in PairingMain()
150 i.OnPairingFinished(std::get<PairingFailure>(stage2result)); in PairingMain()
169 if (std::holds_alternative<PairingFailure>(encryption_change_result)) { in PairingMain()
170 i.OnPairingFinished(std::get<PairingFailure>(encryption_change_result)); in PairingMain()
176 i.OnPairingFinished(PairingFailure("Encryption change failed")); in PairingMain()
183 i.OnPairingFinished(PairingFailure("Encryption key refresh failed")); in PairingMain()
187 i.OnPairingFinished(PairingFailure("Unknown case of encryption change result")); in PairingMain()
193 if (std::holds_alternative<PairingFailure>(keyExchangeStatus)) { in PairingMain()
194 i.OnPairingFinished(std::get<PairingFailure>(keyExchangeStatus)); in PairingMain()
246 if (std::holds_alternative<PairingFailure>(response) && in ExchangePairingFeature()
247 std::get<PairingFailure>(response).received_code_ == Code::SECURITY_REQUEST) { in ExchangePairingFeature()
252 if (std::holds_alternative<PairingFailure>(response)) { in ExchangePairingFeature()
257 return std::get<PairingFailure>(response); in ExchangePairingFeature()
269 … return PairingFailure("You must pass PairingRequest as a initial information to peripheral!"); in ExchangePairingFeature()
274 if (!pairing_request->IsValid()) return PairingFailure("Malformed PairingRequest"); in ExchangePairingFeature()
280 if (std::holds_alternative<PairingFailure>(request)) { in ExchangePairingFeature()
281 LOG_INFO("%s", std::get<PairingFailure>(request).message.c_str()); in ExchangePairingFeature()
283 return std::get<PairingFailure>(request); in ExchangePairingFeature()
293 return PairingFailure("Resulting key size is bad", PairingFailedReason::ENCRYPTION_KEY_SIZE); in ExchangePairingFeature()
353 if (std::holds_alternative<PairingFailure>(keys)) { in DistributeKeys()
370 if (std::holds_alternative<PairingFailure>(keys)) { in DistributeKeys()
393 if (std::holds_alternative<PairingFailure>(packet)) { in ReceiveKeys()
395 return std::get<PairingFailure>(packet); in ReceiveKeys()
402 if (std::holds_alternative<PairingFailure>(packet)) { in ReceiveKeys()
404 return std::get<PairingFailure>(packet); in ReceiveKeys()
413 if (std::holds_alternative<PairingFailure>(packet)) { in ReceiveKeys()
415 return std::get<PairingFailure>(packet); in ReceiveKeys()
422 if (std::holds_alternative<PairingFailure>(iapacket)) { in ReceiveKeys()
426 return std::get<PairingFailure>(iapacket); in ReceiveKeys()
437 if (std::holds_alternative<PairingFailure>(packet)) { in ReceiveKeys()
439 return std::get<PairingFailure>(packet); in ReceiveKeys()