Home
last modified time | relevance | path

Searched refs:sec_flag (Results 1 – 6 of 6) sorted by relevance

/system/bt/stack/gatt/
Dgatt_auth.c167 UINT8 sec_flag; in gatt_enc_cmpl_cback() local
185 BTM_GetSecurityFlagsByTransport(bd_addr, &sec_flag, transport); in gatt_enc_cmpl_cback()
187 if (sec_flag & BTM_SEC_FLAG_LKEY_AUTHED) in gatt_enc_cmpl_cback()
321 UINT8 sec_flag; in gatt_determine_sec_act() local
333 BTM_GetSecurityFlagsByTransport(p_tcb->peer_bda, &sec_flag, p_clcb->p_tcb->transport); in gatt_determine_sec_act()
342 if (sec_flag & (BTM_SEC_FLAG_ENCRYPTED| BTM_SEC_FLAG_LKEY_KNOWN)) in gatt_determine_sec_act()
344 if (sec_flag & BTM_SEC_FLAG_ENCRYPTED) in gatt_determine_sec_act()
349 if (sec_flag & BTM_SEC_FLAG_LKEY_AUTHED) in gatt_determine_sec_act()
425 UINT8 sec_flag=0; in gatt_get_link_encrypt_status() local
427 BTM_GetSecurityFlagsByTransport(p_tcb->peer_bda, &sec_flag, p_tcb->transport); in gatt_get_link_encrypt_status()
[all …]
Dgatt_db.c121 tGATT_SEC_FLAG sec_flag, in gatts_check_attr_readability() argument
140 if ((perm & GATT_READ_AUTH_REQUIRED ) && !(sec_flag & GATT_SEC_FLAG_LKEY_UNAUTHED) && in gatts_check_attr_readability()
141 !(sec_flag & BTM_SEC_FLAG_ENCRYPTED)) in gatts_check_attr_readability()
147 if ((perm & GATT_READ_MITM_REQUIRED ) && !(sec_flag & GATT_SEC_FLAG_LKEY_AUTHED)) in gatts_check_attr_readability()
153 if ((perm & GATT_READ_ENCRYPTED_REQUIRED ) && !(sec_flag & GATT_SEC_FLAG_ENCRYPTED)) in gatts_check_attr_readability()
159 …if ( (perm & GATT_READ_ENCRYPTED_REQUIRED) && (sec_flag & GATT_SEC_FLAG_ENCRYPTED) && (key_size < … in gatts_check_attr_readability()
213 tGATT_SEC_FLAG sec_flag, in read_attr_value() argument
224 sec_flag, in read_attr_value()
228 …status = gatts_check_attr_readability((tGATT_ATTR16 *)p_attr, offset, read_long, sec_flag, key_siz… in read_attr_value()
329 tGATT_SEC_FLAG sec_flag, in gatts_db_read_attr_value_by_type() argument
[all …]
Dgatt_sr.c401 UINT8 sec_flag, key_size; in gatt_process_read_multi_req() local
409 &sec_flag, in gatt_process_read_multi_req()
437 sec_flag, in gatt_process_read_multi_req()
486 sec_flag, in gatt_process_read_multi_req()
986 UINT8 sec_flag, key_size; in gatts_process_read_by_type_req() local
1035 &sec_flag, in gatts_process_read_by_type_req()
1046 sec_flag, in gatts_process_read_by_type_req()
1098 UINT8 sec_flag, key_size, *p = p_data; in gatts_process_write_req() local
1133 &sec_flag, in gatts_process_write_req()
1142 sec_flag, in gatts_process_write_req()
[all …]
Dgatt_int.h700 …UINT16 e_handle, tBT_UUID type, UINT16 *p_len, tGATT_SEC_FLAG sec_flag, UINT8 key_size,UINT32 tran…
702 … UINT8 *p_value, UINT16 *p_len, UINT16 mtu,tGATT_SEC_FLAG sec_flag,UINT8 key_size,UINT32 trans_id);
704 … UINT16 len, tGATT_SEC_FLAG sec_flag, UINT8 key_size);
705 …_check(tGATT_SVC_DB *p_db, BOOLEAN is_long, UINT16 handle, tGATT_SEC_FLAG sec_flag,UINT8 key_size);
Dgatt_utils.c1385 UINT8 sec_flag = 0; in gatt_sr_get_sec_info() local
1387 BTM_GetSecurityFlagsByTransport(rem_bda, &sec_flag, transport); in gatt_sr_get_sec_info()
1389 sec_flag &= (GATT_SEC_FLAG_LKEY_UNAUTHED | GATT_SEC_FLAG_LKEY_AUTHED | GATT_SEC_FLAG_ENCRYPTED); in gatt_sr_get_sec_info()
1392 *p_sec_flag = sec_flag; in gatt_sr_get_sec_info()
/system/bt/bta/hh/
Dbta_hh_le.c1386 UINT8 sec_flag=0; in bta_hh_start_security() local
1403 BTM_GetSecurityFlagsByTransport(p_cb->addr, &sec_flag, BT_TRANSPORT_LE); in bta_hh_start_security()
1406 if (sec_flag & BTM_SEC_FLAG_ENCRYPTED) in bta_hh_start_security()
1411 else if (sec_flag & BTM_SEC_FLAG_LKEY_KNOWN) in bta_hh_start_security()
1413 sec_flag = BTM_BLE_SEC_ENCRYPT; in bta_hh_start_security()
1415 BTM_SetEncryption(p_cb->addr, BTA_TRANSPORT_LE, bta_hh_le_encrypt_cback, &sec_flag); in bta_hh_start_security()
1420 sec_flag = BTM_BLE_SEC_ENCRYPT_NO_MITM; in bta_hh_start_security()
1423 BTM_SetEncryption(p_cb->addr, BTA_TRANSPORT_LE, bta_hh_le_encrypt_cback, &sec_flag); in bta_hh_start_security()
2719 UINT8 sec_flag=0; in bta_hh_le_add_dev_bg_conn() local
2726 BTM_GetSecurityFlagsByTransport(p_cb->addr, &sec_flag, BT_TRANSPORT_LE); in bta_hh_le_add_dev_bg_conn()
[all …]