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

2008-06-25 Thread Jeffrey Stedfast
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

___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers


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

2008-06-25 Thread Zhang Shunchang
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!

-- 
Zhang Shunchang

NLP-group, ISCAS
http://www.cipsc.org.cn/~zsc
PGP Key ID: 30F9C5B9
fingerprint:7362 C766 1ED0 0AAF B994  CD83 1BD1 144E 30F9 C5B9


signature.asc
Description: This is a digitally signed message part
___
Evolution-hackers mailing list
Evolution-hackers@gnome.org
http://mail.gnome.org/mailman/listinfo/evolution-hackers