X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/087d3539f8d79b6ebd0ef572c039cf708b76591c..0bbbe59675c7a37f8dd3b0233b197f45ea8a1b20:/packages/url-http-ntlm/url-http-ntlm.el diff --git a/packages/url-http-ntlm/url-http-ntlm.el b/packages/url-http-ntlm/url-http-ntlm.el index 309175f1a..748841688 100644 --- a/packages/url-http-ntlm/url-http-ntlm.el +++ b/packages/url-http-ntlm/url-http-ntlm.el @@ -90,24 +90,20 @@ Note that for any server, only one user and password is ever stored.") (:error (url-http-ntlm-authorisation url :clear))))) - (defun url-ntlm-ensure-keepalive () (assert url-http-attempt-keepalives nil "NTLM authentication won't work unless `url-http-attempt-keepalives' is set!")) - (defun url-ntlm-clean-headers () (setq url-http-extra-headers (url-http-ntlm-rmssoc "Authorization" url-http-extra-headers))) - (defvar url-ntlm-last-args nil "Stores the last ARGS argument to `url-ntlm-get-stage' and the return value. This is used to detect multiple calls.") (make-variable-buffer-local 'url-ntlm-last-args) - (defun url-ntlm-get-stage (args) "Determine what stage of the NTLM handshake we are at. @@ -141,7 +137,6 @@ response's \"WWW-Authenticate\" header, munged by `url-parse-args'." (setq url-ntlm-last-args (cons args stage)) stage)))) - (defun url-http-ntlm-authorisation (url &optional clear) "Get or clear NTLM authentication details for URL. If CLEAR is non-nil, clear any saved credentials for server. Otherwise, @@ -186,7 +181,6 @@ stored." ;; stored)))) - (defun url-http-ntlm-get-challenge () "Return the NTLM Type-2 message in the WWW-Authenticate header, if it is there." @@ -197,17 +191,14 @@ if it is there." www-authenticate) (base64-decode-string (match-string 1 www-authenticate)))))) - (defun url-http-ntlm-rmssoc (key alist) (remove* key alist :key 'car :test 'equal)) - (defun url-http-ntlm-string (data) (concat "NTLM " (base64-encode-string data :nobreak))) - (url-register-auth-scheme "ntlm" nil 8) - (provide 'url-http-ntlm) + ;;; url-http-ntlm.el ends here