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
Nettle
nettle
Commits
e6ecd591
Commit
e6ecd591
authored
Feb 07, 2014
by
Niels Möller
Browse files
sexp_transport_iterator_first: Updated base64 decoding.
parent
07cb0b62
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
e6ecd591
2014-02-07 Niels Möller <nisse@lysator.liu.se>
* sexp-transport.c (sexp_transport_iterator_first): For
base64_decode_update, omit initialization of coded_length.
* base64-decode.c (base64_decode_update): Use *dst_length for
output only. Don't require callers to pass a sane value.
* base16-decode.c (base16_decode_update): Likewise.
...
...
sexp-transport.c
View file @
e6ecd591
...
...
@@ -74,10 +74,9 @@ sexp_transport_iterator_first(struct sexp_iterator *iterator,
return
0
;
base64_decode_init
(
&
ctx
);
coded_length
=
end
-
in
;
if
(
base64_decode_update
(
&
ctx
,
&
coded_length
,
input
+
out
,
coded_length
,
input
+
in
)
end
-
in
,
input
+
in
)
&&
base64_decode_final
(
&
ctx
))
{
out
+=
coded_length
;
...
...
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