zephyr/tests/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
..
bluetooth tests: enable native_posix_64 testing 2019-07-16 10:41:11 -07:00
bsim_bt Bluetooth: Host: Rename API function to initiate bluetooth security. 2019-08-27 15:13:25 +02:00
ctrl_user_ext Bluetooth: controller: hci: Add user hooks. 2019-07-17 13:53:13 +02:00
gatt Bluetooth: GATT: Add support to setting permission on CCCD 2019-09-19 21:12:39 +03:00
hci_prop_evt tests: enable native_posix_64 testing 2019-07-16 10:41:11 -07:00
init Bluetooth: controller: Rename BT_LL_SW to BT_LL_SW_LEGACY 2019-07-22 14:23:42 +02:00
l2cap tests: enable native_posix_64 testing 2019-07-16 10:41:11 -07:00
ll_settings tests: Bluetooth: Add test case for settings in the controller. 2019-07-23 10:58:03 +02:00
mesh tests: bluetooth: mesh: adjust microbit config 2019-09-12 05:17:39 -04:00
mesh_shell Bluetooth: mesh_shell: Disable controller filter 2019-08-11 16:42:52 +02:00
shell Bluetooth: Shell: Add whitelist commands to shell 2019-08-09 16:26:10 +02:00
tester Bluetooth: GATT: Add support to setting permission on CCCD 2019-09-19 21:12:39 +03:00
uuid Bluetooth: UUID: Add test for bt_uuid_create 2019-09-03 16:41:00 +02:00