Problem with C++ wrapper and gpgme

David Shaw dshaw at jabberwocky.com
Mon May 26 22:29:12 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, May 26, 2003 at 09:27:23PM +0400, Yenot wrote:

> On Monday 26 May 2003 04:08 am, Robert J. Hansen wrote:
> >
> > Surprisingly, though, I found that it was faster and easier to do a
> > gpg --list-keys --fingerprint --with-colons, grab the output, and
> > parse that to create the key database than it was to use the GPGME
> > key-iteration functions.
> 
> Even that solution can be problematic.  Let's say your application
> is a keymanager written in C++. Your goal is to take the information 
> from *all* keys on a keyring and display them in a pretty GUI.
> 
> For this, your best bet is parse the raw binary output of
> "gpg --list-keys".  If you don't parse the raw binary output, this is 
> what will happen:

Do you mean "--export" here?  --list-keys just lists keys, and does
not include much information you might want (key flags, etc).

David
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-cvs (GNU/Linux)
Comment: http://www.jabberwocky.com/david/keys.asc

iD8DBQE+0ms04mZch0nhy8kRAupNAKCTikOv4noEygR5QScTd/teX2zBFACfTlNL
bE+bpm/BKkNKbrjhwe7F+Bs=
=qdY8
-----END PGP SIGNATURE-----




More information about the Gnupg-devel mailing list