From b4c81a2a05631338cb0481e40cc7a93407f638b9 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 11 Dec 2017 17:39:31 +0000 Subject: [PATCH 5/9] spec: Document NEGOTIATE_UNIX_FD, AGREE_UNIX_FD in state machines Signed-off-by: Simon McVittie --- doc/dbus-specification.xml | 50 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/doc/dbus-specification.xml b/doc/dbus-specification.xml index dc3e2492..a01b45b7 100644 --- a/doc/dbus-specification.xml +++ b/doc/dbus-specification.xml @@ -2728,8 +2728,19 @@ - Receive OK → send BEGIN, terminate auth - conversation, authenticated + Receive OK → authenticated, + choose one: + + + + send NEGOTIATE_UNIX_FD, goto + WaitingForAgreeUnixFD + + + + send BEGIN, terminate auth conversation + + @@ -2786,6 +2797,34 @@ + + <emphasis>WaitingForAgreeUnixFD</emphasis> + + + + + Receive AGREE_UNIX_FD → enable Unix fd passing, + send BEGIN, terminate auth conversation + + + + + + Receive ERROR → disable Unix fd passing, + send BEGIN, terminate auth conversation + + + + + + Receive anything else → terminate auth + conversation, disconnect + + + + + + @@ -2963,6 +3002,13 @@ + + + Receive NEGOTIATE_UNIX_FD → send AGREE_UNIX_FD + or ERROR, goto WaitingForBegin + + + Receive CANCEL → send REJECTED [mechs], goto -- 2.15.1