Commit c7057fa9 authored by Lucas Carvalho's avatar Lucas Carvalho

Use signature public file instead of private file.

The signature private file is not required to verify the signature it is
only used to create the signature string.

The signature verification requires only the public file...
parent 9cc068d6
...@@ -169,7 +169,7 @@ class NetworkcacheClient(object): ...@@ -169,7 +169,7 @@ class NetworkcacheClient(object):
'Directory: %s. Entries: %s.' % (directory_key, str(data_list))) 'Directory: %s. Entries: %s.' % (directory_key, str(data_list)))
sha512 = None sha512 = None
if self.signature_private_file not in _MARKER: if self.signature_public_file not in _MARKER:
for information_dict, signature in data_list: for information_dict, signature in data_list:
if self._verifySignature(signature): if self._verifySignature(signature):
sha512 = information_dict.get('sha512') sha512 = information_dict.get('sha512')
......
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