From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] Addition for hcid passkey dbus request
Date: Mon, 31 Jul 2006 21:17:52 +0200 [thread overview]
Message-ID: <1154373472.4982.21.camel@aeonflux.holtmann.net> (raw)
In-Reply-To: <200607311850.09567.dgollub@suse.de>
Hi Daniel,
> > someone has to convince me, why the direction information is needed at
> > all. If I remember correctly, then we dropped it on purpose. I simply
> > don't see any useful need for it. Except maybe displaying the "incoming"
> > or "outgoing" and this doesn't really have to do anything with the
> > pairing process.
>
> The pin dialog has to know if the user have to reply a pin from an incoming
> pairing request from another device (only provide a plain input field). Or if
> the pin dialog can suggest a randomly generated pin which have to be replied
> by the other device.
>
> Example:
>
> Outgoing Connection
> The user on the computer triggers a pairing request (outgoing connection). The
> pin get randomly generated and displayed in the pairing dialog and have to
> replied by the cellphone.
>
> Incoming Connection
> The user triggers a pairing from the cellphone with the computer (incoming
> connection). A pin dialog appears on the computer with an input filed to
> reply the same pin.
you can't bind incoming or outgoing connections with the assumption that
this implies the initiator of the authentication request. It is not
working this way. Both are two independent procedures (except for
security mode 3, which is not really supported by BlueZ anymore).
So if you wanna have a random key generated on one side, then you need
to be the initiator of the pairing request. This can be achieved with
calling CreateBonding() and in this case you can register a device
specific passkey agent to create your random number.
The default passkey agent is really meant to be default. It will do the
same task for every pairing request. If you need a specific, like random
number or fixed PIN then use a per device passkey agent.
Regards
Marcel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2006-07-31 19:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-31 13:18 [Bluez-devel] Addition for hcid passkey dbus request Daniel Gollub
2006-07-31 13:26 ` Johan Hedberg
2006-07-31 18:11 ` Marcel Holtmann
2006-07-31 16:50 ` Daniel Gollub
2006-07-31 19:17 ` Marcel Holtmann [this message]
2006-07-31 18:07 ` Daniel Gollub
2006-07-31 18:11 ` Stefan Seyfried
2006-07-31 22:15 ` Marcel Holtmann
2006-07-31 22:21 ` Marcel Holtmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1154373472.4982.21.camel@aeonflux.holtmann.net \
--to=marcel@holtmann.org \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox