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
7a15653a
Commit
7a15653a
authored
Jun 26, 2002
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(spki_pkcs5_decrypt): Bug fixes. Friendlier pass
phrase prompt. Rev: src/spki.c:1.39
parent
7490c76f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/spki.c
src/spki.c
+4
-2
No files found.
src/spki.c
View file @
7a15653a
...
...
@@ -1127,7 +1127,7 @@ spki_pkcs5_decrypt(struct alist *mac_algorithms,
return
NULL
;
}
if
(
crypto
->
block_size
&&
(
data
->
length
&
crypto
->
block_size
))
if
(
crypto
->
block_size
&&
(
data
->
length
%
crypto
->
block_size
))
{
werror
(
"Payload data doesn't match block size for pkcs5v2.
\n
"
);
return
NULL
;
...
...
@@ -1183,7 +1183,9 @@ spki_pkcs5_decrypt(struct alist *mac_algorithms,
{
struct
lsh_string
*
password
=
INTERACT_READ_PASSWORD
(
interact
,
500
,
label
,
0
);
=
INTERACT_READ_PASSWORD
(
interact
,
500
,
ssh_format
(
"Passphrase for key `%lS': "
,
label
),
1
);
struct
lsh_string
*
clear
;
struct
sexp
*
res
;
UINT8
*
key
;
...
...
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