X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=sasl.el;h=de1af887673d7898b482e962e11036fc7348efdd;hb=05c653fb2de87a6bed68d443a9f4bcfe186262e1;hp=86187c9ec5599254ba4071b3ab08e36ae7016c1b;hpb=16dc38607993377475bbcfbc03f141cd88d7bebc;p=elisp%2Fflim.git diff --git a/sasl.el b/sasl.el index 86187c9..de1af88 100644 --- a/sasl.el +++ b/sasl.el @@ -1,6 +1,6 @@ ;;; sasl.el --- SASL client framework -;; Copyright (C) 2000 Daiki Ueno +;; Copyright (C) 2000 Free Software Foundation, Inc. ;; Author: Daiki Ueno ;; Keywords: SASL @@ -19,8 +19,8 @@ ;; You should have received a copy of the GNU General Public License ;; along with this program; see the file COPYING. If not, write to the -;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, -;; Boston, MA 02111-1307, USA. +;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, +;; Boston, MA 02110-1301, USA. ;;; Commentary: @@ -37,14 +37,17 @@ ;;; Code: (defvar sasl-mechanisms - '("CRAM-MD5" "DIGEST-MD5" "PLAIN" "LOGIN" "ANONYMOUS")) + '("CRAM-MD5" "DIGEST-MD5" "PLAIN" "LOGIN" "ANONYMOUS" + "NTLM" "SCRAM-MD5")) (defvar sasl-mechanism-alist '(("CRAM-MD5" sasl-cram) ("DIGEST-MD5" sasl-digest) ("PLAIN" sasl-plain) ("LOGIN" sasl-login) - ("ANONYMOUS" sasl-anonymous))) + ("ANONYMOUS" sasl-anonymous) + ("NTLM" sasl-ntlm) + ("SCRAM-MD5" sasl-scram))) (defvar sasl-unique-id-function #'sasl-unique-id-function) @@ -235,13 +238,13 @@ It contain at least 64 bits of entropy." sasl-login-response-2)) (defun sasl-login-response-1 (client step) - (unless (string-match "^user ?name." (sasl-step-data step)) ;; XXX - (sasl-error (format "Unexpected response: %s" (sasl-step-data step)))) +;;; (unless (string-match "^Username:" (sasl-step-data step)) +;;; (sasl-error (format "Unexpected response: %s" (sasl-step-data step)))) (sasl-client-name client)) (defun sasl-login-response-2 (client step) - (unless (string-match "^password." (sasl-step-data step)) ;; XXX - (sasl-error (format "Unexpected response: %s" (sasl-step-data step)))) +;;; (unless (string-match "^Password:" (sasl-step-data step)) +;;; (sasl-error (format "Unexpected response: %s" (sasl-step-data step)))) (sasl-read-passphrase (format "LOGIN passphrase for %s: " (sasl-client-name client)))) @@ -252,7 +255,7 @@ It contain at least 64 bits of entropy." ;;; ANONYMOUS (RFC2245) (defconst sasl-anonymous-steps - '(identity ;no initial response + '(ignore ;no initial response sasl-anonymous-response)) (defun sasl-anonymous-response (client step)