From e66939f1c5c67eeb25fef1474ab5a865ed584ab6 Mon Sep 17 00:00:00 2001 From: okada Date: Mon, 20 Nov 2000 09:09:50 +0000 Subject: [PATCH] sync up with flim-1_14 --- sasl-digest.el | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sasl-digest.el b/sasl-digest.el index 1a1eb8a..7454a74 100644 --- a/sasl-digest.el +++ b/sasl-digest.el @@ -104,7 +104,7 @@ charset algorithm cipher-opts auth-param)." (encode-hex-string (md5-binary (concat "AUTHENTICATE:" digest-uri - (if (string-equal "auth-int" qop) + (if (member qop '("auth-int" "auth-conf")) ":00000000000000000000000000000000"))))))) (fillarray passphrase 0)))) @@ -117,6 +117,9 @@ charset algorithm cipher-opts auth-param)." (nonce-count (or (sasl-client-property client 'nonce-count) sasl-digest-md5-nonce-count)) + (qop + (or (sasl-client-property client 'qop) + (setq qop "auth"))) (digest-uri (sasl-digest-md5-digest-uri (sasl-client-service client)(sasl-client-server client))) @@ -124,6 +127,8 @@ charset algorithm cipher-opts auth-param)." (or (sasl-client-property client 'cnonce) (sasl-digest-md5-cnonce)))) (sasl-client-set-property client 'nonce-count (1+ nonce-count)) + (unless (string= qop "auth") + (sasl-error (format "Unsupported \"qop-value\": %s" qop))) (concat "username=\"" (sasl-client-name client) "\"," "realm=\"" realm "\"," @@ -131,6 +136,7 @@ charset algorithm cipher-opts auth-param)." "cnonce=\"" cnonce "\"," (format "nc=%08x," nonce-count) "digest-uri=\"" digest-uri "\"," + "qop=" qop "," "response=" (sasl-digest-md5-response-value (sasl-client-name client) @@ -138,8 +144,7 @@ charset algorithm cipher-opts auth-param)." (plist-get plist 'nonce) cnonce nonce-count - (or (sasl-client-property client 'qop) - "auth") + qop digest-uri (plist-get plist 'authzid))))) -- 1.7.10.4