linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ v3 1/6] lib: Add Key Size information to the security information
@ 2012-01-24 13:57 Vinicius Costa Gomes
  2012-01-24 13:57 ` [PATCH BlueZ v3 2/6] btio: Add support for getting the Encryption Key Size via btio Vinicius Costa Gomes
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Vinicius Costa Gomes @ 2012-01-24 13:57 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Vinicius Costa Gomes

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 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
-- 
1.7.8.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-01-24 14:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-24 13:57 [PATCH BlueZ v3 1/6] lib: Add Key Size information to the security information Vinicius Costa Gomes
2012-01-24 13:57 ` [PATCH BlueZ v3 2/6] btio: Add support for getting the Encryption Key Size via btio Vinicius Costa Gomes
2012-01-24 13:57 ` [PATCH BlueZ v3 3/6] test: Add support for passing the CID to btiotest Vinicius Costa Gomes
2012-01-24 13:57 ` [PATCH BlueZ v3 4/6] test: Add support for btiotest to returning the key size Vinicius Costa Gomes
2012-01-24 13:57 ` [PATCH BlueZ v3 5/6] btio: Remove the default security level from btio Vinicius Costa Gomes
2012-01-24 13:57 ` [PATCH BlueZ v3 6/6] btio: Fix users to not expect a default security level Vinicius Costa Gomes
2012-01-24 14:21 ` [PATCH BlueZ v3 1/6] lib: Add Key Size information to the security information Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).