#include "dbus-hash.h"
#include "dbus-credentials.h"
#include "dbus-internals.h"
-#include "dbus-authorization.h"
/**
* @defgroup DBusAuthScript code for running unit test scripts for DBusAuth
_dbus_credentials_unref (creds);
}
- else if (_dbus_string_starts_with_c_str (&line, "SERVER") ||
- _dbus_string_starts_with_c_str (&line, "SERVER_ANONYMOUS"))
+ else if (_dbus_string_starts_with_c_str (&line,
+ "SERVER"))
{
DBusCredentials *creds;
- DBusAuthorization *authorization;
if (auth != NULL)
{
goto out;
}
- /* empty authorization, it will use default rules */
- authorization = _dbus_authorization_new ();
- if (authorization == NULL)
- {
- _dbus_warn ("no memory to create DBusAuthorization\n");
- goto out;
- }
- /* if we are testing an anonymous server, we need to enable
- * anonymous authorization, or the mech will REJECT */
- if (_dbus_string_starts_with_c_str (&line, "SERVER_ANONYMOUS"))
- _dbus_authorization_set_allow_anonymous (authorization, TRUE);
-
- auth = _dbus_auth_server_new (&guid, authorization);
- /* DBusAuth owns it, or finalized on OOM */
- _dbus_authorization_unref (authorization);
+ auth = _dbus_auth_server_new (&guid);
if (auth == NULL)
{
_dbus_warn ("no memory to create DBusAuth\n");