Home | History | Annotate | Download | only in plugins

Lines Matching full:auth

296 		struct pending_auth *auth = l->data;
297 return auth;
310 struct pending_auth *auth = l->data;
311 if (g_str_equal(auth->sender, sender))
312 return auth;
322 struct pending_auth *auth;
329 auth = find_pending_by_sender(serv_adapter, user_record->sender);
330 if (auth) {
332 auth);
333 g_free(auth);
570 struct pending_auth *auth;
573 auth = next_pending(serv_adapter);
574 if (auth == NULL) {
582 reply = not_authorized(auth->msg);
583 dbus_message_unref(auth->msg);
584 g_dbus_send_message(auth->conn, reply);
588 g_dbus_send_reply(auth->conn, auth->msg,
592 dbus_connection_unref(auth->conn);
595 auth);
596 g_free(auth);
598 auth = next_pending(serv_adapter);
599 if (auth == NULL)
607 btd_request_authorization(&src, &auth->dst,
608 auth->uuid, auth_cb, serv_adapter);
621 struct pending_auth *auth;
663 auth = g_new0(struct pending_auth, 1);
664 auth->msg = dbus_message_ref(msg);
665 auth->conn = dbus_connection_ref(connection);
666 auth->sender = user_record->sender;
667 memcpy(auth->uuid, uuid_str, MAX_LEN_UUID_STR);
668 str2ba(address, &auth->dst);
671 auth);
673 auth = next_pending(serv_adapter);
674 if (auth == NULL)
682 if (btd_request_authorization(&src, &auth->dst, auth->uuid, auth_cb,
685 auth);
686 g_free(auth);
698 struct pending_auth *auth;
704 auth = find_pending_by_sender(serv_adapter, sender);
705 if (auth == NULL)
713 btd_cancel_authorization(&src, &auth->dst);
715 reply = not_authorized(auth->msg);
716 dbus_message_unref(auth->msg);
717 g_dbus_send_message(auth->conn, reply);
719 dbus_connection_unref(auth->conn);
722 auth);
723 g_free(auth);
725 auth = next_pending(serv_adapter);
726 if (auth == NULL)
734 btd_request_authorization(&src, &auth->dst,
735 auth->uuid, auth_cb, serv_adapter);