From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <6297d67c0606300117g55a384ecic2836beeed863191@mail.gmail.com> Date: Fri, 30 Jun 2006 13:47:23 +0530 From: "Mayank Batra" To: "BlueZ development" In-Reply-To: <1151582944.14964.17.camel@localhost> MIME-Version: 1.0 References: <28c817710606290332o2e84020dl91d4a0bff11db73f@mail.gmail.com> <6297d67c0606290445h455ea56bjfdf3bc2b44f26ad1@mail.gmail.com> <1151582944.14964.17.camel@localhost> Subject: Re: [Bluez-devel] how to create a ACL connection with an authentication? Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1480998130==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============1480998130== Content-Type: multipart/alternative; boundary="----=_Part_74961_12032508.1151655443270" ------=_Part_74961_12032508.1151655443270 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Marcel, On 6/29/06, Marcel Holtmann 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 ------=_Part_74961_12032508.1151655443270 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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
------=_Part_74961_12032508.1151655443270-- --===============1480998130== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 --===============1480998130== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============1480998130==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 29 Jun 2006 21:54:40 -0300 From: Nelson Murilo To: BlueZ development Message-ID: <20060630005440.GD22212@pangeia.com.br> References: <28c817710606290332o2e84020dl91d4a0bff11db73f@mail.gmail.com> <6297d67c0606290445h455ea56bjfdf3bc2b44f26ad1@mail.gmail.com> <1151582944.14964.17.camel@localhost> <28c817710606290543i3f331478ta461242dcc94d612@mail.gmail.com> <1151596973.14964.30.camel@localhost> <28c817710606291744l354a24d0h4113ec90e176c24a@mail.gmail.com> Mime-Version: 1.0 In-Reply-To: <28c817710606291744l354a24d0h4113ec90e176c24a@mail.gmail.com> Subject: Re: [Bluez-devel] how to create a ACL connection with an authentication? Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <28c817710606291744l354a24d0h4113ec90e176c24a@mail.gmail.com> Date: Fri, 30 Jun 2006 08:44:38 +0800 From: ifq To: "BlueZ development" In-Reply-To: <1151596973.14964.30.camel@localhost> MIME-Version: 1.0 References: <28c817710606290332o2e84020dl91d4a0bff11db73f@mail.gmail.com> <6297d67c0606290445h455ea56bjfdf3bc2b44f26ad1@mail.gmail.com> <1151582944.14964.17.camel@localhost> <28c817710606290543i3f331478ta461242dcc94d612@mail.gmail.com> <1151596973.14964.30.camel@localhost> Subject: Re: [Bluez-devel] how to create a ACL connection with an authentication? Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0886486664==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============0886486664== Content-Type: multipart/alternative; boundary="----=_Part_481_10238848.1151628278932" ------=_Part_481_10238848.1151628278932 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 2006/6/30, Marcel Holtmann : > > 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 > ------=_Part_481_10238848.1151628278932 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

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

------=_Part_481_10238848.1151628278932-- --===============0886486664== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 --===============0886486664== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============0886486664==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: <28c817710606290543i3f331478ta461242dcc94d612@mail.gmail.com> References: <28c817710606290332o2e84020dl91d4a0bff11db73f@mail.gmail.com> <6297d67c0606290445h455ea56bjfdf3bc2b44f26ad1@mail.gmail.com> <1151582944.14964.17.camel@localhost> <28c817710606290543i3f331478ta461242dcc94d612@mail.gmail.com> Date: Thu, 29 Jun 2006 18:02:53 +0200 Message-Id: <1151596973.14964.30.camel@localhost> Mime-Version: 1.0 Subject: Re: [Bluez-devel] how to create a ACL connection with an authentication? Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <28c817710606290543i3f331478ta461242dcc94d612@mail.gmail.com> Date: Thu, 29 Jun 2006 20:43:41 +0800 From: ifq To: "BlueZ development" In-Reply-To: <1151582944.14964.17.camel@localhost> MIME-Version: 1.0 References: <28c817710606290332o2e84020dl91d4a0bff11db73f@mail.gmail.com> <6297d67c0606290445h455ea56bjfdf3bc2b44f26ad1@mail.gmail.com> <1151582944.14964.17.camel@localhost> Subject: Re: [Bluez-devel] how to create a ACL connection with an authentication? Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1815428624==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============1815428624== Content-Type: multipart/alternative; boundary="----=_Part_93884_8161195.1151585021330" ------=_Part_93884_8161195.1151585021330 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 : > > Hi Mayank, > > > On 6/29/06, ifq 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 > ------=_Part_93884_8161195.1151585021330 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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

------=_Part_93884_8161195.1151585021330-- --===============1815428624== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 --===============1815428624== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============1815428624==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: <6297d67c0606290445h455ea56bjfdf3bc2b44f26ad1@mail.gmail.com> References: <28c817710606290332o2e84020dl91d4a0bff11db73f@mail.gmail.com> <6297d67c0606290445h455ea56bjfdf3bc2b44f26ad1@mail.gmail.com> Date: Thu, 29 Jun 2006 14:09:04 +0200 Message-Id: <1151582944.14964.17.camel@localhost> Mime-Version: 1.0 Subject: Re: [Bluez-devel] how to create a ACL connection with an authentication? Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net Hi Mayank, > On 6/29/06, ifq 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 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <6297d67c0606290445h455ea56bjfdf3bc2b44f26ad1@mail.gmail.com> Date: Thu, 29 Jun 2006 17:15:24 +0530 From: "Mayank Batra" To: "BlueZ development" In-Reply-To: <28c817710606290332o2e84020dl91d4a0bff11db73f@mail.gmail.com> MIME-Version: 1.0 References: <28c817710606290332o2e84020dl91d4a0bff11db73f@mail.gmail.com> Subject: Re: [Bluez-devel] how to create a ACL connection with an authentication? Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0207067608==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============0207067608== Content-Type: multipart/alternative; boundary="----=_Part_47396_23950244.1151581524669" ------=_Part_47396_23950244.1151581524669 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Jingtian, On 6/29/06, ifq 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 ------=_Part_47396_23950244.1151581524669 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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

 
------=_Part_47396_23950244.1151581524669-- --===============0207067608== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 --===============0207067608== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============0207067608==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <28c817710606290332o2e84020dl91d4a0bff11db73f@mail.gmail.com> Date: Thu, 29 Jun 2006 18:32:42 +0800 From: ifq To: Bluez-devel@lists.sourceforge.net MIME-Version: 1.0 Subject: [Bluez-devel] how to create a ACL connection with an authentication? Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0185668768==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============0185668768== Content-Type: multipart/alternative; boundary="----=_Part_92563_2704422.1151577162149" ------=_Part_92563_2704422.1151577162149 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_92563_2704422.1151577162149 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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
------=_Part_92563_2704422.1151577162149-- --===============0185668768== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 --===============0185668768== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============0185668768==--