Unix FD Passing
Havoc Pennington
havoc.pennington at gmail.com
Sat Apr 25 08:48:20 PDT 2009
Hi,
On Sat, Apr 25, 2009 at 10:15 AM, Lennart Poettering <mzqohf at 0pointer.de> wrote:
>
> Also, a client could just send three commands at once:
> NEGOTIATE_UNIX_FD\r\nNEGOTIATE_FOO\r\nNEGOTIATE_BAR if it wants to
> negotiate multiple things at once.
>
This seems OK as long as the AGREE and NEGOTIATE don't have to paired
up, i.e. if the following conversation is allowed:
CLIENT: NEGOTIATE FOO
CLIENT: NEGOTIATE BAR
SERVER: AGREE FOO
SERVER: AGREE BAR
as opposed to:
CLIENT: NEGOTIATE FOO
SERVER: AGREE FOO
CLIENT: NEGOTIATE BAR
SERVER: AGREE BAR
But, this does raise the question, how does the client know whether an
AGREE is coming; is there a DISAGREE?
Basically when does the client know to proceed on to authentication?
(when does it know all NEGOTIATE have been received and handled)
Havoc
More information about the dbus
mailing list