Parse LISTKEYS output

Neal H. Walfield neal at walfield.org
Thu Jun 4 18:06:19 CEST 2015


Hi,

At Thu, 04 Jun 2015 12:06:42 +0300,
Dmitry Falko wrote:
> Is there a common way to parse data returned from LISTKEYS
> command. Callback function receives buffer with colon-separated
> information about certificate,
> i need fingerprint to use it with IMPORT --re-import command.

Are you running:

  gpg --list-keys --with-colons

or doing something else?

If you are doing this from C then you should use gpgme rather than try
and parse the output yourself.  (If you aren't using C, then look to
see if there are any bindings to gpgme.)

If this isn't helpful, please try to describe your problem more
thoroughly.


:) Neal



More information about the Gnupg-users mailing list