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==--