a few GPGME issues

Gordon Worley redbird at rbisland.cx
Mon Apr 22 16:39:01 CEST 2002

On Monday, April 22, 2002, at 02:54  AM, Werner Koch wrote:

> On Sun, 21 Apr 2002 20:58:17 +0200, Wichert Akkerman said:
>> Speaking of ABI and text-data: can you explain the reason for returning
>> data in XML format instead of structs? I can understand it makes the 
>> ABI
>> more stable, but it also means that an application will have to include
> The idea was that some large systems already use XML to some extend so
> it might be handy for them.  And it is quite nice for debugging gpgme.
> There is also the gpgme_key_get_{ulong,string}_attr interface which
> avoids the XML overhead as well as structures.

Or, if this gets on your nerves, you can write a wrapper that does it 
for you.  In GPGME.framework, we added a method that allows you to get a 
GPGKey as an NSDictionary which is very convenient in a lot of 

Agreed on the XML; it's great for debugging.

Oh, this is a side note, but is there any reason gpgme does not return 
the short (128 bit) key ID?  It's not as if it's hard to write a method 
to do it myself, but the short key IDs are very nice in some situations, 
like when listing keys in a window.

Gordon Worley                     `When I use a word,' Humpty Dumpty
http://www.rbisland.cx/            said, `it means just what I choose
redbird at rbisland.cx                it to mean--neither more nor less.'
PGP:  0xBBD3B003                                  --Lewis Carroll

More information about the Gnupg-devel mailing list