Re: [PATCH v2] Add support of secure pin code in mgmt code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Waldek,

On Wed, Jun 01, 2011, Waldemar.Rymarkiewicz@xxxxxxxxx wrote:
> You mentioned that the check should be done in kernel as well.
> However, mgmt API is like mgmt_pincode_replay and
> mgmt_pincode_neg_replay what means that I should do a check (secure ==
> 1 && pinlen !=16) on mgmt_pincode_replay and if the pin is in fact not
> secure then send pincode_neg_replay to the controller.
> 
> In that case we could skipp checking in bluez at all to avoid double
> checking, but it's fine if we do so.
> 
> What about replaceing mgmt_pincode_replay and mgmt_pincode_neg_replay
> with one mgmt_pincode_replay + error field in the struct to indicate
> user space succeded or not. This way the checking could be done only
> in the kernel I guess.

I prefer to have two separate mgmt commands (this is consistent both
with HCI and with the SSP related commands) and it's fine to have the
check only on the kernel side (there's really no practical difference
between one command with an error field or two separate commands).

Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux