Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
b801e2f4
Commit
b801e2f4
authored
Jan 14, 2002
by
Niels Möller
Browse files
(spki_hash_sexp): Bugfix, don't hash the data once.
Bug reported by Werner Koch. Rev: src/spki.c:1.36
parent
0faba5ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/spki.c
View file @
b801e2f4
...
...
@@ -264,15 +264,13 @@ spki_hash_data(struct hash_algorithm *algorithm,
}
/* Create an SPKI hash from an s-expression. */
struct
sexp
*
spki_hash_sexp
(
struct
hash_algorithm
*
algorithm
,
int
name
,
struct
sexp
*
expr
)
{
struct
lsh_string
*
s
=
hash_string
(
algorithm
,
sexp_format
(
expr
,
SEXP_CANONICAL
,
0
),
1
);
struct
lsh_string
*
s
=
sexp_format
(
expr
,
SEXP_CANONICAL
,
0
);
struct
sexp
*
hash
=
spki_hash_data
(
algorithm
,
name
,
s
->
length
,
s
->
data
);
lsh_string_free
(
s
);
...
...
Write
Preview
Supports
Markdown
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