Skip to content

Commit b4c0c79

Browse files
committed
examples: ble_gatt: enable unauthenticated re-pairing
Allow unauthenticated pairings to replace existing unauthenticated pairings. This allows centrals which have lost their bonding information to re-pair. Signed-off-by: Sam Friedman <[email protected]>
1 parent 546539e commit b4c0c79

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

examples/ble_gatt/prj.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ CONFIG_BT_BUF_ACL_TX_SIZE=251
1212
CONFIG_BT_BUF_ACL_RX_SIZE=251
1313
CONFIG_BT_L2CAP_TX_MTU=247
1414

15+
# This allows centrals that connect using Just Works authentication
16+
# to re-pair. This can allow attackers to force a device to forget
17+
# a legitimate bond. In production applications, we recommend using
18+
# authenticated pairing, or if that is not an option, to limit the
19+
# times when pairing is possible (e.g. by requiring user interaction
20+
# to forget bonds or to enter pairing mode).
21+
# We enable this option in the example app because in the absence of
22+
# authenticated connections or another method for forcing the deletion
23+
# of bond data, Centrals that lose their bonding information will be
24+
# unable to reconnect.
25+
CONFIG_BT_SMP_ALLOW_UNAUTH_OVERWRITE=y
26+
1527
# This is needed due to an off-by-one error in Kconfig defaults
1628
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
1729

0 commit comments

Comments
 (0)