This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new b36ce21b host: Add defines for Key Distribution settings
b36ce21b is described below
commit b36ce21bc1929883962a501416278228b08730b4
Author: Michal Gorecki <[email protected]>
AuthorDate: Mon Sep 26 14:48:14 2022 +0200
host: Add defines for Key Distribution settings
Add key distribution masks defines. This can be used to initialize
sm_our_key_dist
and sm_their_key_dist fields in ble_hs_cfg struct.
---
nimble/host/include/host/ble_hs.h | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/nimble/host/include/host/ble_hs.h
b/nimble/host/include/host/ble_hs.h
index 6c2acfd4..e1dff5e0 100644
--- a/nimble/host/include/host/ble_hs.h
+++ b/nimble/host/include/host/ble_hs.h
@@ -165,6 +165,25 @@ extern "C" {
/** KeyboardDisplay Only IO capability */
#define BLE_HS_IO_KEYBOARD_DISPLAY 0x04
+/**
+ * @}
+ */
+
+/**
+ * @brief LE key distribution
+ * @defgroup bt_host_key_dist LE key distribution
+ *
+ * @{
+ */
+
+/** Distibute LTK */
+#define BLE_HS_KEY_DIST_ENC_KEY 0x01
+
+/** Distribute IRK */
+#define BLE_HS_KEY_DIST_ID_KEY 0x02
+
+/** CSRK distibution and LinkKey are not supported */
+
/**
* @}
*/