problem with C++ wrapper and gpgme

Colin Brown colstar at
Mon May 26 22:59:02 CEST 2003

Hash: SHA1

Hi all,

I am writing a C# wrapper at the moment for GnuPG after having trouble with gpgme in the enviroment I was using,
While this is quite raw at the moment, my C# wrapper gives me the functionality for encrypting file or text, sign and encrypt, decrypt, verify etc
I am currently working on listing the keys in a putting the resutls in a nice GUI, after I finish this section (hopefully this weekend time permitting) I can send the source of how I have done this, It may be useful to whoever may want it. Currently I am using --list-keys --fingerprint then parsing the output. 

Best Regards


- -----Original Message-----
From: gnupg-devel-admin at [mailto:gnupg-devel-admin at] On Behalf Of Robert J. Hansen
Sent: Tuesday, 27 May 2003 2:41 AM
To: Yenot
Cc: gnupg-devel at
Subject: Re: Problem with C++ wrapper and gpgme

> 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:

Unfortunately, the raw binary format is undocumented, near as I can see.  Whereas with a --with-colons format, there's some documentation for it (and even if there weren't, it'd be easy to figure out).  I'd love to just parse the keydata directly, but at this point in the dev cycle it's more sensible to do --with-colons.

For the C++ wrapper, GPGME is not used to generate the keyrings.  It's just a raw dump of --list-keys --with-colons --fingerprint.

(The project I'm working on is a Jabber-oriented keyserver.  You query the keyserver by subscribing to someone's key; when you manipulate a trust item on a key you send an update to the Jabber server; the Jabber server then propagates an updated key to all the subscribers.  It's a semi-cute way of thinking about keyservers, may have some utility for cryptographic IM.  This may explain some of my design goals, such as scaling up to arbitrary sizes of keyrings.)

- -- 
Robert J. Hansen <cortana at>

Gnupg-devel mailing list
Gnupg-devel at
Version: GnuPG v1.2.2 (MingW32)


More information about the Gnupg-devel mailing list