summaryrefslogtreecommitdiffstats
path: root/man/systemd.kill.xml
diff options
context:
space:
mode:
authorDavid Rheinsberg <david.rheinsberg@gmail.com>2019-03-14 13:33:28 +0100
committerDavid Rheinsberg <david.rheinsberg@gmail.com>2019-03-14 13:33:28 +0100
commit2010873b4b49b223e0cc07d28205b09c693ef005 (patch)
tree4a1f396f29f9db82a029455e434f34824becd4e7 /man/systemd.kill.xml
parentsd-bus: avoid magic number in SASL length calculation (diff)
downloadsystemd-2010873b4b49b223e0cc07d28205b09c693ef005.tar.xz
systemd-2010873b4b49b223e0cc07d28205b09c693ef005.zip
sd-bus: fix SASL reply to empty AUTH
The correct way to reply to "AUTH <protocol>" without any payload is to send "DATA" rather than "OK". The "DATA" reply triggers the client to respond with the requested payload. In fact, adding the data as hex-encoded argument like "AUTH <protocol> <hex-data>" is an optimization that skips the "DATA" roundtrip. The standard way to perform an authentication is to send the "DATA" line. This commit fixes sd-bus to properly send the "DATA" line. Surprisingly no existing implementation depends on this, as they all pass the data directly as argument to "AUTH". This will not work if we want to pass an empty argument, though. Signed-off-by: David Rheinsberg <david.rheinsberg@gmail.com>
Diffstat (limited to 'man/systemd.kill.xml')
0 files changed, 0 insertions, 0 deletions