* auth-source.el: Autoload EPA/EPG functions.
(auth-source-netrc-use-gpg-tokens): Clarify that it should not be
changed when EPA/EPG is not available.
+ (auth-source-backend): Rename "arg" member to "data".
+ (auth-source-backend-parse, auth-source-plstore-search)
+ (auth-source-plstore-create): Use it.
2011-06-30 Andrew Cohen <cohen@andy.bu.edu>
:type t
:custom string
:documentation "The backend protocol.")
- (arg :initarg :arg
- :initform nil
- :documentation "The backend arg.")
+ (data :initarg :arg
+ :initform nil
+ :documentation "Internal backend data.")
(create-function :initarg :create-function
:initform ignore
:type function
:type 'plstore
:search-function 'auth-source-plstore-search
:create-function 'auth-source-plstore-create
- :arg (plstore-open (plist-get entry :source)))
+ :data (plstore-open (plist-get entry :source)))
(auth-source-backend
(plist-get entry :source)
:source (plist-get entry :source)
(assert (not delete) nil
"The PLSTORE auth-source backend doesn't support deletion yet")
- (let* ((store (oref backend arg))
+ (let* ((store (oref backend data))
(max (or max 5000)) ; sanity check: default to stop at 5K
(ignored-keys '(:create :delete :max :backend :require))
(search-keys (loop for i below (length spec) by 2
(setq artificial (plist-put artificial
(intern (concat ":" (symbol-name r)))
data))))))
- (plstore-put (oref backend arg)
+ (plstore-put (oref backend data)
(sha1 (format "%s@%s:%s"
(plist-get artificial :user)
(plist-get artificial :host)
(plist-get artificial :port)))
artificial secret-artificial)
(if (y-or-n-p (format "Save auth info to file %s? "
- (plstore-get-file (oref backend arg))))
- (plstore-save (oref backend arg)))))
+ (plstore-get-file (oref backend data))))
+ (plstore-save (oref backend data)))))
;;; older API