From 2c19572f7a224ae9d7126f5f6d6be458c54a2e44 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 12 Dec 2017 12:33:00 +0000 Subject: [PATCH] spec: Document expected reply for each client-to-server auth command Client-to-server auth commands expect a reply, whereas server-to-client auth commands don't (the client is expected to send another command that is valid in the new state, but it isn't really a direct reply to the server-to-client command). Signed-off-by: Simon McVittie Reviewed-by: Philip Withnall Bug: https://bugs.freedesktop.org/show_bug.cgi?id=104224 --- doc/dbus-specification.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/dbus-specification.xml b/doc/dbus-specification.xml index c6e204b6..a3a0bd42 100644 --- a/doc/dbus-specification.xml +++ b/doc/dbus-specification.xml @@ -2305,6 +2305,7 @@ AUTH command The AUTH command is sent by the client to the server. + The server replies with DATA, OK or REJECTED. If an AUTH command has no arguments, it is a request to list @@ -2338,6 +2339,7 @@ CANCEL Command The CANCEL command is sent by the client to the server. + The server replies with REJECTED. At any time up to sending the BEGIN command, the client may send a @@ -2352,6 +2354,7 @@ The DATA command may come from either client or server, and simply contains a hex-encoded block of data to be interpreted according to the SASL mechanism in use. + If sent by the client, the server replies with DATA, OK or REJECTED. Some SASL mechanisms support sending an "empty string"; @@ -2362,6 +2365,7 @@ BEGIN Command The BEGIN command is sent by the client to the server. + The server does not reply. The BEGIN command acknowledges that the client has received an @@ -2438,6 +2442,7 @@ ERROR Command The ERROR command can be sent in either direction. + If sent by the client, the server replies with REJECTED. The ERROR command indicates that either server or client did not @@ -2468,6 +2473,7 @@ NEGOTIATE_UNIX_FD Command The NEGOTIATE_UNIX_FD command is sent by the client to the server. + The server replies with AGREE_UNIX_FD or ERROR. The NEGOTIATE_UNIX_FD command indicates that the client