From 8f0bc517cbbbdaa4ab33ecb9f209511d5839b439 Mon Sep 17 00:00:00 2001
From: schneider <schneider@blinkenlichts.net>
Date: Thu, 15 Aug 2019 15:45:10 +0200
Subject: [PATCH] feat(ble): Only allow "secure" pairings

---
 epicardium/ble/ble_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/epicardium/ble/ble_main.c b/epicardium/ble/ble_main.c
index 4c0971e7..aed8c581 100644
--- a/epicardium/ble/ble_main.c
+++ b/epicardium/ble/ble_main.c
@@ -113,11 +113,11 @@ static const basCfg_t bleBasCfg =
 static const smpCfg_t bleSmpCfg =
 {
   3000,                                   /*! 'Repeated attempts' timeout in msec */
-  SMP_IO_NO_IN_NO_OUT,                    /*! I/O Capability */
+  SMP_IO_DISP_YES_NO,                     /*! I/O Capability */
   7,                                      /*! Minimum encryption key length */
   16,                                     /*! Maximum encryption key length */
   3,                                      /*! Attempts to trigger 'repeated attempts' timeout */
-  0,                                      /*! Device authentication requirements */
+  DM_AUTH_MITM_FLAG,                      /*! Device authentication requirements */
 };
 
 /**************************************************************************************************
-- 
GitLab