Commit e6ecd591 authored by Niels Möller's avatar Niels Möller

sexp_transport_iterator_first: Updated base64 decoding.

parent 07cb0b62
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.
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment