qt5base-lts/tests/auto/dbus/qdbusmarshall
Steffen Kieß 6d880185b1 Fix passing QDBusUnixFileDescriptors over peer-to-peer connections
Passing QDBusUnixFileDescriptors over peer-to-peer connections currently
does not work, because QDBusConnectionPrivate::setPeer() does not set
this->capabilities (unlike QDBusConnectionPrivate::setConnection()
which is executed for bus connections).

Keep track of whether the connection already has been authenticated, and
once the connection does get authenticated, update this->capabilities.

Note that sending a message directly after connecting (before any
message has been received from the peer) might still fail if the message
contains a QDBusUnixFileDescriptor.

Pick-to: 5.15
Fixes: QTBUG-85396
Change-Id: Ib83213ebcd3255fb091c6faefb3618745b8d736c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2020-07-13 20:45:20 +02:00
..
qdbusmarshall CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
qpong CMake: Regenerate tests with new qt_ prefixed APIs 2020-07-09 09:38:35 +02:00
.gitignore Moved dbus autotests into new directory structure 2011-09-01 09:37:08 +02:00
CMakeLists.txt CMake: Regenerate subdir test projects 2020-07-09 09:38:39 +02:00
common.h Remove some more register keywords 2017-05-06 16:59:18 +00:00
qdbusmarshall.pro Use dependencies instead of CONFIG+=ordered 2017-12-02 11:09:15 +00:00
tst_qdbusmarshall.cpp Fix passing QDBusUnixFileDescriptors over peer-to-peer connections 2020-07-13 20:45:20 +02:00