From fafd784424efc065d8e5f891a09319557c106559 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 9 Oct 2007 14:12:31 +0100 Subject: doc/dbus-specification.xml: Clarify description of DBUS_COOKIE_SHA1 (#10184). Patch from Kristoffer Lundén. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- doc/dbus-specification.xml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'doc') diff --git a/doc/dbus-specification.xml b/doc/dbus-specification.xml index ac98d1ca..125f892b 100644 --- a/doc/dbus-specification.xml +++ b/doc/dbus-specification.xml @@ -2084,7 +2084,7 @@ The client sends the username it would like to authenticate - as. + as, hex-encoded. @@ -2092,19 +2092,19 @@ The server sends the name of its "cookie context" (see below); a space character; the integer ID of the secret cookie the client must demonstrate knowledge of; a space character; then a - hex-encoded randomly-generated challenge string. + randomly-generated challenge string, all of this hex-encoded into + one, single string. - The client locates the cookie, and generates its own hex-encoded - randomly-generated challenge string. The client then - concatenates the server's hex-encoded challenge, a ":" - character, its own hex-encoded challenge, another ":" character, - and the hex-encoded cookie. It computes the SHA-1 hash of this - composite string. It sends back to the server the client's - hex-encoded challenge string, a space character, and the SHA-1 - hash. + The client locates the cookie and generates its own + randomly-generated challenge string. The client then concatenates + the server's decoded challenge, a ":" character, its own challenge, + another ":" character, and the cookie. It computes the SHA-1 hash + of this composite string as a hex digest. It concatenates the + client's challenge string, a space character, and the SHA-1 hex + digest, hex-encodes the result and sends it back to the server. -- cgit