SF.net SVN: nagiosplug: [1927] nagiosplug/trunk/lib/tests/test_base64.c

[email protected]
Newsgroups gmane.network.nagios.plugins.cvs
Message-ID <[email protected]>
Revision: 1927
          http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=1927&view=rev
Author:   dermoth
Date:     2008-02-12 20:07:39 -0800 (Tue, 12 Feb 2008)

Log Message:
-----------
Reverting patch to test 8-bit data: Still broken on Solaris (7-bit works as before)

Modified Paths:
--------------
    nagiosplug/trunk/lib/tests/test_base64.c

Modified: nagiosplug/trunk/lib/tests/test_base64.c
===================================================================
--- nagiosplug/trunk/lib/tests/test_base64.c	2008-02-12 12:03:58 UTC (rev 1926)
+++ nagiosplug/trunk/lib/tests/test_base64.c	2008-02-13 04:07:39 UTC (rev 1927)
@@ -24,6 +24,7 @@
 int
 main (int argc, char **argv)
 {
+#if 0  /* The current base64 function doesn't work on 8bit data */
 	char random[1024] = {
 	0x8b,0xb0,0xc4,0xe2,0xfc,0x22,0x9f,0x0d,0x85,0xe7,0x2c,0xaa,0x39,0xa1,0x46,0x88,
 	0x50,0xe6,0x34,0x37,0x0b,0x45,0x4b,0xb8,0xb2,0x86,0x7a,0x3e,0x7f,0x0c,0x40,0x18,
@@ -179,9 +180,8 @@
 	0x46,0x62,0x5a,0x61,0x35,0x52,0x6e,0x50,0x59,0x43,0x4f,0x36,0x4f,0x70,0x4d,0x6c,
 	0x41,0x6e,0x6a,0x4d,0x56,0x41,0x3d,0x3d
 	};
+#endif
 
-#if 0
-  /* The old base64 function didn't work on 8bit data, below is 7bit */
 	char random[1024] = {
 	0x0b,0x30,0x44,0x62,0x7c,0x22,0x1f,0x0d,0x05,0x67,0x2c,0x2a,0x39,0x21,0x46,0x08,
 	0x50,0x66,0x34,0x37,0x0b,0x45,0x4b,0x38,0x32,0x06,0x7a,0x3e,0x7f,0x0c,0x40,0x18,
@@ -336,8 +336,6 @@
 	0x46,0x54,0x5a,0x61,0x5a,0x52,0x6c,0x50,0x59,0x43,0x4d,0x36,0x4f,0x68,0x4d,0x6c,
 	0x41,0x6e,0x68,0x4d,0x56,0x41,0x3d,0x3d,0x00
 	};
-#endif
-
 	char *b64_test;
 
 	plan_tests(1);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.