Skip to content

Commit

Permalink
chg: [PgpDump] PMF fix - longer keys are truncated
Browse files Browse the repository at this point in the history
TODO: Need to be updated by an async process handling the keys
  • Loading branch information
adulau committed May 24, 2019
1 parent c27dfc0 commit fae3530
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/PgpDump.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def extract_all_id(item_content, regex):

def get_pgp_packet(save_path):
save_path = '{}'.format(save_path)
print (len(save_path))
if len(save_path) > 131072:
save_path = save_path[:131071]
process1 = subprocess.Popen([ 'echo', '-e', save_path], stdout=subprocess.PIPE)
process2 = subprocess.Popen([ 'pgpdump'], stdin=process1.stdout, stdout=subprocess.PIPE)
process1.stdout.close()
Expand Down

0 comments on commit fae3530

Please sign in to comment.