|
From: Chris G. <ch...@ar...> - 2005-03-04 18:34:29
|
I have a need to extract data from the keyring database on the command
line so I've taken the existing keyring-link utility and have done a
few simple/trivial changes to make it more useful for my use at
least. If anyone is interested I'm quite happy to upload this
version.
The changes are basically as follows:-
Remove the password from the command line arguments leaving only
the keyring database file name.
The file name defaults to $HOME/.jpilot/Keys-Gtkr.pdb so you don't
have to enter it normally.
When keyring-link is run (I've actually renamed it to kl) it
prompts 'Key: ' and expects the user to enter an entry name
followed by a password in the format '<entry>/<password>', if the
password is correct then just the <entry> is output.
If you enter '/<password>' the whole database is output.
I've changed the output format a little to suit my needs and have
removed the use of the 'rs_xxx' functions for error output, it just
outputs to stderr.
--
Chris Green (ch...@ar...)
"Never ascribe to malice that which can be explained by incompetence."
|