Support for displaying PIN for entry into device
Get series with b4
b4 am [email protected]Versions newest first
- v3 Latest8 patches 1 replyIn review
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | Rename AUTH_TYPE_NOTIFY to AUTH_TYPE_NOTIFY_PASSKEYsrc/ src/ src/ | +7 | 0 replies | |
| 2/8 | Pass passkey by pointer rather than by valuesrc/ src/ src/ | +10 | 0 replies | |
| 3/8 | agent: add DisplayPinCode methodsrc/ src/ | +115 | 0 replies | |
| 4/8 | Add AUTH_TYPE_NOTIFY_PASSKEY to device_request_authenticationsrc/ src/ | +58 | 0 replies | |
| 5/8 | Add display parameter to plugin pincode callbackplugins/ src/ src/ +1 more | +7 | 0 replies | |
| 6/8 | Display PIN generated by pluginsrc/ | +5 | 0 replies | |
| 7/8 | doc: document DisplayPinCodedoc/ | +24 | 0 replies | |
| 8/8 | simple-agent: add DisplayPinCodetest/ | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
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