]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Updated base64 test case.
authorNiels Möller <nisse@lysator.liu.se>
Fri, 7 Feb 2014 08:18:33 +0000 (09:18 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Fri, 7 Feb 2014 08:18:33 +0000 (09:18 +0100)
ChangeLog
testsuite/base64-test.c

index 3681604ce0c8004759528d83516db6fc75160e0b..66163a5a1c297f8f3d9c9c1e0efdc10f271c7cf6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2014-02-07  Niels Möller  <nisse@lysator.liu.se>
 
+       * testsuite/base64-test.c (test_main): Updated
+       base64_decode_update test case.
+
        * sexp-transport.c (sexp_transport_iterator_first): For
        base64_decode_update, omit initialization of coded_length.
 
index f512d258f462d23eaefa4181c7812fe14645bd6a..163352197e9124cd984f96498aaaa41d0d34d548 100644 (file)
@@ -39,7 +39,7 @@ test_main(void)
     ASSERT(MEMEQ(9, buffer, "SGVsbG8=x"));
 
     base64_decode_init(&ctx);
-    dst_length = 8;
+    dst_length = 0; /* Output parameter only. */
     ASSERT(base64_decode_update(&ctx, &dst_length, buffer, 8, buffer));
     ASSERT(dst_length == 5);