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()
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()
125 i.OnPairingFinished(std::get<PairingFailure>(stage1result)); in PairingMain()
131 if (std::holds_alternative<PairingFailure>(stage2result)) { in PairingMain()
133 i.OnPairingFinished(std::get<PairingFailure>(stage2result)); in PairingMain()
147 if (std::holds_alternative<PairingFailure>(encryption_change_result)) { in PairingMain()
148 i.OnPairingFinished(std::get<PairingFailure>(encryption_change_result)); in PairingMain()
154 i.OnPairingFinished(PairingFailure("Encryption change failed")); in PairingMain()
161 i.OnPairingFinished(PairingFailure("Encryption key refresh failed")); in PairingMain()
165 i.OnPairingFinished(PairingFailure("Unknown case of encryption change result")); in PairingMain()
171 if (std::holds_alternative<PairingFailure>(keyExchangeStatus)) { in PairingMain()
172 i.OnPairingFinished(std::get<PairingFailure>(keyExchangeStatus)); in PairingMain()
223 if (std::holds_alternative<PairingFailure>(response) && in ExchangePairingFeature()
224 std::get<PairingFailure>(response).received_code_ == Code::SECURITY_REQUEST) { in ExchangePairingFeature()
229 if (std::holds_alternative<PairingFailure>(response)) { in ExchangePairingFeature()
234 return std::get<PairingFailure>(response); in ExchangePairingFeature()
246 return PairingFailure("You must pass PairingRequest as a initial information to slave!"); in ExchangePairingFeature()
251 if (!pairing_request->IsValid()) return PairingFailure("Malformed PairingRequest"); in ExchangePairingFeature()
257 if (std::holds_alternative<PairingFailure>(request)) { in ExchangePairingFeature()
258 LOG_INFO("%s", std::get<PairingFailure>(request).message.c_str()); in ExchangePairingFeature()
260 return std::get<PairingFailure>(request); in ExchangePairingFeature()
322 if (std::holds_alternative<PairingFailure>(keys)) { in DistributeKeys()
335 if (std::holds_alternative<PairingFailure>(keys)) { in DistributeKeys()
354 if (std::holds_alternative<PairingFailure>(packet)) { in ReceiveKeys()
356 return std::get<PairingFailure>(packet); in ReceiveKeys()
363 if (std::holds_alternative<PairingFailure>(packet)) { in ReceiveKeys()
365 return std::get<PairingFailure>(packet); in ReceiveKeys()
374 if (std::holds_alternative<PairingFailure>(packet)) { in ReceiveKeys()
376 return std::get<PairingFailure>(packet); in ReceiveKeys()
383 if (std::holds_alternative<PairingFailure>(iapacket)) { in ReceiveKeys()
387 return std::get<PairingFailure>(iapacket); in ReceiveKeys()
398 if (std::holds_alternative<PairingFailure>(packet)) { in ReceiveKeys()
400 return std::get<PairingFailure>(packet); in ReceiveKeys()