public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] User security mode patch
@ 2008-10-03 12:47 Guillaume Bedot
  2008-10-03 13:15 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: Guillaume Bedot @ 2008-10-03 12:47 UTC (permalink / raw)
  To: bluez-devel, cooker

[-- Attachment #1: Type: text/plain, Size: 307 bytes --]

Hello,

On my cooker box (i still use 3.36 though), with the default hcid.conf
file, i can't pair with my phone unless i comment out the
passkey="BlueZ" line, or apply the joined patch.

The documentation says this passkey should be used only in auto security
mode.

Or am I wrong ?

Regards,

Guillaume B.

[-- Attachment #2: bluez-utils-3.36-always-request-pin-in-user-security-mode.patch --]
[-- Type: text/x-patch, Size: 459 bytes --]

--- bluez-utils-3.36.orig/hcid/security.c	2008-10-03 13:37:17.000000000 +0200
+++ bluez-utils-3.36/hcid/security.c	2008-10-03 13:37:28.000000000 +0200
@@ -500,7 +500,7 @@
 	} else if (pairing == HCID_PAIRING_NONE)
 		goto reject;
 
-	if (hcid.security == HCID_SEC_AUTO && !ci->out) {
+	if ((hcid.security == HCID_SEC_AUTO) && !ci->out) {
 		set_pin_length(sba, hcid.pin_len);
 		memcpy(pr.pin_code, hcid.pin_code, hcid.pin_len);
 		pr.pin_len = hcid.pin_len;

[-- Attachment #3: Type: text/plain, Size: 363 bytes --]

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2008-10-03 18:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-03 12:47 [Bluez-devel] User security mode patch Guillaume Bedot
2008-10-03 13:15 ` Marcel Holtmann
2008-10-03 18:40   ` Guillaume Bedot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox