From c230113ef4968a6e06cebd055c9f4f1bc4d4c3c6 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Wed, 12 Aug 2015 12:50:20 -0400 Subject: [PATCH] search for pub keys in inline signatures these ascii-armored signature blocks are obfuscated until they are decoded. they may contain public keys, so edward now looks inside. --- edward | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/edward b/edward index 7809b8b..3dd4d5b 100755 --- a/edward +++ b/edward @@ -810,6 +810,10 @@ def prepare_for_reply_sig (piece, replyinfo_obj): if replyinfo_obj.fallback_target_key == None: replyinfo_obj.fallback_target_key = piece.gpg_data.sigs[0] + if (piece.piece_type == TxtType.signature): + # to catch public keys in signature blocks + prepare_for_reply(piece.gpg_data.plainobj, replyinfo_obj) + def flatten_decrypted_payloads (eddymsg_obj, replyinfo_obj, get_signed_part): """For creating a string representation of a signed, encrypted part. -- 2.25.1