Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caucase
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
caucase
Commits
8d77af6a
Commit
8d77af6a
authored
Jun 25, 2020
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ca: Avoid duplicating _BACKUP_MAGIC length definition.
parent
34113c92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
caucase/ca.py
caucase/ca.py
+1
-1
No files found.
caucase/ca.py
View file @
8d77af6a
...
@@ -887,7 +887,7 @@ class UserCertificateAuthority(CertificateAuthority):
...
@@ -887,7 +887,7 @@ class UserCertificateAuthority(CertificateAuthority):
Restore backup, revoke certificate corresponding to private key and sign
Restore backup, revoke certificate corresponding to private key and sign
its renewal.
its renewal.
"""
"""
magic
=
read
(
8
)
magic
=
read
(
len
(
_BACKUP_MAGIC
)
)
if
magic
!=
_BACKUP_MAGIC
:
if
magic
!=
_BACKUP_MAGIC
:
raise
ValueError
(
'Invalid backup magic string'
)
raise
ValueError
(
'Invalid backup magic string'
)
header_len
,
=
struct
.
unpack
(
header_len
,
=
struct
.
unpack
(
...
...
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