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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Tyagov
caucase
Commits
d8173a24
Commit
d8173a24
authored
Jul 22, 2018
by
Vincent Pelletier
Committed by
Vincent Pelletier
Jul 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
utils: Make coding style a bit more consistent.
parent
9d55f8d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
caucase/utils.py
caucase/utils.py
+2
-4
No files found.
caucase/utils.py
View file @
d8173a24
...
@@ -322,7 +322,7 @@ def dump_certificate(data):
...
@@ -322,7 +322,7 @@ def dump_certificate(data):
"""
"""
Serialise a certificate as PEM-encoded data.
Serialise a certificate as PEM-encoded data.
"""
"""
return
data
.
public_bytes
(
serialization
.
Encoding
.
PEM
)
return
data
.
public_bytes
(
encoding
=
serialization
.
Encoding
.
PEM
)
def
load_certificate_request
(
data
):
def
load_certificate_request
(
data
):
"""
"""
...
@@ -340,9 +340,7 @@ def dump_certificate_request(data):
...
@@ -340,9 +340,7 @@ def dump_certificate_request(data):
"""
"""
Serialise acertificate request as PEM-encoded data.
Serialise acertificate request as PEM-encoded data.
"""
"""
return
data
.
public_bytes
(
return
data
.
public_bytes
(
encoding
=
serialization
.
Encoding
.
PEM
)
encoding
=
serialization
.
Encoding
.
PEM
,
)
def
load_privatekey
(
data
):
def
load_privatekey
(
data
):
"""
"""
...
...
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