[gmime: 9/23] GPGME: expose the validity of the selected User ID



commit 7970e5ff2f7933e355998e142dab49540ffe3ea0
Author: Daniel Kahn Gillmor <dkg fifthhorseman net>
Date:   Mon Oct 16 01:51:46 2017 -0400

    GPGME: expose the validity of the selected User ID
    
    Without this information, MUAs that want to expose the user to
    information about message signatures are unable to display
    understandable information about the identity of the cryptographic
    signer.

 gmime/gmime-gpgme-utils.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gmime/gmime-gpgme-utils.c b/gmime/gmime-gpgme-utils.c
index 28b2b28..d2f1798 100644
--- a/gmime/gmime-gpgme-utils.c
+++ b/gmime/gmime-gpgme-utils.c
@@ -366,6 +366,7 @@ g_mime_gpgme_get_signatures (gpgme_ctx_t ctx, gboolean verify)
                                }
                                uid = uid->next;
                        }
+                       g_mime_certificate_set_id_validity (signature->cert, (GMimeValidity)(validity));
                        
                        /* get the subkey used for signing */
                        subkey = key->subkeys;


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