dbus/test Makefile.am,1.31,1.32 unbase64.c,1.3,NONE

Kristian Hogsberg krh at pdx.freedesktop.org
Mon May 17 15:19:06 PDT 2004


Update of /cvs/dbus/dbus/test
In directory pdx:/tmp/cvs-serv12926/test

Modified Files:
	Makefile.am 
Removed Files:
	unbase64.c 
Log Message:
2004-05-17  Kristian Høgsberg  <krh at redhat.com>

	Remove base64 encoding, replace with hex encoding. Original patch
	from trow at ximian.com, added error handling.

	* dbus/dbus-string.c (_dbus_string_base64_encode)
	(_dbus_string_base64_decode): Remove.
	(_dbus_string_hex_decode): Add end_return argument so we can
	distinguish between OOM and invalid hex encoding.
	(_dbus_string_test): Remove base64 tests and add test case for
	invalid hex.

	* dbus/dbus-keyring.c, dbus/dbus-auth-script.c, dbus/dbus-auth.c:
	Replace base64 with hex.

	* test/data/auth/invalid-hex-encoding.auth-script: New test case
	for invalid hex encoded data in auth protocol.



Index: Makefile.am
===================================================================
RCS file: /cvs/dbus/dbus/test/Makefile.am,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- a/Makefile.am	13 Apr 2004 01:37:57 -0000	1.31
+++ b/Makefile.am	17 May 2004 22:19:04 -0000	1.32
@@ -9,7 +9,7 @@
 
 
 if DBUS_BUILD_TESTS
-TEST_BINARIES=test-service unbase64 break-loader spawn-test test-segfault test-exit test-sleep-forever
+TEST_BINARIES=test-service break-loader spawn-test test-segfault test-exit test-sleep-forever
 else
 TEST_BINARIES=
 endif
@@ -27,9 +27,6 @@
 	test-utils.c				\
 	test-utils.h
 
-unbase64_SOURCES=				\
-	unbase64.c
-
 break_loader_SOURCES=				\
 	break-loader.c
 
@@ -51,7 +48,6 @@
 TEST_LIBS=$(DBUS_TEST_LIBS) $(top_builddir)/dbus/libdbus-convenience.la
 
 test_service_LDADD=$(TEST_LIBS)
-unbase64_LDADD=$(TEST_LIBS)
 break_loader_LDADD= $(TEST_LIBS)
 spawn_test_LDADD=$(TEST_LIBS)
 decode_gcov_LDADD=$(TEST_LIBS)

--- unbase64.c DELETED ---




More information about the dbus-commit mailing list