Re: [Evolution-hackers] Is there any APIs for fetching the GPG Key id from a CamelMimeMessage ?



It doesn't look like there's any current API to do it.

I suggest you look at gmime svn's gmime-cipher-context.[c,h] and
gmime-gpg-context.[c,h], specifically the code that fills in the
GMimeSigner structures and just make CamelCipherCertInfo struct closer
to the GMimeSigner struct.

Jeff

On Wed, 2008-06-25 at 17:10 +0800, Zhang Shunchang wrote:
> hi,all
> i am doing something about the GPG Keys in Evolution. i want to get the
> GPG Key ID(8 hex digit) from the message if this message was signed.
> 
> i found that there is a valid field in CamelCipherValidity structure,
> where there is a sign.description field, which points out:
> 
> Version: GnuPG v2.0.9 (GNU/Linux)
> gpg: armor header: 
> gpg: Signature made Wed 18 Jun 2008 06:17:27 AM CST using DSA key ID
> AA208D9E
> gpg: Can't check signature: No public key
> ==============
> 
> how can i get exactly the GPG Key ID? is there any public API or any
> good method?
> 
> Thanks in advance!
> 
> _______________________________________________
> Evolution-hackers mailing list
> Evolution-hackers gnome org
> http://mail.gnome.org/mailman/listinfo/evolution-hackers



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]