[balsa] Add hint about failed test for CMS protocol



commit 4dfb146a9d6447f87c028dc05fdd1235b147159d
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Mon Apr 26 18:45:48 2010 -0400

    Add hint about failed test for CMS protocol
    
    	* libbalsa/rfc3156.c (libbalsa_check_crypto_engine): add hint
    	about failed test for CMS protocol.

 ChangeLog          |    5 +++++
 libbalsa/rfc3156.c |   10 ++++++++--
 2 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c72f332..f43786d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-04-26  Albrecht DreÃ?
+
+	* libbalsa/rfc3156.c (libbalsa_check_crypto_engine): add hint
+	about failed test for CMS protocol.
+
 2010-04-11  Albrecht DreÃ?
 
 	* libbalsa/filter.c (libbalsa_filter_mailbox_messages): build on
diff --git a/libbalsa/rfc3156.c b/libbalsa/rfc3156.c
index bc15700..d022d0f 100644
--- a/libbalsa/rfc3156.c
+++ b/libbalsa/rfc3156.c
@@ -94,12 +94,18 @@ libbalsa_check_crypto_engine(gpgme_protocol_t protocol)
 				       _
 				       ("Gpgme has been compiled without support for protocol %s."),
 				       gpgme_get_protocol_name(protocol));
-	    else if (info->file_name && !info->version)
+	    else if (info->file_name && !info->version) {
 		g_string_append_printf(message,
 				       _
 				       ("Crypto engine %s is not installed properly."),
 				       info->file_name);
-	    else if (info->file_name && info->version && info->req_version)
+                if (protocol == GPGME_PROTOCOL_OpenPGP)
+                    g_string_append_printf(message,
+                                           _(" Hint: check the `gnupg2' (preferred) or `gnupg' package."));
+                else if (protocol == GPGME_PROTOCOL_CMS)
+                    g_string_append_printf(message,
+                                           _(" Hint: check the `gpgsm' package."));
+	    } else if (info->file_name && info->version && info->req_version)
 		g_string_append_printf(message,
 				       _
 				       ("Crypto engine %s version %s is installed, but at least version %s is required."),



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