]> code.delx.au - gnu-emacs-elpa/commitdiff
url-http-ntlm.el: Add comment headings
authorThomas Fitzsimmons <fitzsim@fitzsim.org>
Tue, 27 Oct 2015 02:29:37 +0000 (22:29 -0400)
committerThomas Fitzsimmons <fitzsim@fitzsim.org>
Thu, 18 Feb 2016 03:19:53 +0000 (22:19 -0500)
packages/url-http-ntlm/url-http-ntlm.el

index 4750ae1c184c617b2a9b1d9630e97ce6f3652d7c..a63878d63a88cb9f514774c24321758bbe283514 100644 (file)
@@ -43,6 +43,8 @@
 (require 'cl)
 (require 'ntlm)
 
+\f
+;;; Private variables.
 (defvar url-http-ntlm--auth-storage nil
   "Authentication storage.
 An alist that maps a server name to a pair of \(<username> <ntlm
@@ -58,6 +60,8 @@ Note that for any server, only one user and password is ever stored.")
 This is used to detect multiple calls.")
 (make-variable-buffer-local 'url-http-ntlm--last-args)
 
+\f
+;;; Private functions.
 (defun url-http-ntlm--ensure-keepalive ()
   "Report an error if `url-http-attempt-keepalives' is not set."
   (assert url-http-attempt-keepalives
@@ -169,6 +173,8 @@ stored."
   "Return DATA encoded as an NTLM string."
   (concat "NTLM " (base64-encode-string data :nobreak)))
 
+\f
+;;; Public function called by `url-get-authentication'.
 (defun url-ntlm-auth (url &optional prompt overwrite realm args)
   "Return an NTLM HTTP authorization header.
 Get the contents of the Authorization header for a HTTP response
@@ -204,6 +210,8 @@ the server's last response.  These are used by
       (:error
        (url-http-ntlm--authorisation url :clear)))))
 
+\f
+;;; Register `url-ntlm-auth' HTTP authentication method.
 (url-register-auth-scheme "ntlm" nil 8)
 
 (provide 'url-http-ntlm)