patch: support for the OS X keychain
Eric Knauel
knauel at informatik.uni-tuebingen.de
Sat Dec 22 05:46:20 EST 2007
Here is a small dynamic module that adds support for the OS X keychain
to XEmacs.
The OS X keychain is a mechanism that stores application passwords
(and other secret information) in encrypted file on the disk. This is
quite useful: For example, if the user unlocks his keychain on login,
applications may fetch passwords from the keychain to access some
server without having to ask for the server password.
I always wanted Gnus to use the keychain to store my IMAP server
passwords instead of the plain text ~/.netrc or ~/.authinfo files.
So, here is a small patch that adds a module that wraps Carbon API to
keychain into Lisp functions: KEYCHAIN-FIND, KEYCHAIN-REMOVE, and
KEYCHAIN-ADD. The functions are pretty simple to use.
The call
(keychain-add "imap:foo at bar.org" "geheim")
adds the password "geheim" to the (user's default) keychain identified
by string "imap:foo at bar.org". To retrieve this password, simply call:
(keychain-find "imap:foo at bar.org")
-Eric
--
"Excuse me --- Di Du Du Duuuuh Di Dii --- Huh Weeeheeee" (Albert King)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: keychain.patch
Type: text/x-patch
Size: 16684 bytes
Desc: not available
Url : http://calypso.tux.org/pipermail/xemacs-patches/attachments/20071222/b31e0edc/attachment-0002.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: not available
Url : http://calypso.tux.org/pipermail/xemacs-patches/attachments/20071222/b31e0edc/attachment-0003.bin
More information about the XEmacs-Patches
mailing list