From: Andrew Engelbrecht Date: Thu, 23 Jul 2015 15:31:33 +0000 (-0400) Subject: add pubkey as a fallback key X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=44fe39b73af09176f98ed4b9420f6a0fc3d694ca;p=edward.git add pubkey as a fallback key --- diff --git a/edward b/edward index c06751d..0c12f1e 100755 --- a/edward +++ b/edward @@ -354,6 +354,9 @@ def prepare_for_reply_pieces (eddymsg_obj, replyinfo_obj): else: replyinfo_obj.public_key_received = True + if replyinfo_obj.fallback_target_key == None: + replyinfo_obj.fallback_target_key = piece.gpg_data.keys[0] + elif (piece.piece_type == "clearsign") \ or (piece.piece_type == "detachedsig"): if piece.gpg_data == None: