[openpgp] Fix some bugs

- Dont use armor when encrypting
- Convert timestamp to int
- Fix getting the default trust
This commit is contained in:
Philipp Hörist
2018-08-31 15:14:08 +02:00
parent 7776ae0a59
commit fa9e8f7fa8
4 changed files with 5 additions and 5 deletions

View File

@@ -97,7 +97,7 @@ class PGPKeylist(AbstractPEPModule):
if timestamp is None:
raise StanzaMalformed('Invalid date timestamp: %s', date)
keylist.append(Key(attrs['v4-fingerprint'], timestamp))
keylist.append(Key(attrs['v4-fingerprint'], int(timestamp)))
return keylist
def _notification_received(self, jid, keylist):