isislovecruft / python-gnupg

A modified version of python-gnupg, including security patches, extensive documentation, and extra features.
Other
424 stars 172 forks source link

`GPGUtilities.encrypted_to` does not work #252

Open lsowen opened 5 years ago

lsowen commented 5 years ago

Fails complaining:

  1. That AttributeError: 'GPGUtilities' object has no attribute 'find_key_by_keyid'
  2. That AttributeError: 'GPGUtilities' object has no attribute 'list_keys'

At least for item 2, the only change is that self.list_keys() needs to be replaced with self._gpg.list_keys() at https://github.com/isislovecruft/python-gnupg/blob/master/pretty_bad_protocol/gnupg.py#L1134

lsowen commented 5 years ago

Also, I think _handle_io() in list_packets should use binary=True to support both ASCII armoured and non-armoured gpg files?