Commit f078afa6 authored by Julien Muchembled's avatar Julien Muchembled

Compatibility with pyOpenSSL >= 0.14

parent 4387e4e0
...@@ -308,6 +308,7 @@ class NetworkcacheClient(object): ...@@ -308,6 +308,7 @@ class NetworkcacheClient(object):
""" """
if signature_string: if signature_string:
signature = signature_string.decode('base64') signature = signature_string.decode('base64')
content = str(content)
for certificate in self.signature_certificate_list: for certificate in self.signature_certificate_list:
try: try:
crypto.verify(certificate, signature, content, 'sha1') crypto.verify(certificate, signature, content, 'sha1')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment