zephyr/samples/bluetooth
Luiz Augusto von Dentz 03b9ce487c Bluetooth: GATT: Add support to setting permission on CCCD
This adds support to set different permissions to CCCD so security can
be checked when enabling notification which conforms to:

BLUETOOTH CORE SPECIFICATION Version 5.1 | Vol 3, Part G page 2360:

  '3.3.3.3 Client Characteristic Configuration

   Authentication and authorization may be required by the server to
   write the configuration descriptor.'

In addition to that also ensure that notification are not re-enabled
until the proper security level is reached to conform to the following
statement:

  '10.3.1.1 Handling of GATT indications and notifications

   A client “requests” a server to send indications and notifications
   by appropriately configuring the server via a Client Characteristic
   Configuration Descriptor. Since the configuration is persistent
   across a disconnection and reconnection, security requirements must
   be checked against the configuration upon a reconnection before
   sending indications or notifications. When a server reconnects to a
   client to send an indication or notification for which security is
   required, the server shall initiate or request encryption with the
   client prior to sending an indication or notification. If the client
   does not have an LTK indicating that the client has lost the bond,
   enabling encryption will fail.'

Fixes #17983

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2019-09-19 21:12:39 +03:00
..
beacon
central Bluetooth: Host: Print error codes in hex 2019-08-05 12:18:17 +02:00
central_hr Bluetooth: Host: Print error codes in hex 2019-08-05 12:18:17 +02:00
eddystone Bluetooth: Host: Print error codes in hex 2019-08-05 12:18:17 +02:00
handsfree
hci_spi
hci_uart Bluetooth: samples: Reduce the bbc_microbit RAM usage 2019-08-15 15:07:12 +02:00
hci_usb samples: hci_usb: remove whitelisting 2019-07-12 05:54:16 -07:00
ibeacon
ipsp
mesh Bluetooth: Mesh: Remove special stack config 2019-09-11 14:04:16 +03:00
mesh_demo Bluetooth: samples: Reduce the bbc_microbit RAM usage 2019-08-15 15:07:12 +02:00
peripheral Bluetooth: GATT: Add support to setting permission on CCCD 2019-09-19 21:12:39 +03:00
peripheral_csc Bluetooth: GATT: Add support to setting permission on CCCD 2019-09-19 21:12:39 +03:00
peripheral_dis Bluetooth: Host: Print error codes in hex 2019-08-05 12:18:17 +02:00
peripheral_esp Bluetooth: GATT: Add support to setting permission on CCCD 2019-09-19 21:12:39 +03:00
peripheral_hids Bluetooth: GATT: Add support to setting permission on CCCD 2019-09-19 21:12:39 +03:00
peripheral_hr Bluetooth: Host: Print error codes in hex 2019-08-05 12:18:17 +02:00
peripheral_ht Bluetooth: GATT: Add support to setting permission on CCCD 2019-09-19 21:12:39 +03:00
peripheral_sc_only Bluetooth: Host: Rename long error codes 2019-08-27 15:13:25 +02:00
scan_adv
bluetooth.rst