diff -r 4816d766a08a -r f345bda72bc4 Symbian3/PDK/Source/GUID-4F0C4B9D-AA42-59C4-900A-7045FEAAF2F4.dita --- a/Symbian3/PDK/Source/GUID-4F0C4B9D-AA42-59C4-900A-7045FEAAF2F4.dita Tue Mar 30 11:42:04 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-4F0C4B9D-AA42-59C4-900A-7045FEAAF2F4.dita Tue Mar 30 11:56:28 2010 +0100 @@ -1,18 +1,18 @@ - - - - - -Using security on outgoing sockets

For an outgoing connection, the Bluetooth stack will not, by default, enforce any particular Bluetooth security. If the remote device requires authentication/encryption to connect, then this will be handled by the stack transparently to the application.

How to use security on outgoing sockets

It may occasionally be necessary for the local application to insist on authenticating or encrypting the link. In this case, there are control operations (ioctls) that can be issued on a connected RSocket that will authenticate (ioctl - KHCIAuthRequestIoctl) or encrypt (KHCIEncryptIoctl) the link.

Issuing Authentication Requests

The following example shows the authentication request ioctl being issued.

// Assume you have an opened L2CAP RSocket object, socket -socket.Ioctl(KHCIAuthRequestIoctl, status, NULL, KSolBtHCI); -User::WaitForRequest(status); -if (status==KErrNone) - { + + + + + +Using security on outgoing sockets

For an outgoing connection, the Bluetooth stack will not, by default, enforce any particular Bluetooth security. If the remote device requires authentication/encryption to connect, then this will be handled by the stack transparently to the application.

How to use security on outgoing sockets

It may occasionally be necessary for the local application to insist on authenticating or encrypting the link. In this case, there are control operations (ioctls) that can be issued on a connected RSocket that will authenticate (ioctl + KHCIAuthRequestIoctl) or encrypt (KHCIEncryptIoctl) the link.

Issuing Authentication Requests

The following example shows the authentication request ioctl being issued.

// Assume you have an opened L2CAP RSocket object, socket +socket.Ioctl(KHCIAuthRequestIoctl, status, NULL, KSolBtHCI); +User::WaitForRequest(status); +if (status==KErrNone) + { \\ Success...
Where Next?

This tutorial set takes you through all the steps involved in setting up and communicating over a Bluetooth connection.

  • Selecting a Remote Device

  • Inquiring About Remote Devices

  • Inquiring About Services on a Remote Device

  • Connecting and Transferring Data to a Remote Device

  • Using security on outgoing sockets - This document

\ No newline at end of file