Commit: 092df7b4f99e3d84d5edc99a13147e0795ccb3e1
Parent: 564197f21ac0a5fffd84d01bc752c50fc2d735f1
Author: David Herrmann <dh.herrmann@googlemail.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2011-07-14 17:22:36
Tree: ed82398f9f7446033b4a9682bd784bc28645eb10

Add pin-code hook to adapter API Plugins may now register pincode callbacks which are called when the authentication of a new device requires a pincode. This allows to have hard-coded binary pins inside the daemon to circumvent the public D-Bus API restrictions (only valid UTF8 strings). The callbacks shall check via VID/PID information whether they support the device and if not, return 0 so the D-Bus API is used to query the current agent for pin input.

Diffstat

M src/adapter.c | 35 +++++++++++++++++++++++++++++++++++
M src/adapter.h | 9 +++++++++
M src/event.c | 2 +-

3 files changed, 45 insertions(+), 1 deletions(-)

View Full Diff | Patch