* [Bluez-devel] CreateSecureDevice
@ 2008-03-04 22:11 Andrew Jorgensen
2008-03-04 22:25 ` Marcel Holtmann
0 siblings, 1 reply; 6+ messages in thread
From: Andrew Jorgensen @ 2008-03-04 22:11 UTC (permalink / raw)
To: bluez-devel
Hello,
I was wondering why there is a CreateDevice in org.bluez.input.Manager
if CreateSecureDevice will fall back to the same behavior if the
device in question does not support secure pairing.
bluez-gnome switched to CreateSecureDevice after that method was added
which broke users who still had older bluez-utils (no changes to
require a newer bluez-utils were made). Would it not have been better
to just add the security routines to the existing CreateDevice? Is it
too late to change this now?
Best Regards,
Andrew Jorgensen
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bluez-devel] CreateSecureDevice
2008-03-04 22:11 [Bluez-devel] CreateSecureDevice Andrew Jorgensen
@ 2008-03-04 22:25 ` Marcel Holtmann
2008-03-04 22:40 ` Andrew Jorgensen
0 siblings, 1 reply; 6+ messages in thread
From: Marcel Holtmann @ 2008-03-04 22:25 UTC (permalink / raw)
To: BlueZ development
Hi Andrew,
> I was wondering why there is a CreateDevice in org.bluez.input.Manager
> if CreateSecureDevice will fall back to the same behavior if the
> device in question does not support secure pairing.
>
> bluez-gnome switched to CreateSecureDevice after that method was added
> which broke users who still had older bluez-utils (no changes to
> require a newer bluez-utils were made). Would it not have been better
> to just add the security routines to the existing CreateDevice? Is it
> too late to change this now?
yes, it is too later and it would have broken the API. If
CreateSecureDevice returns with no such method error, you can always
fallback to CreateDevice.
Regards
Marcel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bluez-devel] CreateSecureDevice
2008-03-04 22:25 ` Marcel Holtmann
@ 2008-03-04 22:40 ` Andrew Jorgensen
2008-03-06 10:56 ` Marcel Holtmann
0 siblings, 1 reply; 6+ messages in thread
From: Andrew Jorgensen @ 2008-03-04 22:40 UTC (permalink / raw)
To: BlueZ development
On Tue, Mar 4, 2008 at 3:25 PM, Marcel Holtmann
> yes, it is too later and it would have broken the API. If
> CreateSecureDevice returns with no such method error, you can always
> fallback to CreateDevice.
Hi Marcel,
Aren't you maintaining bluez-gnome? Could you add this fallback to
properties/input.c?
I'm curious what you mean by "would have broken the API." Do you mean
if we were to remove the method now after it has been released? If so
then I agree, it's too late.
But I'm curious why a new method was added rather than new
functionality to the existing method. Are there new callbacks that
would have broken existing clients? I guess it's a moot point now
though.
Thanks,
Andrew
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bluez-devel] CreateSecureDevice
2008-03-04 22:40 ` Andrew Jorgensen
@ 2008-03-06 10:56 ` Marcel Holtmann
2008-03-06 15:54 ` Andrew Jorgensen
0 siblings, 1 reply; 6+ messages in thread
From: Marcel Holtmann @ 2008-03-06 10:56 UTC (permalink / raw)
To: BlueZ development
Hi Andrew,
> Aren't you maintaining bluez-gnome? Could you add this fallback to
> properties/input.c?
feel free to send a patch :)
> I'm curious what you mean by "would have broken the API." Do you mean
> if we were to remove the method now after it has been released? If so
> then I agree, it's too late.
We can't add any parameters to an already established method call. And
there are cases were we wanna use a device in an unpaired way.
> But I'm curious why a new method was added rather than new
> functionality to the existing method. Are there new callbacks that
> would have broken existing clients? I guess it's a moot point now
> though.
See my point above. It is not that simple.
Regards
Marcel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bluez-devel] CreateSecureDevice
2008-03-06 10:56 ` Marcel Holtmann
@ 2008-03-06 15:54 ` Andrew Jorgensen
2008-03-07 18:39 ` Marcel Holtmann
0 siblings, 1 reply; 6+ messages in thread
From: Andrew Jorgensen @ 2008-03-06 15:54 UTC (permalink / raw)
To: BlueZ development
On Thu, Mar 6, 2008 at 3:56 AM, Marcel Holtmann
> > Aren't you maintaining bluez-gnome? Could you add this fallback to
> > properties/input.c?
>
> feel free to send a patch :)
Trouble is that it doesn't return anything, it just segfaults.
Probably it's being called in some wrong way. I might look at it
someday but given that I can just remove 'Secure' if bluez-utils is
too old I think I'll just leave the package patched.
> > I'm curious what you mean by "would have broken the API." Do you mean
> > if we were to remove the method now after it has been released? If so
> > then I agree, it's too late.
>
> We can't add any parameters to an already established method call. And
> there are cases were we wanna use a device in an unpaired way.
There can be an input device that can be used in either paired or
unpaired mode as desired? I wouldn't have thought any such thing
existed, but if that's so then I agree and am sorry to have troubled
you about it.
Thanks,
Andrew
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bluez-devel] CreateSecureDevice
2008-03-06 15:54 ` Andrew Jorgensen
@ 2008-03-07 18:39 ` Marcel Holtmann
0 siblings, 0 replies; 6+ messages in thread
From: Marcel Holtmann @ 2008-03-07 18:39 UTC (permalink / raw)
To: BlueZ development
Hi Andrew,
>>> Aren't you maintaining bluez-gnome? Could you add this fallback to
>>> properties/input.c?
>>
>> feel free to send a patch :)
>
> Trouble is that it doesn't return anything, it just segfaults.
> Probably it's being called in some wrong way. I might look at it
> someday but given that I can just remove 'Secure' if bluez-utils is
> too old I think I'll just leave the package patched.
if it segfaults then it is a bug in bluez-gnome. It should never
segfault only because a method is not available.
>>> I'm curious what you mean by "would have broken the API." Do you
>>> mean
>>> if we were to remove the method now after it has been released?
>>> If so
>>> then I agree, it's too late.
>>
>> We can't add any parameters to an already established method call.
>> And
>> there are cases were we wanna use a device in an unpaired way.
>
> There can be an input device that can be used in either paired or
> unpaired mode as desired? I wouldn't have thought any such thing
> existed, but if that's so then I agree and am sorry to have troubled
> you about it.
The HID specification and its implementation are broken in some cases :(
Regards
Marcel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-03-07 18:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-04 22:11 [Bluez-devel] CreateSecureDevice Andrew Jorgensen
2008-03-04 22:25 ` Marcel Holtmann
2008-03-04 22:40 ` Andrew Jorgensen
2008-03-06 10:56 ` Marcel Holtmann
2008-03-06 15:54 ` Andrew Jorgensen
2008-03-07 18:39 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox