Skip to content

Support for displaying PIN for entry into device

Scott James Remnant linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest8 patches 1 replyIn review

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8Rename AUTH_TYPE_NOTIFY to AUTH_TYPE_NOTIFY_PASSKEYsrc/device.c src/device.h src/event.c+7 -70 replies
2/8Pass passkey by pointer rather than by valuesrc/device.c src/device.h src/event.c+10 -90 replies
3/8agent: add DisplayPinCode methodsrc/agent.c src/agent.h+115 -10 replies
4/8Add AUTH_TYPE_NOTIFY_PASSKEY to device_request_authenticationsrc/device.c src/device.h+58 -20 replies
5/8Add display parameter to plugin pincode callbackplugins/wiimote.c src/adapter.c src/adapter.h +1 more+7 -60 replies
6/8Display PIN generated by pluginsrc/event.c+5 -00 replies
7/8doc: document DisplayPinCodedoc/agent-api.txt+24 -00 replies
8/8simple-agent: add DisplayPinCodetest/simple-agent+5 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCHv3 0/8] Support for displaying PIN for entry into device

Rationale: The Bluetooth HID specification recommends that keyboards be paired by generating a PIN on the host and displaying it for entry into the pairing keyboard. This is also the case for other kinds of devices, for example the GNOME Bluetooth wizard does something similar for the CMT-DH5BT audio device.

Current deployments, such as GNOME Bluetooth and Android, perform this generation inside the Agent which means each has to implement their own code to do the same thing. The intent of this patch is to move this common behavior into BlueZ so all can benefit.

My previous patch set performed this generation inside bluetoothd itself, this new version assumes that a plugin will do it and simply provides the mechanism for doing so.

I've also dropped the bt_ids header from the set.

Scott James Remnant (8):
Rename AUTH_TYPE_NOTIFY to AUTH_TYPE_NOTIFY_PASSKEY Pass passkey by pointer rather than by value
agent: add DisplayPinCode method
Add AUTH_TYPE_NOTIFY_PASSKEY to device_request_authentication Add display parameter to plugin pincode callback Display PIN generated by plugin
doc: document DisplayPinCode
simple-agent: add DisplayPinCode

 doc/agent-api.txt |   24 +++++++++++
 plugins/wiimote.c |    2 +-
 src/adapter.c     |    4 +-
 src/adapter.h     |    4 +-
 src/agent.c       |  112 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
 src/agent.h       |    4 ++
 src/device.c      |   72 ++++++++++++++++++++++++++++++----
 src/device.h      |    5 +-
 src/event.c       |   18 ++++++---
 test/simple-agent |    5 ++
 10 files changed, 228 insertions(+), 22 deletions(-)
Signature · 1 line
1.7.7.3