summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-04-14 23:52:40 +0000
committerHavoc Pennington <hp@redhat.com>2003-04-14 23:52:40 +0000
commitfe1cb3a9a1fc6bcbfa1b3be74ac9d5867005210f (patch)
treeaed4dfc46cfa3791a06f6f2ac3b465f0d5a5dd2f /test
parent7c434a849a161c4514f3759659ac7af9ecddc721 (diff)
2003-04-14 Havoc Pennington <hp@redhat.com>
* dbus/dbus-userdb.c: user database abstraction, mostly to get caching, but at some point we might want to be able to use a different database. * bus/dispatch.c (bus_dispatch_sha1_test): add a test that uses SHA1 conf file to test the sha1 auth mechanism, since the regular test always uses EXTERNAL when available. * configure.in, test/data/valid-config-files/debug-allow-all-sha1.conf.in: add conf file that requires use of sha1 auth
Diffstat (limited to 'test')
-rw-r--r--test/data/valid-config-files/debug-allow-all-sha1.conf.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/data/valid-config-files/debug-allow-all-sha1.conf.in b/test/data/valid-config-files/debug-allow-all-sha1.conf.in
new file mode 100644
index 00000000..6db93f0c
--- /dev/null
+++ b/test/data/valid-config-files/debug-allow-all-sha1.conf.in
@@ -0,0 +1,16 @@
+<!-- Bus that listens on a debug pipe and requires SHA1 auth, used to test SHA1 -->
+
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+ <listen>debug-pipe:name=test-server</listen>
+ <listen>unix:tmpdir=@TEST_SOCKET_DIR@</listen>
+ <servicedir>@TEST_SERVICE_DIR@</servicedir>
+ <auth>DBUS_COOKIE_SHA1</auth>
+ <policy context="default">
+ <allow send="*"/>
+ <allow receive="*"/>
+ <allow own="*"/>
+ <allow user="*"/>
+ </policy>
+</busconfig>