* smtp.el (smtp-auth-digest-md5): Don't use `sasl-digest-md5-parse-digest-challenge'.
2000-01-21 Kenichi OKADA <okada@opaopa.org>
+ * sasl.el (TopLevel): Delete function `sasl-digest-md5-parse-digest-challenge'.
+ * smtp.el (smtp-auth-digest-md5): Don't use `sasl-digest-md5-parse-digest-challenge'.
+
+2000-01-21 Kenichi OKADA <okada@opaopa.org>
+
* scram-md5.el (sasl-scram-md5-client-security-info): Eval when compile.
2000-01-21 Kenichi OKADA <okada@opaopa.org>
(require 'unique-id)
(defvar digest-md5-challenge nil)
-;(defvar digest-md5-nonce-count 1)
(defvar digest-md5-parse-digest-challenge-syntax-table
(let ((table (make-syntax-table)))
(autoload 'base64-encode-string "base64")
(autoload 'starttls-open-stream "starttls")
(autoload 'starttls-negotiate "starttls")
- (autoload 'digest-md5-parse-digest-challenge "digest-md5")
+; (autoload 'digest-md5-parse-digest-challenge "digest-md5")
(autoload 'digest-md5-digest-response "digest-md5")
-; (autoload 'scram-make-security-info "scram-md5")
(autoload 'scram-md5-make-salted-pass "scram-md5")
(autoload 'scram-md5-parse-server-msg-1 "scram-md5")
(autoload 'scram-md5-make-client-msg-1 "scram-md5"))
(defvar sasl-digest-md5-nonce-count 1)
-(defun sasl-digest-md5-digest-response (username passwd
+(defun sasl-digest-md5-digest-response (digest-challenge username passwd
serv-type host &optional realm)
+ (digest-md5-parse-digest-challenge digest-challenge)
(digest-md5-digest-response
username
(or realm (digest-md5-challenge 'realm)) ;; need to check.
(digest-md5-digest-uri serv-type host) ;; MX host
))
-(defun sasl-digest-md5-parse-digest-challenge (digest-challenge)
- (digest-md5-parse-digest-challenge digest-challenge))
-
(provide 'sasl)
;;; sasl.el ends here
\ No newline at end of file
(login smtp-auth-login)
(anonymous smtp-auth-anonymous)
(scram-md5 smtp-auth-scram-md5)
- (digest-md5 smtp-auth-digest-md5)
- ))
+ (digest-md5 smtp-auth-digest-md5)))
(defcustom smtp-connection-type nil
"*SMTP connection type."
(not (integerp (car response)))
(>= (car response) 400))
(throw 'done (car (cdr response))))
- (sasl-digest-md5-parse-digest-challenge
- (base64-decode-string
- (substring (car (cdr response)) 4)))
(if (string-match "^\\([^@]*\\)@\\([^@]*\\)"
smtp-authenticate-user)
(setq user (match-string 1 smtp-authenticate-user)
(smtp-send-command process
(base64-encode-string
(sasl-digest-md5-digest-response
+ (base64-decode-string
+ (substring (car (cdr response)) 4))
user
smtp-authenticate-passphrase
"smtp" smtp-server realm)