Home
last modified time | relevance | path

Searched refs:pairMethod (Results 1 - 17 of 17) sorted by relevance

/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/
H A Dgap_le_sec.c98 const BtAddr *addr, uint16_t handle, uint8_t pairMethod, const void *displayValue) in GapLePasskeyRequestProcess()
102 if (pairMethod == SMP_PAIR_METHOD_PASSKEY_DISPLAY) { in GapLePasskeyRequestProcess()
106 ret = SMP_AuthenticationRequestReply(handle, true, 0x00, pairMethod, displayValue); in GapLePasskeyRequestProcess()
108 LOG_WARN("%{public}s:pairMethod:%{public}d Call SMP failed:%{public}d.", __FUNCTION__, pairMethod, ret); in GapLePasskeyRequestProcess()
111 ret = SMP_AuthenticationRequestReply(handle, false, SMP_PAIR_FAILED_UNSPECIFIED_REASION, pairMethod, NULL); in GapLePasskeyRequestProcess()
113 LOG_WARN("%{public}s:pairMethod:%{public}d Call SMP failed:%{public}d.", __FUNCTION__, pairMethod, ret); in GapLePasskeyRequestProcess()
116 } else if (pairMethod == SMP_PAIR_METHOD_PASSKEY_ENTRY) { in GapLePasskeyRequestProcess()
120 ret = SMP_AuthenticationRequestReply(handle, false, SMP_PAIR_FAILED_UNSPECIFIED_REASION, pairMethod, NUL in GapLePasskeyRequestProcess()
97 GapLePasskeyRequestProcess( const BtAddr *addr, uint16_t handle, uint8_t pairMethod, const void *displayValue) GapLePasskeyRequestProcess() argument
128 GapLeUserConfirmProcess(const BtAddr *addr, uint16_t handle, uint8_t pairMethod, const void *displayValue) GapLeUserConfirmProcess() argument
140 GapLeLegacyOOBProcess(const BtAddr *addr, uint16_t handle, uint8_t pairMethod, const void *displayValue) GapLeLegacyOOBProcess() argument
152 GapLeSecureConnectionOOBProcess( const BtAddr *addr, uint16_t handle, uint8_t pairMethod, const void *displayValue) GapLeSecureConnectionOOBProcess() argument
205 GapLeAuthenticationRequestProcess( BtAddr addr, uint16_t handle, uint8_t pairMethod, const uint8_t *displayValue) GapLeAuthenticationRequestProcess() argument
238 GapLeAuthenticationRequest(uint16_t handle, uint8_t pairMethod, const uint8_t *displayValue) GapLeAuthenticationRequest() argument
[all...]
H A Dgap_sm_receive.c28 uint8_t pairMethod; member
79 GapLeAuthenticationRequest(param->handle, param->pairMethod, param->displayValue); in GapLeAuthenticationRequestTask()
91 static uint8_t *GapAllocLeAuthenticationRequestValue(uint8_t pairMethod, const uint8_t *displayValue) in GapAllocLeAuthenticationRequestValue() argument
96 switch (pairMethod) { in GapAllocLeAuthenticationRequestValue()
123 static void GapRecvLeAuthenticationRequest(uint16_t handle, uint8_t pairMethod, const uint8_t *displayValue) in GapRecvLeAuthenticationRequest() argument
125 LOG_INFO("%{public}s: handle:0x%04x pairMethod:%hhu", __FUNCTION__, handle, pairMethod); in GapRecvLeAuthenticationRequest()
133 smParam->pairMethod = pairMethod; in GapRecvLeAuthenticationRequest()
134 smParam->displayValue = GapAllocLeAuthenticationRequestValue(pairMethod, displayValu in GapRecvLeAuthenticationRequest()
[all...]
H A Dgap_def.h291 uint8_t pairMethod; member
H A Dgap_internal.h182 void GapLeAuthenticationRequest(uint16_t handle, uint8_t pairMethod, const uint8_t *displayValue);
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/
H A Dsmp.c61 bool accept, uint8_t rejectReason, uint8_t pairMethod, const uint8_t *entryValue);
63 static int SMP_AuthReqReplyStepTransMaster(uint8_t pairMethod);
65 bool accept, uint8_t rejectReason, uint8_t pairMethod, const uint8_t *entryValue);
67 static int SMP_AuthReqReplyStepTransSlave(uint8_t pairMethod);
71 static void SMP_AuthReqReplyObtainEntryValue(uint8_t pairMethod, const uint8_t *entryValue);
387 uint16_t handle, bool accept, uint8_t rejectReason, uint8_t pairMethod, const uint8_t *entryValue) in SMP_AuthenticationRequestReply()
399 ctx->pairMethod = pairMethod; in SMP_AuthenticationRequestReply()
400 if (accept && SMP_IsPasskeyEntryPair(pairMethod)) { in SMP_AuthenticationRequestReply()
402 } else if (accept && (pairMethod in SMP_AuthenticationRequestReply()
386 SMP_AuthenticationRequestReply( uint16_t handle, bool accept, uint8_t rejectReason, uint8_t pairMethod, const uint8_t *entryValue) SMP_AuthenticationRequestReply() argument
1052 SMP_AuthReqReplyProcessMaster( bool accept, uint8_t rejectReason, uint8_t pairMethod, const uint8_t *entryValue) SMP_AuthReqReplyProcessMaster() argument
1089 SMP_AuthReqReplyStepTransMaster(uint8_t pairMethod) SMP_AuthReqReplyStepTransMaster() argument
1125 SMP_AuthReqReplyProcessSlave( bool accept, uint8_t rejectReason, uint8_t pairMethod, const uint8_t *entryValue) SMP_AuthReqReplyProcessSlave() argument
1162 SMP_AuthReqReplyStepTransSlave(uint8_t pairMethod) SMP_AuthReqReplyStepTransSlave() argument
1263 SMP_AuthReqReplyObtainEntryValue(uint8_t pairMethod, const uint8_t *entryValue) SMP_AuthReqReplyObtainEntryValue() argument
1337 uint8_t pairMethod = g_smpPairMng.local.pairMethod; SMP_PairReqReplyLegacyPair() local
1469 uint8_t pairMethod = g_smpPairMng.local.pairMethod; SMP_PairRspReplyLegacyPair() local
1744 SMP_NotifyCbAuthReq(uint16_t handle, uint8_t pairMethod, const uint8_t *displayValue) SMP_NotifyCbAuthReq() argument
[all...]
H A Dsmp_tool.c433 if (SMP_IsScOobPair(SMP_GetPairMng()->local.pairMethod)) { in SMP_ConstituteF6Param()
450 if (SMP_IsScOobPair(SMP_GetPairMng()->local.pairMethod)) { in SMP_ConstituteF6Param()
456 if (SMP_IsPasskeyEntryPair(SMP_GetPairMng()->local.pairMethod)) { in SMP_ConstituteF6Param()
801 mng->local.pairMethod = SMP_PAIR_METHOD_OOB_LEGACY; in SMP_CalcPairMethodLegacyPair()
802 mng->peer.pairMethod = SMP_PAIR_METHOD_OOB_LEGACY; in SMP_CalcPairMethodLegacyPair()
805 mng->peer.pairMethod = SMP_PAIR_METHOD_JUST_WORK; in SMP_CalcPairMethodLegacyPair()
806 mng->local.pairMethod = SMP_PAIR_METHOD_JUST_WORK; in SMP_CalcPairMethodLegacyPair()
809 mng->local.pairMethod = in SMP_CalcPairMethodLegacyPair()
811 mng->peer.pairMethod = in SMP_CalcPairMethodLegacyPair()
814 mng->local.pairMethod in SMP_CalcPairMethodLegacyPair()
921 SMP_IsScOobPair(uint8_t pairMethod) SMP_IsScOobPair() argument
934 SMP_IsPasskeyEntryPair(uint8_t pairMethod) SMP_IsPasskeyEntryPair() argument
945 SMP_IsJustworkOrNumericPair(uint8_t pairMethod) SMP_IsJustworkOrNumericPair() argument
[all...]
H A Dsmp_tool.h183 bool SMP_IsScOobPair(uint8_t pairMethod);
184 bool SMP_IsPasskeyEntryPair(uint8_t pairMethod);
185 bool SMP_IsJustworkOrNumericPair(uint8_t pairMethod);
H A Dsmp_common.h36 void SMP_NotifyCbAuthReq(uint16_t handle, uint8_t pairMethod, const uint8_t *displayValue);
H A Dsmp_sc_accepter.c237 if (SMP_GetPairMng()->local.pairMethod == SMP_PAIR_METHOD_JUST_WORK) { in SMP_ScPairJustworkOrNumericSlaveStep9()
325 uint8_t pairMethod = SMP_GetPairMng()->local.pairMethod; in SMP_ScPairJustworkOrNumericSlaveStep12() local
347 SMP_NotifyCbAuthReq(handle, pairMethod, (uint8_t *)&numeric); in SMP_ScPairJustworkOrNumericSlaveStep12()
416 uint8_t pairMethod = SMP_GetPairMng()->local.pairMethod; in SMP_ScPairPasskeyEntrySlaveStep3() local
430 if (SMP_GetPairMng()->local.pairMethod == SMP_PAIR_METHOD_PASSKEY_DISPLAY) { in SMP_ScPairPasskeyEntrySlaveStep3()
443 SMP_NotifyCbAuthReq(handle, pairMethod, NULL); in SMP_ScPairPasskeyEntrySlaveStep3()
455 uint8_t pairMethod = SMP_GetPairMng()->local.pairMethod; in SMP_ScPairPasskeyEntrySlaveStep4() local
737 uint8_t pairMethod = SMP_GetPairMng()->local.pairMethod; SMP_ScPairOobSlaveStep1() local
[all...]
H A Dsmp_sc_initiator.c248 if (SMP_GetPairMng()->local.pairMethod == SMP_PAIR_METHOD_JUST_WORK) { in SMP_ScPairJustworkOrNumericMasterStep10()
327 uint8_t pairMethod = SMP_GetPairMng()->local.pairMethod; in SMP_ScPairJustworkOrNumericMasterStep13() local
339 SMP_NotifyCbAuthReq(handle, pairMethod, (uint8_t *)&numeric); in SMP_ScPairJustworkOrNumericMasterStep13()
398 uint8_t pairMethod = SMP_GetPairMng()->local.pairMethod; in SMP_ScPairPasskeyEntryMasterStep3() local
403 if (SMP_GetPairMng()->local.pairMethod == SMP_PAIR_METHOD_PASSKEY_DISPLAY) { in SMP_ScPairPasskeyEntryMasterStep3()
416 SMP_NotifyCbAuthReq(handle, pairMethod, NULL); in SMP_ScPairPasskeyEntryMasterStep3()
427 uint8_t pairMethod = SMP_GetPairMng()->local.pairMethod; in SMP_ScPairPasskeyEntryMasterStep4() local
704 uint8_t pairMethod = SMP_GetPairMng()->local.pairMethod; SMP_ScPairOobMasterStep1() local
[all...]
H A Dsmp.h171 void (*SMP_CallbackAuthenticationRequest)(uint16_t handle, uint8_t pairMethod, const uint8_t *displayValue);
283 * @param pairMethod Paired method.
288 uint16_t handle, bool accept, uint8_t rejectReason, uint8_t pairMethod, const uint8_t *entryValue);
H A Dsmp_def.h138 uint8_t pairMethod; member
269 uint8_t pairMethod; member
H A Dsmp_legacy.c34 uint8_t pairMethod = SMP_GetPairMng()->local.pairMethod; in SMP_LegacyPairMasterStep1() local
43 SMP_NotifyCbAuthReq(handle, pairMethod, (uint8_t *)&passkey); in SMP_LegacyPairMasterStep1()
400 uint8_t pairMethod = SMP_GetPairMng()->local.pairMethod; in SMP_LegacyPairSlaveStep1() local
409 SMP_NotifyCbAuthReq(handle, pairMethod, (uint8_t *)&passkey); in SMP_LegacyPairSlaveStep1()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/ble/
H A Dble_security.cpp194 void BleSecurity::LePairMethodNotify(const BtAddr *addr, uint8_t pairMethod, void *context) in LePairMethodNotify() argument
206 gapCallbackParam.lePairMethodNotify_.pairMethod = pairMethod; in LePairMethodNotify()
723 pimpl->pairMethod_ = param.lePairMethodNotify_.pairMethod; in GapLePairMethodNotify()
739 uint8_t pairMethod = pimpl->pairMethod_; in GapLePairPassKeyReq() local
741 baseCallback_->ForEach([addr, pairMethod](IAdapterBleObserver &observer) { in GapLePairPassKeyReq()
742 observer.OnPairConfirmed(BTTransport::ADAPTER_BLE, addr, pairMethod, 0); in GapLePairPassKeyReq()
753 uint8_t pairMethod = pimpl->pairMethod_; in GapLePairPassKeyNotification() local
756 baseCallback_->ForEach([addr, pairMethod, number](IAdapterBleObserver &observer) { in GapLePairPassKeyNotification()
757 observer.OnPairConfirmed(BTTransport::ADAPTER_BLE, addr, pairMethod, numbe in GapLePairPassKeyNotification()
768 uint8_t pairMethod = pimpl->pairMethod_; GapLePairOobReq() local
782 uint8_t pairMethod = pimpl->pairMethod_; GapLePairScOobReq() local
796 uint8_t pairMethod = pimpl->pairMethod_; GapLePairScUserConfirmReq() local
[all...]
H A Dble_security.h80 static void LePairMethodNotify(const BtAddr *addr, uint8_t pairMethod, void *context);
H A Dble_defs.h326 uint8_t pairMethod; member
/foundation/communication/bluetooth_service/services/bluetooth/stack/include/
H A Dgap_le_if.h402 void (*lePairMethodNotify)(const BtAddr *addr, uint8_t pairMethod, void *context);

Completed in 23 milliseconds