[gmime/gmime-2-4] Fixed to set signer status (bug #645787)



commit ffc6f8a40117746f89e43cc8bbbae1e9796f38bf
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Sat Mar 26 21:25:10 2011 -0400

    Fixed to set signer status (bug #645787)
    
    2011-03-26  Jeffrey Stedfast  <fejj novell com>
    
    	* gmime/gmime-gpg-context.c (gpg_ctx_parse_signer_info): Fixed
    	* to
    	actually set the signer status. Fixes bug #645787, based on an
    	initial patch by Thomas Jost.

 ChangeLog                 |    6 ++++++
 gmime/gmime-gpg-context.c |   11 ++++++++---
 2 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b82ce67..32c7cc6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-03-26  Jeffrey Stedfast  <fejj novell com>
+
+	* gmime/gmime-gpg-context.c (gpg_ctx_parse_signer_info): Fixed to
+	actually set the signer status. Fixes bug #645787, based on an
+	initial patch by Thomas Jost.
+
 2011-03-14  Jeffrey Stedfast  <fejj novell com>
 
 	* configure.in: Check for glib-sharp-2.0 instead of gtk-sharp-2.0
diff --git a/gmime/gmime-gpg-context.c b/gmime/gmime-gpg-context.c
index 0548db8..9f93151 100644
--- a/gmime/gmime-gpg-context.c
+++ b/gmime/gmime-gpg-context.c
@@ -862,19 +862,24 @@ gpg_ctx_parse_signer_info (struct _GpgCtx *gpg, char *status)
 		/* not sure if this contains anything we care about... */
 	} else if (!strncmp (status, "GOODSIG ", 8)) {
 		signer = gpg_ctx_add_signer (gpg, status + 8);
+		signer->status = GMIME_SIGNER_STATUS_GOOD;
 		gpg->goodsig = TRUE;
 	} else if (!strncmp (status, "BADSIG ", 7)) {
 		signer = gpg_ctx_add_signer (gpg, status + 7);
+		signer->status = GMIME_SIGNER_STATUS_BAD;
 		gpg->badsig = TRUE;
 	} else if (!strncmp (status, "EXPSIG ", 7)) {
 		signer = gpg_ctx_add_signer (gpg, status + 7);
-		signer->errors |= GMIME_SIGNER_ERROR_EXPSIG;
+		signer->status = GMIME_SIGNER_STATUS_ERROR;
+		signer->errors = GMIME_SIGNER_ERROR_EXPSIG;
 	} else if (!strncmp (status, "EXPKEYSIG ", 10)) {
 		signer = gpg_ctx_add_signer (gpg, status + 10);
-		signer->errors |= GMIME_SIGNER_ERROR_EXPKEYSIG;
+		signer->status = GMIME_SIGNER_STATUS_ERROR;
+		signer->errors = GMIME_SIGNER_ERROR_EXPKEYSIG;
 	} else if (!strncmp (status, "REVKEYSIG ", 10)) {
 		signer = gpg_ctx_add_signer (gpg, status + 10);
-		signer->errors |= GMIME_SIGNER_ERROR_REVKEYSIG;
+		signer->status = GMIME_SIGNER_STATUS_ERROR;
+		signer->errors = GMIME_SIGNER_ERROR_REVKEYSIG;
 	} else if (!strncmp (status, "ERRSIG ", 7)) {
 		/* Note: NO_PUBKEY often comes after an ERRSIG */
 		gpg->errsig = TRUE;



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