diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2006-10-12 20:01:29 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2006-10-12 20:01:29 +0000 |
commit | ae1a0e6ffe8d14341f98d15a7a00dd6c21e3b3b5 (patch) | |
tree | abc57584536f9aa5fd0af60e72a575dd0b649b05 /hcid/dbus-security.c | |
parent | 4b12168ab36fa7777e4e2fd4f6a81eb5569518ed (diff) |
Disable passkey agents (reject any pin request) for a device when an audit to it is in progress
Diffstat (limited to 'hcid/dbus-security.c')
-rw-r--r-- | hcid/dbus-security.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/hcid/dbus-security.c b/hcid/dbus-security.c index ab4ce205..20e35a6c 100644 --- a/hcid/dbus-security.c +++ b/hcid/dbus-security.c @@ -476,7 +476,7 @@ static int call_passkey_agent(DBusConnection *conn, ba2str(dba, bda); if (!agent) { - debug("call_passkey_agent(): no agent registered"); + debug("call_passkey_agent(): no agent available"); goto failed; } @@ -563,6 +563,9 @@ int handle_passkey_request(DBusConnection *conn, int dev, const char *path, adapter = data; + if (!bacmp(&adapter->agents_disabled, dba)) + goto done; + ba2str(dba, addr); for (l = adapter->passkey_agents; l != NULL; l = l->next) { |