aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2012-01-24 10:57:18 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-01-24 16:21:39 +0200
commitd25ab0fa3d8f422c413a4c474425e1d60554dd44 (patch)
tree591290d466da92e37606a8a7f2693689eb91f4c2
parentaf3299c3a695554d8ac8c97a6f952cef65467380 (diff)
downloadbluez-hcidump-d25ab0fa3d8f422c413a4c474425e1d60554dd44.tar.gz
bluez-hcidump-d25ab0fa3d8f422c413a4c474425e1d60554dd44.tar.xz
bluez-hcidump-d25ab0fa3d8f422c413a4c474425e1d60554dd44.zip
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.
-rw-r--r--lib/bluetooth.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bluetooth.h b/lib/bluetooth.h
index 5bd4f03..1dee6df 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