From fd6e4a99535cb5142381803bc4ea4f4f79d8d459 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 14 May 2017 14:51:38 -0300 Subject: [PATCH] cli: hide rename of GMimeCertificateTrust Both the enum and the values are renamed in GMime 3.0. --- util/gmime-extra.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/util/gmime-extra.h b/util/gmime-extra.h index 90f230c1..6b74724e 100644 --- a/util/gmime-extra.h +++ b/util/gmime-extra.h @@ -37,10 +37,20 @@ typedef GMimeAddressType GMimeRecipientType; #define g_mime_utils_header_decode_text(txt) g_mime_utils_header_decode_text (NULL, txt) #define internet_address_to_string(ia,encode) internet_address_to_string (ia,NULL,encode) #define internet_address_list_parse_string(str) internet_address_list_parse (NULL,str) + typedef GMimeAddressType GMimeRecipientType; typedef GMimeSignatureStatus GMimeSignatureError; +typedef GMimeTrust GMimeCertificateTrust; + +#define GMIME_CERTIFICATE_TRUST_UNKNOWN GMIME_TRUST_UNKNOWN +#define GMIME_CERTIFICATE_TRUST_UNDEFINED GMIME_TRUST_UNDEFINED +#define GMIME_CERTIFICATE_TRUST_NEVER GMIME_TRUST_NEVER +#define GMIME_CERTIFICATE_TRUST_MARGINAL GMIME_TRUST_MARGINAL +#define GMIME_CERTIFICATE_TRUST_FULLY GMIME_TRUST_FULL +#define GMIME_CERTIFICATE_TRUST_ULTIMATE GMIME_TRUST_ULTIMATE + #endif /**