]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(decode_table): Added vertical tab (VT) and form
authorNiels Möller <nisse@lysator.liu.se>
Mon, 15 Sep 2008 20:21:20 +0000 (22:21 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Mon, 15 Sep 2008 20:21:20 +0000 (22:21 +0200)
feed (FF) as white space characters.

Rev: nettle/base64-decode.c:1.2

base64-decode.c

index 0ead7325d4fb9939e11f37ee43d158042135be99..ac3bc385b81639a3ec80bf7b26aeeca2561c5049 100644 (file)
 #define TABLE_SPACE -2
 #define TABLE_END -3
 
-/* FIXME: Make sure that all whitespace characters, SPC, HT, VT, FF,
- * CR and LF are ignored. */
 static const signed char
 decode_table[0x100] =
 {
-  -1, -1, -1, -1, -1, -1, -1, -1, -1, -2, -2, -1, -1, -2, -1, -1, 
+  /* White space is HT, VT, FF, CR, LF and SPC */
+  -1, -1, -1, -1, -1, -1, -1, -1, -1, -2, -2, -2, -2, -2, -1, -1, 
   -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
   -2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63,
   52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -3, -1, -1,