/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/ |
H A D | gap_le_sec.c | 98 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 D | gap_sm_receive.c | 28 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 D | gap_def.h | 291 uint8_t pairMethod; member
|
H A D | gap_internal.h | 182 void GapLeAuthenticationRequest(uint16_t handle, uint8_t pairMethod, const uint8_t *displayValue);
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/ |
H A D | smp.c | 61 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 D | smp_tool.c | 433 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 D | smp_tool.h | 183 bool SMP_IsScOobPair(uint8_t pairMethod); 184 bool SMP_IsPasskeyEntryPair(uint8_t pairMethod); 185 bool SMP_IsJustworkOrNumericPair(uint8_t pairMethod);
|
H A D | smp_common.h | 36 void SMP_NotifyCbAuthReq(uint16_t handle, uint8_t pairMethod, const uint8_t *displayValue);
|
H A D | smp_sc_accepter.c | 237 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 D | smp_sc_initiator.c | 248 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 D | smp.h | 171 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 D | smp_def.h | 138 uint8_t pairMethod; member 269 uint8_t pairMethod; member
|
H A D | smp_legacy.c | 34 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 D | ble_security.cpp | 194 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 D | ble_security.h | 80 static void LePairMethodNotify(const BtAddr *addr, uint8_t pairMethod, void *context);
|
H A D | ble_defs.h | 326 uint8_t pairMethod; member
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/include/ |
H A D | gap_le_if.h | 402 void (*lePairMethodNotify)(const BtAddr *addr, uint8_t pairMethod, void *context);
|