aboutsummaryrefslogtreecommitdiffhomepage
path: root/show-message.c
diff options
context:
space:
mode:
authorGravatar Thomas Jost <schnouki@schnouki.net>2012-01-20 10:39:24 +0100
committerGravatar David Bremner <bremner@debian.org>2012-01-21 08:52:34 -0400
commit00b5623d1a21d886b564d031e30749e5d02e4ae6 (patch)
tree68e97bcdc3bb57fb450f1dae112a629f821f88ca /show-message.c
parentd3aa6848da4519f6229426b1d0432afacf748f8b (diff)
Add compatibility with gmime 2.6
There are lots of API changes in gmime 2.6 crypto handling. By adding preprocessor directives, it is however possible to add gmime 2.6 compatibility while preserving compatibility with gmime 2.4 too. This is mostly based on id:"8762i8hrb9.fsf@bookbinder.fernseed.info". This was tested against both gmime 2.6.4 and 2.4.31. With gmime 2.4.31, the crypto tests all work fine (as expected). With gmime 2.6.4, one crypto test is currently broken (signature verification with signer key unavailable), most likely because of a bug in gmime which will hopefully be fixed in a future version.
Diffstat (limited to 'show-message.c')
-rw-r--r--show-message.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/show-message.c b/show-message.c
index 8768889e..83ecf813 100644
--- a/show-message.c
+++ b/show-message.c
@@ -48,7 +48,11 @@ show_message_part (mime_node_t *node,
format->part_encstatus (node->decrypt_success);
if (node->verify_attempted && format->part_sigstatus)
+#ifdef GMIME_ATLEAST_26
+ format->part_sigstatus (node->sig_list);
+#else
format->part_sigstatus (node->sig_validity);
+#endif
format->part_content (part);