On Mon, Jan 19, 2009 at 6:18 PM, Jesse Keating <jkeating(a)redhat.com> wrote:
Is there anything better we can do instead of snaking raw data out of
headers?
Use pygpgme?
import gpgme
ctx = gpgme.Context()
key = ctx.get_key('6D97044E')
print [subkey.length for subkey in key.subkeys]
The docs for gpgme/pygpgme aren't great but I have a little experience
with it so we can probably figure out what needs to be done. Can you
point out where exactly in the code the problem is?
--
Jeff Ollie
"You know, I used to think it was awful that life was so unfair. Then
I thought, wouldn't it be much worse if life were fair, and all the
terrible things that happen to us come because we actually deserve
them? So, now I take great comfort in the general hostility and
unfairness of the universe."
-- Marcus to Franklin in Babylon 5: "A Late Delivery from Avalon"