mbox series

[BlueZ,v2,0/2] Optionally require security for notify/indicate

Message ID 20210929180031.417090-1-dmartinez@starry.com (mailing list archive)
Headers show
Series Optionally require security for notify/indicate | expand

Message

Dagan Martinez Sept. 29, 2021, 6 p.m. UTC
In some cases, it is desirable to require encryption and/or
authentication for server-initiated updates, as they may contain
sensitive data.

Currently, there is no way to do this with BlueZ.

Here is a query about this feature from 2019:
https://stackoverflow.com/questions/55884233

This patch implements this feature by introducing new `x-asynchronous`
flags that allow a user to restrict access to a characteristic's CCCD
(as well as documentation for those flags).

---

Changes in v2:
- Fix line-width issues brought up by CI

Dagan Martinez (2):
  gatt: allow GATT server to dicate CCC permissions
  doc/gatt-api: Add 'X-asynchronous` permissions

 doc/gatt-api.txt       | 11 ++++++++++-
 src/gatt-database.c    | 30 ++++++++++++++++++++++++++----
 src/shared/att-types.h |  4 ++++
 3 files changed, 40 insertions(+), 5 deletions(-)