Skip to content
Snippets Groups Projects
Commit c9b335c0 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

changeset: 15552:375dd51393bb

tag: tip
parent: 15503:a8bd9ca4ef63
user: Dominik George <nik@naturalnet.de>
date: Fri Oct 24 21:45:17 2014 +0200
summary: Fix #7866 &7848 - cast digest_size from hashlib to int for OpenSSL
parent 184b4195
No related branches found
No related tags found
No related merge requests found
......@@ -952,7 +952,7 @@ class EncryptedStanzaSession(ArchivingStanzaSession):
if not rshashes:
# we've never spoken before, but we'll pretend we have
rshash_size = self.hash_alg().digest_size
rshash_size = int(self.hash_alg().digest_size)
rshashes.append(crypto.random_bytes(rshash_size))
rshashes = [base64.b64encode(rshash).decode('utf-8') for rshash in \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment