2007-06-09 Havoc Pennington <hp@redhat.com>
authorHavoc Pennington <hp@redhat.com>
Sun, 10 Jun 2007 04:54:45 +0000 (04:54 +0000)
committerHavoc Pennington <hp@redhat.com>
Sun, 10 Jun 2007 04:54:45 +0000 (04:54 +0000)
commita789b7b38cb4f4540a41444cbd64bf7ada2d60d2
treedb5164def7f5d19266bc4ebfb4ce740f269d79e2
parent7be5fd95cdccdca28937804f32ca8b1308887d09
2007-06-09  Havoc Pennington  <hp@redhat.com>

* dbus/dbus-string.c (_dbus_string_pop_line): fix this not to
think an empty line is the end of the file.
Also, fix some whitespace.

* dbus/dbus-string-util.c: add more tests for
_dbus_string_pop_line() revealing that it thinks an empty line is
the end of the file, which broke dbus-auth-script.c so
it didn't really run the scripts

* dbus/dbus-auth.c: add ANONYMOUS mechanism

* dbus/dbus-auth-script.c (_dbus_auth_script_run): fix to detect
an empty/no-op auth script; add commands to check that we have or
don't have the expected credentials
ChangeLog
dbus/dbus-auth-script.c
dbus/dbus-auth.c
dbus/dbus-string-util.c
dbus/dbus-string.c
test/data/auth/anonymous-client-successful.auth-script [new file with mode: 0644]
test/data/auth/anonymous-server-successful.auth-script [new file with mode: 0644]
test/data/auth/external-failed.auth-script
test/data/auth/external-root.auth-script
test/data/auth/external-silly.auth-script
test/data/auth/external-successful.auth-script