bluetooth/btstack/secman/secman.cpp
branchRCL_3
changeset 22 9f17f914e828
parent 14 9b6d3ca0c601
child 56 015fa7494bd2
equal deleted inserted replaced
18:f8503e232b0c 22:9f17f914e828
     1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   583 			}
   583 			}
   584 		}
   584 		}
   585 	else if (!link->IsPairingExpected()
   585 	else if (!link->IsPairingExpected()
   586 			|| ((link->AuthenticationRequirement() == EMitmNotReqDedicatedBonding 
   586 			|| ((link->AuthenticationRequirement() == EMitmNotReqDedicatedBonding 
   587 					|| link->AuthenticationRequirement() == EMitmReqDedicatedBonding)
   587 					|| link->AuthenticationRequirement() == EMitmReqDedicatedBonding)
   588 				&& !IsDedicatedBondingAttempted(aAddr)))
   588 				&& !link->IsAuthenticationRequestPending()))
   589 		{
   589 		{
   590 		TRAPD(err,link->NewUserConfirmerL(aAddr, *this, ETrue));
   590 		TRAPD(err,link->NewUserConfirmerL(aAddr, *this, ETrue));
   591 		if(err)
   591 		if(err)
   592 			{
   592 			{
   593 			if(requester)
   593 			if(requester)
   608 			{
   608 			{
   609 			LOG(_L8("\tCBTAccessRequester FOUND!\n"));
   609 			LOG(_L8("\tCBTAccessRequester FOUND!\n"));
   610 			TBTSecEventUserConfirmationComplete event(ETrue);
   610 			TBTSecEventUserConfirmationComplete event(ETrue);
   611 			requester->SendEvent(event);
   611 			requester->SendEvent(event);
   612 			}
   612 			}
   613 
   613 		link->PinRequestSent();
   614 		// note: -- check errors here
   614 		// note: -- check errors here
   615 		TRAP_IGNORE(iCommandController->UserConfirmationRequestReplyL(aAddr));
   615 		TRAP_IGNORE(iCommandController->UserConfirmationRequestReplyL(aAddr));
   616 		}
   616 		}
   617 	}
   617 	}
   618 
   618