gpg: handle multiple packets

This commit is contained in:
Roman Zeyde
2016-04-30 21:07:19 +03:00
parent ab192619f4
commit 3bf926620b
5 changed files with 123 additions and 15 deletions

View File

@@ -22,7 +22,7 @@ def main():
command = args[0]
user_id = ' '.join(args[1:])
assert command == '-bsau' # --detach-sign --sign --armor --local-user
pubkey = decode.load_from_gpg(user_id)
pubkey = decode.load_from_gpg(user_id, use_custom=True)
s = encode.Signer.from_public_key(user_id=user_id, pubkey=pubkey)
data = sys.stdin.read()