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@bar.org" "geheim")
adds the password "geheim" to the (user's default) keychain identified
by string "imap:foo@bar.org". To retrieve this password, simply call:
(keychain-find "imap:foo@bar.org")
-Eric
--
"Excuse me --- Di Du Du Duuuuh Di Dii --- Huh Weeeheeee" (Albert King)
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-patches