Skip to content

Commit 546539e

Browse files
committed
transport: gatt: enforce Bluetooth Secure Connections
This enforces Bluetooth Security Level 2, with LE Secure Connections. Signed-off-by: Marcin Niestroj <[email protected]>
1 parent 0d37e58 commit 546539e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/transport/gatt/device_cert_characteristic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static ssize_t device_cert_read(struct bt_conn *conn,
9797
POUCH_GATT_CHARACTERISTIC(device_cert,
9898
(const struct bt_uuid *) &pouch_gatt_device_cert_chrc_uuid,
9999
BT_GATT_CHRC_READ,
100-
BT_GATT_PERM_READ,
100+
BT_GATT_PERM_READ_LESC,
101101
device_cert_read,
102102
NULL,
103103
&device_cert_chrc_ctx);

src/transport/gatt/downlink_characteristic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ ssize_t downlink_write(struct bt_conn *conn,
5252
POUCH_GATT_CHARACTERISTIC(downlink,
5353
(const struct bt_uuid *) &pouch_gatt_downlink_chrc_uuid,
5454
BT_GATT_CHRC_WRITE,
55-
BT_GATT_PERM_WRITE,
55+
BT_GATT_PERM_WRITE_LESC,
5656
NULL,
5757
downlink_write,
5858
NULL);

src/transport/gatt/info_characteristic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static ssize_t info_read(struct bt_conn *conn,
124124
POUCH_GATT_CHARACTERISTIC(info,
125125
(const struct bt_uuid *) &pouch_gatt_info_chrc_uuid,
126126
BT_GATT_CHRC_READ,
127-
BT_GATT_PERM_READ,
127+
BT_GATT_PERM_READ_LESC,
128128
info_read,
129129
NULL,
130130
&info_chrc_ctx);

src/transport/gatt/server_cert_characteristic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ static ssize_t server_cert_write(struct bt_conn *conn,
153153
POUCH_GATT_CHARACTERISTIC(server_cert,
154154
(const struct bt_uuid *) &pouch_gatt_server_cert_chrc_uuid,
155155
BT_GATT_CHRC_READ | BT_GATT_CHRC_WRITE,
156-
BT_GATT_PERM_READ | BT_GATT_PERM_WRITE,
156+
BT_GATT_PERM_READ_LESC | BT_GATT_PERM_WRITE_LESC,
157157
server_cert_serial_read,
158158
server_cert_write,
159159
&server_cert_chrc_ctx);

src/transport/gatt/uplink_characteristic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ static void uplink_indicate_destroy(struct bt_gatt_indicate_params *params)
198198
POUCH_GATT_CHARACTERISTIC(uplink,
199199
(const struct bt_uuid *) &pouch_gatt_uplink_chrc_uuid,
200200
BT_GATT_CHRC_READ | BT_GATT_CHRC_INDICATE,
201-
BT_GATT_PERM_READ,
201+
BT_GATT_PERM_READ_LESC,
202202
uplink_read,
203203
NULL,
204204
&uplink_chrc_ctx);

0 commit comments

Comments
 (0)