X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=util%2Fgmime-extra.h;fp=util%2Fgmime-extra.h;h=4407be3358a3576e49316386c5d5ebdc72cff99d;hp=7688129a8cf9d52f5c58120d9b33b803c218ecd6;hb=2b3224a6c4be6b6c038a9956448187e0a402687b;hpb=4ce7591610444a1c5ef6f56b57af8e180437fa62 diff --git a/util/gmime-extra.h b/util/gmime-extra.h index 7688129a..4407be33 100644 --- a/util/gmime-extra.h +++ b/util/gmime-extra.h @@ -14,6 +14,7 @@ GMimeStream *g_mime_stream_stdout_new(void); #define GMIME_ADDRESS_TYPE_BCC GMIME_RECIPIENT_TYPE_BCC #define g_mime_2_6_unref(obj) g_object_unref (obj) +#define g_mime_certificate_get_fpr16(cert) g_mime_certificate_get_key_id (cert) #else /* GMime >= 3.0 */ typedef GMimeAddressType GMimeRecipientType; @@ -56,6 +57,10 @@ typedef GMimeTrust GMimeCertificateTrust; #define g_mime_2_6_unref(obj) /*ignore*/ #endif +/** + * Get last 16 hex digits of fingerprint ("keyid") + */ +const char *g_mime_certificate_get_fpr16 (GMimeCertificate *cert); /** * Return the contents of the appropriate address header as a string * Should be freed using g_free