summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/tests/test_base64.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/tests/test_base64.c b/lib/tests/test_base64.c
index 650cfa1a..12b92686 100644
--- a/lib/tests/test_base64.c
+++ b/lib/tests/test_base64.c
@@ -24,6 +24,7 @@
24int 24int
25main (int argc, char **argv) 25main (int argc, char **argv)
26{ 26{
27#if 0 /* The current base64 function doesn't work on 8bit data */
27 char random[1024] = { 28 char random[1024] = {
28 0x8b,0xb0,0xc4,0xe2,0xfc,0x22,0x9f,0x0d,0x85,0xe7,0x2c,0xaa,0x39,0xa1,0x46,0x88, 29 0x8b,0xb0,0xc4,0xe2,0xfc,0x22,0x9f,0x0d,0x85,0xe7,0x2c,0xaa,0x39,0xa1,0x46,0x88,
29 0x50,0xe6,0x34,0x37,0x0b,0x45,0x4b,0xb8,0xb2,0x86,0x7a,0x3e,0x7f,0x0c,0x40,0x18, 30 0x50,0xe6,0x34,0x37,0x0b,0x45,0x4b,0xb8,0xb2,0x86,0x7a,0x3e,0x7f,0x0c,0x40,0x18,
@@ -179,9 +180,8 @@ main (int argc, char **argv)
179 0x46,0x62,0x5a,0x61,0x35,0x52,0x6e,0x50,0x59,0x43,0x4f,0x36,0x4f,0x70,0x4d,0x6c, 180 0x46,0x62,0x5a,0x61,0x35,0x52,0x6e,0x50,0x59,0x43,0x4f,0x36,0x4f,0x70,0x4d,0x6c,
180 0x41,0x6e,0x6a,0x4d,0x56,0x41,0x3d,0x3d 181 0x41,0x6e,0x6a,0x4d,0x56,0x41,0x3d,0x3d
181 }; 182 };
183#endif
182 184
183#if 0
184 /* The old base64 function didn't work on 8bit data, below is 7bit */
185 char random[1024] = { 185 char random[1024] = {
186 0x0b,0x30,0x44,0x62,0x7c,0x22,0x1f,0x0d,0x05,0x67,0x2c,0x2a,0x39,0x21,0x46,0x08, 186 0x0b,0x30,0x44,0x62,0x7c,0x22,0x1f,0x0d,0x05,0x67,0x2c,0x2a,0x39,0x21,0x46,0x08,
187 0x50,0x66,0x34,0x37,0x0b,0x45,0x4b,0x38,0x32,0x06,0x7a,0x3e,0x7f,0x0c,0x40,0x18, 187 0x50,0x66,0x34,0x37,0x0b,0x45,0x4b,0x38,0x32,0x06,0x7a,0x3e,0x7f,0x0c,0x40,0x18,
@@ -336,8 +336,6 @@ main (int argc, char **argv)
336 0x46,0x54,0x5a,0x61,0x5a,0x52,0x6c,0x50,0x59,0x43,0x4d,0x36,0x4f,0x68,0x4d,0x6c, 336 0x46,0x54,0x5a,0x61,0x5a,0x52,0x6c,0x50,0x59,0x43,0x4d,0x36,0x4f,0x68,0x4d,0x6c,
337 0x41,0x6e,0x68,0x4d,0x56,0x41,0x3d,0x3d,0x00 337 0x41,0x6e,0x68,0x4d,0x56,0x41,0x3d,0x3d,0x00
338 }; 338 };
339#endif
340
341 char *b64_test; 339 char *b64_test;
342 340
343 plan_tests(1); 341 plan_tests(1);