[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix bug in handling GnuPG's TRUST_MARGINAL status
From: |
Teemu Likonen |
Subject: |
[PATCH] Fix bug in handling GnuPG's TRUST_MARGINAL status |
Date: |
Sun, 25 Jun 2017 20:50:54 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Hi!
There's a minor bug in lisp/epg.el file in handling GnuPG's
TRUST_MARGINAL status. The effect is that marginal trust (really:
validity) is never stored to epg-signature structure and never show by
epg-signature-to-string function (and Gnus). Below is a patch with
extended context.
(I can commit it myself. But let's hear an "OK" from persons responsible
for the code.)
From ae4668138b49580a86d7fd962866cca1329fec45 Mon Sep 17 00:00:00 2001
From: Teemu Likonen <address@hidden>
Date: Sun, 25 Jun 2017 20:37:54 +0300
Subject: [PATCH] Fix bug in handling GnuPG's TRUST_MARGINAL status
* lisp/epg.el (epg--status-TRUST_MARGINAL): Change symbol `marginal'
to `good'.
---
lisp/epg.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/epg.el b/lisp/epg.el
index 587271b000..1e24b8d116 100644
--- a/lisp/epg.el
+++ b/lisp/epg.el
@@ -1035,31 +1035,31 @@ epg--status-VALIDSIG
(defun epg--status-TRUST_UNDEFINED (context _string)
(let ((signature (car (epg-context-result-for context 'verify))))
(if (and signature
(eq (epg-signature-status signature) 'good))
(setf (epg-signature-validity signature) 'undefined))))
(defun epg--status-TRUST_NEVER (context _string)
(let ((signature (car (epg-context-result-for context 'verify))))
(if (and signature
(eq (epg-signature-status signature) 'good))
(setf (epg-signature-validity signature) 'never))))
(defun epg--status-TRUST_MARGINAL (context _string)
(let ((signature (car (epg-context-result-for context 'verify))))
(if (and signature
- (eq (epg-signature-status signature) 'marginal))
+ (eq (epg-signature-status signature) 'good))
(setf (epg-signature-validity signature) 'marginal))))
(defun epg--status-TRUST_FULLY (context _string)
(let ((signature (car (epg-context-result-for context 'verify))))
(if (and signature
(eq (epg-signature-status signature) 'good))
(setf (epg-signature-validity signature) 'full))))
(defun epg--status-TRUST_ULTIMATE (context _string)
(let ((signature (car (epg-context-result-for context 'verify))))
(if (and signature
(eq (epg-signature-status signature) 'good))
(setf (epg-signature-validity signature) 'ultimate))))
(defun epg--status-NOTATION_NAME (context string)
--
2.11.0
--
/// Teemu Likonen - .-.. <https://keybase.io/tlikonen> //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///
signature.asc
Description: PGP signature
- [PATCH] Fix bug in handling GnuPG's TRUST_MARGINAL status,
Teemu Likonen <=