[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

@@ -177,8 +177,7 @@ def get_rpad():
def create_openpgp_message(obj, encrypted_payload):
b64encoded_payload = b64encode(
encrypted_payload.encode('utf-8')).decode('utf8')
b64encoded_payload = b64encode(encrypted_payload).decode('utf8')
openpgp_node = nbxmpp.Node('openpgp', attrs={'xmlns': NS_OPENPGP})
openpgp_node.addData(b64encoded_payload)