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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.libnetworkcache
Commits
f573e286
Commit
f573e286
authored
Dec 08, 2021
by
Léo-Paul Géneau
👾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libnetworkcache: make verification method public
Move `_verifySignatureInCertificateList` to a public method
parent
2a079ea3
Pipeline
#18709
passed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
slapos/libnetworkcache.py
slapos/libnetworkcache.py
+2
-2
No files found.
slapos/libnetworkcache.py
View file @
f573e286
...
...
@@ -421,7 +421,7 @@ class NetworkcacheClient(object):
raise
NetworkcacheException
(
'Failed to parse json response (%r)'
%
data
)
if
filter
:
return
(
data
for
data
in
data_list
if
self
.
_
verifySignatureInCertificateList
(
*
data
))
if
self
.
verifySignatureInCertificateList
(
*
data
))
return
data_list
def
_getSignatureString
(
self
,
content
):
...
...
@@ -433,7 +433,7 @@ class NetworkcacheClient(object):
return
''
return
b64encode
(
crypto
.
sign
(
k
,
content
,
'sha1'
)).
decode
()
def
_
verifySignatureInCertificateList
(
self
,
content
,
signature_string
):
def
verifySignatureInCertificateList
(
self
,
content
,
signature_string
):
"""
Returns true if it can find any valid certificate or false if it does not
find any.
...
...
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