Improve the netrc field encryption (GPG tokens) by calling EPA/EPG functions directly.
authorTed Zlatanov <tzz@lifelogs.com>
Thu, 30 Jun 2011 12:27:48 +0000 (07:27 -0500)
committerTed Zlatanov <tzz@lifelogs.com>
Thu, 30 Jun 2011 12:27:48 +0000 (07:27 -0500)
commitfc8cecf6baaa2f2d7157e25883d367dd2eebe81c
tree0ecb115bcf515aa0ff9d917f34940810e5ca1c86
parente9b7a7bdd14ae89c52049c417a1f034795341649
Improve the netrc field encryption (GPG tokens) by calling EPA/EPG functions directly.

* auth-source.el: Require EPA and EPG.
(auth-source-passphrase-alist): New variable.
(auth-source-passphrase-callback-function)
(auth-source-token-passphrase-callback-function): Callbacks for the
netrc field encryption (GPG tokens).
(auth-source-epa-extract-gpg-token, auth-source-epa-make-gpg-token):
Symmetric encryption and decryption of the netrc GPG tokens.
(auth-source-netrc-normalize): Use them, simplifying the closure.
lisp/ChangeLog
lisp/auth-source.el