Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Wim Lewis
nettle
Commits
e6ecd591
Commit
e6ecd591
authored
Feb 07, 2014
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sexp_transport_iterator_first: Updated base64 decoding.
parent
07cb0b62
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
ChangeLog
ChangeLog
+3
-0
sexp-transport.c
sexp-transport.c
+1
-2
No files found.
ChangeLog
View file @
e6ecd591
2014-02-07 Niels Möller <nisse@lysator.liu.se>
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
* base64-decode.c (base64_decode_update): Use *dst_length for
output only. Don't require callers to pass a sane value.
output only. Don't require callers to pass a sane value.
* base16-decode.c (base16_decode_update): Likewise.
* 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,
...
@@ -74,10 +74,9 @@ sexp_transport_iterator_first(struct sexp_iterator *iterator,
return
0
;
return
0
;
base64_decode_init
(
&
ctx
);
base64_decode_init
(
&
ctx
);
coded_length
=
end
-
in
;
if
(
base64_decode_update
(
&
ctx
,
&
coded_length
,
input
+
out
,
if
(
base64_decode_update
(
&
ctx
,
&
coded_length
,
input
+
out
,
coded_length
,
input
+
in
)
end
-
in
,
input
+
in
)
&&
base64_decode_final
(
&
ctx
))
&&
base64_decode_final
(
&
ctx
))
{
{
out
+=
coded_length
;
out
+=
coded_length
;
...
...
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