From faa7b5c70b287f1398d4853e263d519dfbf2da5c Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Tue, 24 Jan 2012 10:57:18 -0300 Subject: [PATCH] lib: Add Key Size information to the security information Since some time the kernel has the capability to return the length of the key that was used to encrypt the link. This patch exposes that field to userspace so more applications can take decisions based on this information. --- lib/bluetooth.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bluetooth.h b/lib/bluetooth.h index 5bd4f03df..1dee6df39 100644 --- a/lib/bluetooth.h +++ b/lib/bluetooth.h @@ -63,6 +63,7 @@ extern "C" { #define BT_SECURITY 4 struct bt_security { uint8_t level; + uint8_t key_size; }; #define BT_SECURITY_SDP 0 #define BT_SECURITY_LOW 1 -- 2.47.3