Commit 9a6365ae authored by Łukasz Nowak's avatar Łukasz Nowak

Support case when no certificate is passed.

parent d34817db
...@@ -189,9 +189,10 @@ class NetworkcacheClient(object): ...@@ -189,9 +189,10 @@ class NetworkcacheClient(object):
Returns true if it can find any valid certificate or false if it does not Returns true if it can find any valid certificate or false if it does not
find any. find any.
""" """
for certificate in self.signature_certificate_list: if self.signature_certificate_list is not None:
if self._verifySignatureCertificate(signature_string, certificate): for certificate in self.signature_certificate_list:
return True if self._verifySignatureCertificate(signature_string, certificate):
return True
return False return False
def _verifySignatureCertificate(self, signature_string, certificate): def _verifySignatureCertificate(self, signature_string, certificate):
......
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