* Re: [Bluez-devel] intercept new authentication events
@ 2007-04-05 15:07 Adolfo Bulfoni
2007-04-05 18:11 ` Claudio Takahasi
0 siblings, 1 reply; 4+ messages in thread
From: Adolfo Bulfoni @ 2007-04-05 15:07 UTC (permalink / raw)
To: bluez-devel
Hi Marcel
thanks for your quick reply.
I've checked the passkey-agent util program in /bluez-utils/daemon/ and if =
I try running it, an error message comes up saying there is already a =
passkey agent running on my PC.
How can I intercept the events sent by this agent? What are the functions =
that need to be called to get the output events from it?
A "dirty" workaround for my app might be to tail the /var/log/syslog file, =
where the pin_code_request event is logged, together with the remote device =
address. But I'd prefer a cleaner solution.
Thanks in advance,
regards
Adolfo
_________________________________________________________________
Ami i Quiz? Mettiti alla prova con Duell Live=85Gratis su Messenger! =
http://specials.it.msn.com/DuelLive.aspx
-------------------------------------------------------------------------
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=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bluez-devel] intercept new authentication events
2007-04-05 15:07 [Bluez-devel] intercept new authentication events Adolfo Bulfoni
@ 2007-04-05 18:11 ` Claudio Takahasi
0 siblings, 0 replies; 4+ messages in thread
From: Claudio Takahasi @ 2007-04-05 18:11 UTC (permalink / raw)
To: BlueZ development
On 4/5/07, Adolfo Bulfoni <iaquintovski@hotmail.com> wrote:
> Hi Marcel
> thanks for your quick reply.
>
> I've checked the passkey-agent util program in /bluez-utils/daemon/ and if
> I try running it, an error message comes up saying there is already a
> passkey agent running on my PC.
> How can I intercept the events sent by this agent? What are the functions
> that need to be called to get the output events from it?
> A "dirty" workaround for my app might be to tail the /var/log/syslog file,
> where the pin_code_request event is logged, together with the remote device
> address. But I'd prefer a cleaner solution.
> Thanks in advance,
> regards
>
> Adolfo
>
Hi Adolfo,
You can develop your own passkey agent. Here is a brief description
how the passkey agent works:
http://wiki.bluez.org/wiki/Security
BR,
Claudio
-------------------------------------------------------------------------
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bluez-devel] intercept new authentication events
@ 2007-04-05 8:05 Adolfo Bulfoni
2007-04-05 9:29 ` Marcel Holtmann
0 siblings, 1 reply; 4+ messages in thread
From: Adolfo Bulfoni @ 2007-04-05 8:05 UTC (permalink / raw)
To: bluez-devel
Hi guys, I'm developing a java apps that exploits the BlueZ stack via JNI
and some C functions.
Now, I'd like that my app intercept the event that happens when a new remote
device wants to authenticate itself with my bt dongle (i.e. wants to trigger
the pair procedure).
I've searched in the hcitool.c file and found and found the function:
static int conn_list(int s, int dev_id, long arg)
that prints all the active connections from and to my bt dongle. But this
function is not what I'm looking for, since it is not a callback function
and most important it prints out all the connections (including data ones).
Does exist a way to know if a new remote device want to pair with my bt
dongle? And if so, what are the functions I need to look at?
Adolfo
_________________________________________________________________
Scopri gli ospiti di MSN VideoVip! E intervieni in diretta!
http://videovip.it.msn.com/
-------------------------------------------------------------------------
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bluez-devel] intercept new authentication events
2007-04-05 8:05 Adolfo Bulfoni
@ 2007-04-05 9:29 ` Marcel Holtmann
0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2007-04-05 9:29 UTC (permalink / raw)
To: BlueZ development
Hi Adolfo,
> Hi guys, I'm developing a java apps that exploits the BlueZ stack via JNI
> and some C functions.
> Now, I'd like that my app intercept the event that happens when a new remote
> device wants to authenticate itself with my bt dongle (i.e. wants to trigger
> the pair procedure).
> I've searched in the hcitool.c file and found and found the function:
> static int conn_list(int s, int dev_id, long arg)
> that prints all the active connections from and to my bt dongle. But this
> function is not what I'm looking for, since it is not a callback function
> and most important it prints out all the connections (including data ones).
> Does exist a way to know if a new remote device want to pair with my bt
> dongle? And if so, what are the functions I need to look at?
you can register a default passkey agent via D-Bus and then you know
when a device wants to pair. Otherwise there are no hooks.
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-04-05 18:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-05 15:07 [Bluez-devel] intercept new authentication events Adolfo Bulfoni
2007-04-05 18:11 ` Claudio Takahasi
-- strict thread matches above, loose matches on Subject: below --
2007-04-05 8:05 Adolfo Bulfoni
2007-04-05 9:29 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox