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
afe7c047
Commit
afe7c047
authored
Feb 07, 2014
by
Niels Möller
Browse files
Updated base16enc and base64enc example programs.
parent
c314d0d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
afe7c047
...
...
@@ -5,6 +5,8 @@
* sexp-transport.c (sexp_transport_iterator_first): For
base64_decode_update, omit initialization of coded_length.
* examples/base64dec.c (main): Likewise.
* examples/base16dec.c (main): Likewise, for base16_decode_update.
* base64-decode.c (base64_decode_update): Use *dst_length for
output only. Don't require callers to pass a sane value.
...
...
examples/base16dec.c
View file @
afe7c047
...
...
@@ -75,8 +75,6 @@ main(int argc UNUSED, char **argv UNUSED)
return
EXIT_FAILURE
;
}
decoded_bytes
=
BASE16_DECODE_LENGTH
(
nbytes
);
/* Decodes one chunk: */
if
(
!
base16_decode_update
(
&
b16_ctx
,
&
decoded_bytes
,
result
,
nbytes
,
buffer
))
{
...
...
examples/base64dec.c
View file @
afe7c047
...
...
@@ -75,8 +75,6 @@ main(int argc UNUSED, char **argv UNUSED)
return
EXIT_FAILURE
;
}
decoded_bytes
=
BASE64_DECODE_LENGTH
(
nbytes
);
/* Decodes one chunk: */
if
(
!
base64_decode_update
(
&
b64_ctx
,
&
decoded_bytes
,
result
,
nbytes
,
buffer
))
{
...
...
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