summaryrefslogtreecommitdiff
path: root/peripheral
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@codecoup.pl>2018-03-23 14:08:21 +0100
committerSzymon Janc <szymon.janc@codecoup.pl>2018-03-26 16:06:20 +0200
commit834a45d22ee3295c51827f568160a92dbc87bef6 (patch)
tree2e2a38ff9cdd6d6d445ed40f158679fffb79f5b1 /peripheral
parentdb663b1d57895070efb6cabfd78cb1b5c480cb43 (diff)
downloadbluez-834a45d22ee3295c51827f568160a92dbc87bef6.tar.gz
Add support for requiring min key size for access GATT characteristics
This allows to configure bluetoothd to require minimum encryption key size when accessing GATT server characteristics. It is a global configuration option affecting whole GATT database.
Diffstat (limited to 'peripheral')
-rw-r--r--peripheral/gatt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/peripheral/gatt.c b/peripheral/gatt.c
index 5ae19a8e5..08541c424 100644
--- a/peripheral/gatt.c
+++ b/peripheral/gatt.c
@@ -128,7 +128,7 @@ static struct gatt_conn *gatt_conn_new(int fd)
bt_att_set_security(conn->att, BT_SECURITY_MEDIUM);
- conn->gatt = bt_gatt_server_new(gatt_db, conn->att, mtu);
+ conn->gatt = bt_gatt_server_new(gatt_db, conn->att, mtu, 0);
if (!conn->gatt) {
fprintf(stderr, "Failed to create GATT server\n");
bt_att_unref(conn->att);