dbus/test/data/auth client-out-of-mechanisms.auth-script,NONE,1.1
Kristian Hogsberg
krh at pdx.freedesktop.org
Mon May 17 16:34:57 PDT 2004
- Previous message: dbus ChangeLog,1.489,1.490
- Next message: dbus/dbus dbus-auth-script.c, 1.13, 1.14 dbus-auth.c, 1.33,
1.34 dbus-transport-unix.c, 1.35, 1.36 dbus-transport.c, 1.37, 1.38
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvs/dbus/dbus/test/data/auth
In directory pdx:/tmp/cvs-serv13777/test/data/auth
Added Files:
client-out-of-mechanisms.auth-script
Log Message:
* dbus/dbus-auth.c (client_try_next_mechanism): Remove logic to
filter against auth->allowed_mechs; we only add allowed mechs in
record_mechanisms().
* dbus/dbus-auth-script.c (_dbus_auth_script_run): Add an
ALLOWED_MECHS to auth-script format so we can set the list of
allowed mechanisms.
* data/auth/client-out-of-mechanisms.auth-script: New test to
check client disconnects when it is out of mechanisms to try.
* dbus/dbus-auth.c (process_command): Remove check for lines
longer that 1 MB; we only buffer up maximum 16 kB.
* dbus/dbus-transport.c, dbus/dbus-transport-unix.c,
dbus/dbus-auth-script.c, dbus/dbus-auth.c, dbus/dbus-auth.h:
Remove auth state AUTHENTICATED_WITH_UNUSED_BYTES, instead always
assume there might be unused bytes.
* dbus/dbus-auth.c (_dbus_auth_do_work): Remove check for
client-out-of-mechs, it is handled in process_reject(). Move check
for max failures to send_rejected(), as it's a server-only thing.
--- NEW FILE: client-out-of-mechanisms.auth-script ---
## this tests that tests that the client disconnects when it's out of
## known mechanisms
CLIENT
EXPECT_COMMAND AUTH
SEND 'REJECTED BONGO_MD5'
EXPECT_STATE NEED_DISCONNECT
- Previous message: dbus ChangeLog,1.489,1.490
- Next message: dbus/dbus dbus-auth-script.c, 1.13, 1.14 dbus-auth.c, 1.33,
1.34 dbus-transport-unix.c, 1.35, 1.36 dbus-transport.c, 1.37, 1.38
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dbus-commit
mailing list