Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.libnetworkcache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Łukasz Nowak
slapos.libnetworkcache
Commits
9a6365ae
Commit
9a6365ae
authored
Aug 24, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support case when no certificate is passed.
parent
d34817db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
slapos/libnetworkcache.py
slapos/libnetworkcache.py
+4
-3
No files found.
slapos/libnetworkcache.py
View file @
9a6365ae
...
...
@@ -189,9 +189,10 @@ class NetworkcacheClient(object):
Returns true if it can find any valid certificate or false if it does not
find any.
"""
for
certificate
in
self
.
signature_certificate_list
:
if
self
.
_verifySignatureCertificate
(
signature_string
,
certificate
):
return
True
if
self
.
signature_certificate_list
is
not
None
:
for
certificate
in
self
.
signature_certificate_list
:
if
self
.
_verifySignatureCertificate
(
signature_string
,
certificate
):
return
True
return
False
def
_verifySignatureCertificate
(
self
,
signature_string
,
certificate
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment