sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit ec6f4c78faef0f9ef59d54b65ba6f3d2dc759330
parent f532be4340dcdaadb55476375dd8cf3d2d393e04
Author: Hamish Downer <dmishd@gmail.com>
Date:   Sun, 30 Jan 2011 23:43:14 +0000

Add full fingerprint for untrusted keys

When the key that signed a message is not trusted, show the full
fingerprint, as the gpg binary does.

Diffstat:
M lib/sup/crypto.rb | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/lib/sup/crypto.rb b/lib/sup/crypto.rb
@@ -318,6 +318,7 @@ private
       if signature.validity != GPGME::GPGME_VALIDITY_FULL && signature.validity != GPGME::GPGME_VALIDITY_MARGINAL
         output_lines << "WARNING: This key is not certified with a trusted signature!"
         output_lines << "There is no indication that the signature belongs to the owner"
+        output_lines << "Full fingerprint is: " + (0..9).map {|i| signature.fpr[(i*2),2]}.join(":")
       else
         trusted = true
       end