Skip to content

Generate PIN for keyboards inside bluetoothd

Scott James Remnant linux-bluetooth 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 0 repliesNew
  2. v1 RFC3 patches 10 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8bt_ids: add header of device class constantssrc/bt_ids.h+125 -00 replies
2/8Rename AUTH_TYPE_NOTIFY to AUTH_TYPE_NOTIFY_PASSKEYsrc/device.c src/device.h src/event.c+7 -70 replies
3/8Pass passkey by pointer rather than by valuesrc/device.c src/device.h src/event.c+10 -90 replies
4/8agent: add DisplayPinCode methodsrc/agent.c src/agent.h+115 -10 replies
5/8Add AUTH_TYPE_NOTIFY_PASSKEY to device_request_authenticationsrc/device.c src/device.h+58 -20 replies
6/8Generate PIN for keyboard devicessrc/event.c+19 -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 v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/8] Generate PIN for keyboards inside bluetoothd

Thanks for the comments on my RFC patch set, I've addressed those in this new version which I'm now submitting formally.

The main changes are:
- bt_ids.h moved to src/
- a D-Bus error from calling DisplayPinCode results in a fallback to calling RequestPinCode instead
- PIN isn't sent to the adapter until a successful reply from either DisplayPinCode or RequestPinCode

This grew the patch a bit unsurprisingly, so I've split it up a fair amount more - including separating out the documentating and tests as requested.

Scott James Remnant (8):
bt_ids: add header of device class constants
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 Generate PIN for keyboard devices
doc: document DisplayPinCode
simple-agent: add DisplayPinCode

 doc/agent-api.txt |   24 ++++++++++
 src/agent.c       |  112 +++++++++++++++++++++++++++++++++++++++++++++++-
 src/agent.h       |    4 ++
 src/bt_ids.h      |  125 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/device.c      |   72 +++++++++++++++++++++++++++---
 src/device.h      |    5 +-
 src/event.c       |   29 ++++++++++--
 test/simple-agent |    5 ++
 8 files changed, 360 insertions(+), 16 deletions(-)
 create mode 100644 src/bt_ids.h
Signature · 1 line
1.7.7.3