Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
LSH
lsh
Commits
791d7b89
Commit
791d7b89
authored
Sep 16, 2003
by
Pontus Freyhult
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rewrote the key decryption handling, hopefully it fails more
gracefully now. Rev: src/lsh-upgrade-key:1.3
parent
ed09a268
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/lsh-upgrade-key
src/lsh-upgrade-key
+7
-4
No files found.
src/lsh-upgrade-key
View file @
791d7b89
...
...
@@ -47,13 +47,16 @@ for p in $@; do
werror
"Key is encrypted and must be decrypted."
# Encrypted key
((
"
$LSH_DECRYPT_KEY
"
--in
=
"
$p
"
||
\
die
"Decryption failed for
$p
, aborting."
)
&&
\
werror
"Key will be reencrypted using aes256-cbc"
)
|
\
if
"
$LSH_DECRYPT_KEY
"
--in
=
"
$p
"
;
then
\
werror
"Key will be reencrypted using aes256-cbc"
;
\
else
\
werror
"Decryption failed for
$p
, aborting."
;
\
die
"(errors from lsh-writekey may be ignored)."
;
\
fi
|
\
"
$SEXP_CONV
"
-s
hex
\
|
sed
-e
's,(\(.\) #\([89a-fA-F]\),(\1 #00\2,'
\
|
"
$SEXP_CONV
"
-s
transport
\
|
"
$LSH_WRITEKEY
"
-c
aes256-cbc
-o
"
$p
.new"
|
"
$LSH_WRITEKEY
"
-c
aes256-cbc
-o
"
$p
.new"
else
# Not encrypted
"
$SEXP_CONV
"
-s
hex <
"
$p
"
\
...
...
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