linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] how to create a ACL connection with an authentication?
@ 2006-06-29 10:32 ifq
  2006-06-29 11:45 ` Mayank Batra
  0 siblings, 1 reply; 8+ messages in thread
From: ifq @ 2006-06-29 10:32 UTC (permalink / raw)
  To: Bluez-devel


[-- Attachment #1.1: Type: text/plain, Size: 220 bytes --]

hello everyone!
I want to create a ACL connection with an authentication and encryption use
BlueZ. I searched the BlueZ lib and found nothing.is there anyone could give
me some advice?thank you very much!

Jingtian Wang

[-- Attachment #1.2: Type: text/html, Size: 267 bytes --]

[-- Attachment #2: Type: text/plain, Size: 299 bytes --]

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

[-- Attachment #3: 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] 8+ messages in thread

* Re: [Bluez-devel] how to create a ACL connection with an authentication?
  2006-06-29 10:32 [Bluez-devel] how to create a ACL connection with an authentication? ifq
@ 2006-06-29 11:45 ` Mayank Batra
  2006-06-29 12:09   ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: Mayank Batra @ 2006-06-29 11:45 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 471 bytes --]

Hi Jingtian,

On 6/29/06, ifq <ifqqfi@gmail.com> wrote:
>
> I want to create a ACL connection with an authentication and encryption
> use BlueZ. I searched the BlueZ lib and found nothing.is there anyone
> could give me some advice?thank you very much!
>

In /etc/bluetooth/hcid.conf file make sure that the following lines are
there (i.e. they should not be commented!)
auth enable
encrypt enable

You may have to restart hcid if it is already running.

Regards,
Mayank

[-- Attachment #1.2: Type: text/html, Size: 960 bytes --]

[-- Attachment #2: Type: text/plain, Size: 299 bytes --]

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

[-- Attachment #3: 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] 8+ messages in thread

* Re: [Bluez-devel] how to create a ACL connection with an authentication?
  2006-06-29 11:45 ` Mayank Batra
@ 2006-06-29 12:09   ` Marcel Holtmann
  2006-06-29 12:43     ` ifq
  2006-06-30  8:17     ` Mayank Batra
  0 siblings, 2 replies; 8+ messages in thread
From: Marcel Holtmann @ 2006-06-29 12:09 UTC (permalink / raw)
  To: BlueZ development

Hi Mayank,

> On 6/29/06, ifq <ifqqfi@gmail.com> wrote: 
>         I want to create a ACL connection with an authentication and
>         encryption use BlueZ. I searched the BlueZ lib and found
>         nothing.is there anyone could give me some advice?thank you
>         very much! 
>  
> In /etc/bluetooth/hcid.conf file make sure that the following lines
> are there (i.e. they should not be commented!)
> auth enable
> encrypt enable

don't advise people to enter security mode 3 unless you are going to
handle all their troubles with different devices. These two option are
removed in the 3.x releases anyway.

Regards

Marcel



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] how to create a ACL connection with an authentication?
  2006-06-29 12:09   ` Marcel Holtmann
@ 2006-06-29 12:43     ` ifq
  2006-06-29 16:02       ` Marcel Holtmann
  2006-06-30  8:17     ` Mayank Batra
  1 sibling, 1 reply; 8+ messages in thread
From: ifq @ 2006-06-29 12:43 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 1442 bytes --]

if I need to build the authentication connection in my own program,what
should I do?
what I know is use the socket API to create a connection.but how to set this
connection to have an authentication?
thanks.

Regards

Jingtian Wang

2006/6/29, Marcel Holtmann <marcel@holtmann.org>:
>
> Hi Mayank,
>
> > On 6/29/06, ifq <ifqqfi@gmail.com> wrote:
> >         I want to create a ACL connection with an authentication and
> >         encryption use BlueZ. I searched the BlueZ lib and found
> >         nothing.is there anyone could give me some advice?thank you
> >         very much!
> >
> > In /etc/bluetooth/hcid.conf file make sure that the following lines
> > are there (i.e. they should not be commented!)
> > auth enable
> > encrypt enable
>
> don't advise people to enter security mode 3 unless you are going to
> handle all their troubles with different devices. These two option are
> removed in the 3.x releases anyway.
>
> Regards
>
> Marcel
>
>
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>

[-- Attachment #1.2: Type: text/html, Size: 2246 bytes --]

[-- Attachment #2: Type: text/plain, Size: 299 bytes --]

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

[-- Attachment #3: 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] 8+ messages in thread

* Re: [Bluez-devel] how to create a ACL connection with an authentication?
  2006-06-29 12:43     ` ifq
@ 2006-06-29 16:02       ` Marcel Holtmann
  2006-06-30  0:44         ` ifq
  0 siblings, 1 reply; 8+ messages in thread
From: Marcel Holtmann @ 2006-06-29 16:02 UTC (permalink / raw)
  To: BlueZ development

Hi,

> if I need to build the authentication connection in my own
> program,what should I do?
> what I know is use the socket API to create a connection.but how to
> set this connection to have an authentication?

for L2CAP/RFCOMM you can use socket options to request authentication
and encryption on incoming connections. Take a look at the source of
rctest.c and l2test.c.

Regards

Marcel



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] how to create a ACL connection with an authentication?
  2006-06-29 16:02       ` Marcel Holtmann
@ 2006-06-30  0:44         ` ifq
  2006-06-30  0:54           ` Nelson Murilo
  0 siblings, 1 reply; 8+ messages in thread
From: ifq @ 2006-06-30  0:44 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 1160 bytes --]

2006/6/30, Marcel Holtmann <marcel@holtmann.org>:
>
> Hi,
>
> > if I need to build the authentication connection in my own
> > program,what should I do?
> > what I know is use the socket API to create a connection.but how to
> > set this connection to have an authentication?
>
> for L2CAP/RFCOMM you can use socket options to request authentication
> and encryption on incoming connections. Take a look at the source of
> rctest.c and l2test.c.


I have seen file l2test.c,and I found how to let a socket to request
authentication,but another question is I did'n found the source about set
link key in server or client. is there something I missed?

Regards
>
> Marcel
>
>
>
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>

[-- Attachment #1.2: Type: text/html, Size: 1844 bytes --]

[-- Attachment #2: Type: text/plain, Size: 299 bytes --]

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

[-- Attachment #3: 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] 8+ messages in thread

* Re: [Bluez-devel] how to create a ACL connection with an authentication?
  2006-06-30  0:44         ` ifq
@ 2006-06-30  0:54           ` Nelson Murilo
  0 siblings, 0 replies; 8+ messages in thread
From: Nelson Murilo @ 2006-06-30  0:54 UTC (permalink / raw)
  To: BlueZ development




On Fri, Jun 30, 2006 at 08:44:38AM +0800, ifq wrote:
> 
> I have seen file l2test.c,and I found how to let a socket to request
> authentication,but another question is I did'n found the source about set
> link key in server or client. is there something I missed?
> 

Check hcid/storage.c and hcid/dbus-adapter.c 

Regards,

./nelson -murilo

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] how to create a ACL connection with an authentication?
  2006-06-29 12:09   ` Marcel Holtmann
  2006-06-29 12:43     ` ifq
@ 2006-06-30  8:17     ` Mayank Batra
  1 sibling, 0 replies; 8+ messages in thread
From: Mayank Batra @ 2006-06-30  8:17 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 321 bytes --]

Hi Marcel,

On 6/29/06, Marcel Holtmann <marcel@holtmann.org> wrote:
>
> don't advise people to enter security mode 3 unless you are going to
> handle all their troubles with different devices.


Oops...sorry for that.

 These two option are
> removed in the 3.x releases anyway.


Sorry, I had no idea.

Regards,
Mayank

[-- Attachment #1.2: Type: text/html, Size: 800 bytes --]

[-- Attachment #2: Type: text/plain, Size: 299 bytes --]

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

[-- Attachment #3: 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] 8+ messages in thread

end of thread, other threads:[~2006-06-30  8:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-29 10:32 [Bluez-devel] how to create a ACL connection with an authentication? ifq
2006-06-29 11:45 ` Mayank Batra
2006-06-29 12:09   ` Marcel Holtmann
2006-06-29 12:43     ` ifq
2006-06-29 16:02       ` Marcel Holtmann
2006-06-30  0:44         ` ifq
2006-06-30  0:54           ` Nelson Murilo
2006-06-30  8:17     ` Mayank Batra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).