From 419a1f53d527583458da46d1508aab272fdf0280 Mon Sep 17 00:00:00 2001 From: Roland Winklmeier Date: Mon, 13 Jan 2014 21:49:49 +0100 Subject: Add method to QDBusServer to allow anonymous client connections. This change adds a new method to QDBusServer to allow anonymous connections. This is part of the DBus API and was not yet possible to use with QDBusServer. It is set in the newConnection callback when a new client tries to connect. Anonymous connections are enabled by default in DBus but not allowed by default. [ChangeLog][QtDBus][QDBusServer] Added method to QDBusServer to allow anonymous client connections, even if the connecting client is not authenticated as a user. Change-Id: I984c9e634101ecd2e67bb25c8d12bb1071836fd3 Reviewed-by: Thiago Macieira --- src/dbus/qdbusconnection_p.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dbus/qdbusconnection_p.h') diff --git a/src/dbus/qdbusconnection_p.h b/src/dbus/qdbusconnection_p.h index 350e49a50d..f2590f9c54 100644 --- a/src/dbus/qdbusconnection_p.h +++ b/src/dbus/qdbusconnection_p.h @@ -322,6 +322,8 @@ public: QMutex callDeliveryMutex; QDBusCallDeliveryEvent *callDeliveryState; // protected by the callDeliveryMutex mutex + bool anonymousAuthenticationAllowed; + public: // static methods static int findSlot(QObject *obj, const QByteArray &normalizedName, QVector ¶ms); -- cgit v1.2.3