Lines Matching refs:t

60 static void adb_disconnected(void* unused, atransport* t);
88 atransport* t = it->second.get(); in transport_from_callback_arg() local
89 if (!t) { in transport_from_callback_arg()
95 return t; in transport_from_callback_arg()
257 void send_auth_request(atransport* t) { in send_auth_request() argument
260 if (!adbd_auth_generate_token(t->token, sizeof(t->token))) { in send_auth_request()
268 p->msg.data_length = sizeof(t->token); in send_auth_request()
269 p->payload.assign(t->token, t->token + sizeof(t->token)); in send_auth_request()
270 send_packet(p, t); in send_auth_request()
273 void adbd_auth_verified(atransport* t) { in adbd_auth_verified() argument
275 handle_online(t); in adbd_auth_verified()
276 send_connect(t); in adbd_auth_verified()
279 static void adb_disconnected(void* unused, atransport* t) { in adb_disconnected() argument
281 CHECK(t->auth_id.has_value()); in adb_disconnected()
282 adbd_auth_notify_disconnect(auth_ctx, t->auth_id.value()); in adb_disconnected()
285 void adbd_auth_confirm_key(atransport* t) { in adbd_auth_confirm_key() argument
287 t->AddDisconnect(&adb_disconnect); in adbd_auth_confirm_key()
289 t->auth_id = adbd_auth_prompt_user_with_id(auth_ctx, t->auth_key.data(), t->auth_key.size(), in adbd_auth_confirm_key()
290 transport_to_callback_arg(t)); in adbd_auth_confirm_key()
292 adbd_auth_prompt_user(auth_ctx, t->auth_key.data(), t->auth_key.size(), in adbd_auth_confirm_key()
293 transport_to_callback_arg(t)); in adbd_auth_confirm_key()
297 void adbd_notify_framework_connected_key(atransport* t) { in adbd_notify_framework_connected_key() argument
298 t->auth_id = adbd_auth_notify_auth(auth_ctx, t->auth_key.data(), t->auth_key.size()); in adbd_notify_framework_connected_key()
358 void adbd_auth_tls_handshake(atransport* t) { in adbd_auth_tls_handshake() argument
367 std::thread([t]() { in adbd_auth_tls_handshake()
369 if (t->connection()->DoTlsHandshake(rsa_pkey, &auth_key)) { in adbd_auth_tls_handshake()
371 if (t->IsTcpDevice()) { in adbd_auth_tls_handshake()
372 t->auth_key = auth_key; in adbd_auth_tls_handshake()
373 adbd_wifi_secure_connect(t); in adbd_auth_tls_handshake()
375 adbd_auth_verified(t); in adbd_auth_tls_handshake()
376 adbd_notify_framework_connected_key(t); in adbd_auth_tls_handshake()
380 t->Kick(); in adbd_auth_tls_handshake()