Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
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
Joanne Hugé
re6stnet
Commits
6e443638
Commit
6e443638
authored
May 20, 2013
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix logged message when openssl fails to decrypt bootstrap peer
parent
eba6c762
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
re6st/utils.py
re6st/utils.py
+2
-2
No files found.
re6st/utils.py
View file @
6e443638
...
@@ -161,7 +161,7 @@ def decrypt(key_path, data):
...
@@ -161,7 +161,7 @@ def decrypt(key_path, data):
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
)
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
)
out
,
err
=
p
.
communicate
(
data
)
out
,
err
=
p
.
communicate
(
data
)
if
p
.
returncode
:
if
p
.
returncode
:
raise
subprocess
.
CalledProcessError
(
p
.
returncode
,
err
)
raise
subprocess
.
CalledProcessError
(
p
.
returncode
,
'openssl'
,
err
)
return
out
return
out
def
encrypt
(
cert
,
data
):
def
encrypt
(
cert
,
data
):
...
@@ -176,5 +176,5 @@ def encrypt(cert, data):
...
@@ -176,5 +176,5 @@ def encrypt(cert, data):
os
.
close
(
r
)
os
.
close
(
r
)
os
.
close
(
w
)
os
.
close
(
w
)
if
p
.
returncode
:
if
p
.
returncode
:
raise
subprocess
.
CalledProcessError
(
p
.
returncode
,
err
)
raise
subprocess
.
CalledProcessError
(
p
.
returncode
,
'openssl'
,
err
)
return
out
return
out
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