From 34e11b864b7e0a3aa735a29eabd5ed05357d02d6 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 12 Dec 2017 12:33:00 +0000 Subject: [PATCH 4/9] 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 --- doc/dbus-specification.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/dbus-specification.xml b/doc/dbus-specification.xml index 7f09ba69..dc3e2492 100644 --- a/doc/dbus-specification.xml +++ b/doc/dbus-specification.xml @@ -2272,6 +2272,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 @@ -2305,6 +2306,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 @@ -2319,6 +2321,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"; @@ -2329,6 +2332,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 @@ -2405,6 +2409,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 @@ -2435,6 +2440,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 -- 2.15.1