Lines Matching refs:security_required
897 p_dev_rec->security_required = BTM_SEC_NONE;
1037 p_dev_rec->security_required = BTM_SEC_OUT_AUTHENTICATE;
1432 p_dev_rec->security_required |= (BTM_SEC_IN_AUTHENTICATE | BTM_SEC_IN_ENCRYPT);
1437 p_dev_rec->security_required);
2035 if ((p_dev_rec->security_required & mtm_check) /* needs MITM */
2134 UINT16 security_required;
2182 security_required = btm_sec_set_serv_level4_flags (p_serv_rec->ucd_security_flags,
2187 security_required = p_serv_rec->ucd_security_flags;
2193 if (((security_required & BTM_SEC_OUT_FLAGS) == 0) ||
2194 ((((security_required & BTM_SEC_OUT_FLAGS) == BTM_SEC_OUT_AUTHENTICATE) && (p_dev_rec->sec_flags & BTM_SEC_AUTHENTICATED))) ||
2195 ((((security_required & BTM_SEC_OUT_FLAGS) == (BTM_SEC_OUT_AUTHENTICATE | BTM_SEC_OUT_ENCRYPT)) && (p_dev_rec->sec_flags & BTM_SEC_ENCRYPTED))) ||
2196 ((((security_required & BTM_SEC_OUT_FLAGS) == BTM_SEC_OUT_FLAGS) && (p_dev_rec->sec_flags & BTM_SEC_AUTHORIZED))) )
2203 if (((security_required & BTM_SEC_IN_FLAGS) == 0) ||
2204 ((((security_required & BTM_SEC_IN_FLAGS) == BTM_SEC_IN_AUTHENTICATE) && (p_dev_rec->sec_flags & BTM_SEC_AUTHENTICATED))) ||
2205 ((((security_required & BTM_SEC_IN_FLAGS) == (BTM_SEC_IN_AUTHENTICATE | BTM_SEC_IN_ENCRYPT)) && (p_dev_rec->sec_flags & BTM_SEC_ENCRYPTED))) ||
2206 ((((security_required & BTM_SEC_IN_FLAGS) == BTM_SEC_IN_FLAGS) && (p_dev_rec->sec_flags & BTM_SEC_AUTHORIZED))) )
2209 if (((security_required & BTM_SEC_IN_MIN_16_DIGIT_PIN) == 0) ||
2210 (((security_required & BTM_SEC_IN_MIN_16_DIGIT_PIN) == BTM_SEC_IN_MIN_16_DIGIT_PIN) &&
2217 if ((rc == BTM_SUCCESS) && (security_required & BTM_SEC_MODE4_LEVEL4) &&
2236 security_required = btm_sec_set_serv_level4_flags (p_serv_rec->security_flags,
2241 security_required = p_serv_rec->security_flags;
2245 BTM_TRACE_DEBUG("%s: security_required 0x%04x, is_originator 0x%02x, psm 0x%04x",
2246 __FUNCTION__, security_required, is_originator, psm);
2248 if ((!is_originator) && (security_required & BTM_SEC_MODE4_LEVEL4))
2272 BTM_TRACE_EVENT ("security_flags:x%x, sec_flags:x%x", security_required, p_dev_rec->sec_flags);
2285 if (((security_required & BTM_SEC_OUT_FLAGS) == 0) ||
2286 ((((security_required & BTM_SEC_OUT_FLAGS) == BTM_SEC_OUT_AUTHENTICATE) && btm_dev_authenticated(p_dev_rec))) ||
2287 ((((security_required & BTM_SEC_OUT_FLAGS) == (BTM_SEC_OUT_AUTHENTICATE | BTM_SEC_OUT_ENCRYPT)) && btm_dev_encrypted(p_dev_rec))) ||
2288 ((((security_required & BTM_SEC_OUT_FLAGS) == BTM_SEC_OUT_FLAGS) && btm_dev_authorized(p_dev_rec) && btm_dev_encrypted(p_dev_rec))) )
2295 if (((security_required & BTM_SEC_IN_FLAGS) == 0) ||
2296 (((security_required & BTM_SEC_IN_FLAGS) == BTM_SEC_IN_AUTHENTICATE) && btm_dev_authenticated(p_dev_rec)) ||
2297 (((security_required & BTM_SEC_IN_FLAGS) == (BTM_SEC_IN_AUTHENTICATE | BTM_SEC_IN_ENCRYPT)) && btm_dev_encrypted(p_dev_rec)) ||
2298 (((security_required & BTM_SEC_IN_FLAGS) == BTM_SEC_IN_AUTHORIZE) && (btm_dev_authorized(p_dev_rec)||btm_serv_trusted(p_dev_rec, p_serv_rec))) ||
2299 (((security_required & BTM_SEC_IN_FLAGS) == (BTM_SEC_IN_AUTHENTICATE | BTM_SEC_IN_AUTHORIZE)) && ((btm_dev_authorized(p_dev_rec)||btm_serv_trusted(p_dev_rec, p_serv_rec)) && btm_dev_authenticated(p_dev_rec))) ||
2300 (((security_required & BTM_SEC_IN_FLAGS) == (BTM_SEC_IN_ENCRYPT | BTM_SEC_IN_AUTHORIZE)) && ((btm_dev_authorized(p_dev_rec)||btm_serv_trusted(p_dev_rec, p_serv_rec)) && btm_dev_encrypted(p_dev_rec))) ||
2301 (((security_required & BTM_SEC_IN_FLAGS) == BTM_SEC_IN_FLAGS) && btm_dev_encrypted(p_dev_rec) && (btm_dev_authorized(p_dev_rec)||btm_serv_trusted(p_dev_rec, p_serv_rec))))
2304 if (((security_required & BTM_SEC_IN_MIN_16_DIGIT_PIN) == 0) ||
2305 (((security_required & BTM_SEC_IN_MIN_16_DIGIT_PIN) == BTM_SEC_IN_MIN_16_DIGIT_PIN) && btm_dev_16_digit_authenticated(p_dev_rec))) {
2311 if ((rc == BTM_SUCCESS) && (security_required & BTM_SEC_MODE4_LEVEL4) &&
2332 /* Modify security_required in btm_sec_l2cap_access_req for Lisbon */
2342 security_required |= (BTM_SEC_OUT_AUTHENTICATE | BTM_SEC_OUT_ENCRYPT);
2349 security_required |= (BTM_SEC_IN_AUTHENTICATE | BTM_SEC_IN_ENCRYPT);
2363 BTM_TRACE_DEBUG ("%s() sm4:0x%x, sec_flags:0x%x, security_required:0x%x chk:%d", __func__,
2364 p_dev_rec->sm4, p_dev_rec->sec_flags, security_required, chk_acp_auth_done);
2366 old_security_required = p_dev_rec->security_required;
2368 p_dev_rec->security_required = security_required;
2393 p_dev_rec->security_required = old_security_required;
2414 p_dev_rec->security_required = old_security_required;
2460 if ((p_dev_rec->security_required & BTM_SEC_MODE4_LEVEL4) &&
2481 p_dev_rec->security_required, p_dev_rec->p_cur_service->service_id);
2522 UINT16 security_required;
2545 security_required = btm_sec_set_serv_level4_flags (p_serv_rec->security_flags,
2550 security_required = p_serv_rec->security_flags;
2573 if (((security_required & BTM_SEC_OUT_FLAGS) == 0) ||
2574 ((((security_required & BTM_SEC_OUT_FLAGS) == BTM_SEC_OUT_AUTHENTICATE) && btm_dev_authenticated(p_dev_rec))) ||
2575 ((((security_required & BTM_SEC_OUT_FLAGS) == (BTM_SEC_OUT_AUTHENTICATE | BTM_SEC_OUT_ENCRYPT)) && btm_dev_encrypted(p_dev_rec)))
2583 if (((security_required & BTM_SEC_IN_FLAGS) == 0) ||
2584 ((((security_required & BTM_SEC_IN_FLAGS) == BTM_SEC_IN_AUTHENTICATE) && btm_dev_authenticated(p_dev_rec))) ||
2585 (((security_required & BTM_SEC_IN_FLAGS) == BTM_SEC_IN_AUTHORIZE) && (btm_dev_authorized(p_dev_rec)||btm_serv_trusted(p_dev_rec, p_serv_rec))) ||
2586 (((security_required & BTM_SEC_IN_FLAGS) == (BTM_SEC_IN_AUTHORIZE | BTM_SEC_IN_AUTHENTICATE)) && ((btm_dev_authorized(p_dev_rec)||btm_serv_trusted(p_dev_rec, p_serv_rec)) && btm_dev_authenticated(p_dev_rec))) ||
2587 (((security_required & BTM_SEC_IN_FLAGS) == (BTM_SEC_IN_AUTHORIZE | BTM_SEC_IN_ENCRYPT)) && ((btm_dev_authorized(p_dev_rec)||btm_serv_trusted(p_dev_rec, p_serv_rec))&& btm_dev_encrypted(p_dev_rec))) ||
2588 ((((security_required & BTM_SEC_IN_FLAGS) == (BTM_SEC_IN_AUTHENTICATE | BTM_SEC_IN_ENCRYPT)) && btm_dev_encrypted(p_dev_rec)))
2592 if (((security_required & BTM_SEC_IN_MIN_16_DIGIT_PIN) == 0) ||
2593 (((security_required & BTM_SEC_IN_MIN_16_DIGIT_PIN) == BTM_SEC_IN_MIN_16_DIGIT_PIN) && btm_dev_16_digit_authenticated(p_dev_rec))) {
2598 if ((rc == BTM_SUCCESS) && (security_required & BTM_SEC_MODE4_LEVEL4) &&
2645 if ((!is_originator) && ((security_required & BTM_SEC_MODE4_LEVEL4) ||
2666 p_dev_rec->security_required = security_required;
2674 if ((p_dev_rec->security_required & BTM_SEC_MODE4_LEVEL4) &&
2707 p_dev_rec->security_required, p_dev_rec->p_cur_service->service_id);
2827 p_dev_rec->security_required = BTM_SEC_NONE;
3285 if (!(p_dev_rec->security_required & BTM_SEC_OUT_AUTHENTICATE))
3300 p_dev_rec->security_required &= ~(BTM_SEC_OUT_AUTHENTICATE);
3427 //security_required = p_dev_rec->security_required;
4061 p_dev_rec->security_required &= ~BTM_SEC_OUT_AUTHENTICATE;
4122 p_dev_rec->security_required &= ~BTM_SEC_OUT_AUTHENTICATE;
4579 p_dev_rec->security_required &= ~BTM_SEC_OUT_AUTHENTICATE;
4581 security_required:%x ", p_dev_rec->security_required );
4609 p_dev_rec->security_required &= ~BTM_SEC_OUT_AUTHENTICATE;
4650 p_dev_rec->security_required &= ~BTM_SEC_OUT_AUTHENTICATE;
4800 " remote_name:%s", __func__, p_dev_rec->security_required, btm_pair_state_descr(btm_cb.pairing_state),
4857 p_dev_rec->security_required = BTM_SEC_NONE;
4980 if (!(p_dev_rec->security_required & BTM_SEC_OUT_AUTHENTICATE)
5411 p_dev_rec->security_required, p_dev_rec->sec_flags, p_dev_rec->sec_state);
5432 && (( p_dev_rec->is_originator && (p_dev_rec->security_required & BTM_SEC_OUT_AUTHENTICATE))
5433 || (!p_dev_rec->is_originator && (p_dev_rec->security_required & BTM_SEC_IN_AUTHENTICATE))))
5436 && (p_dev_rec->security_required & BTM_SEC_IN_MIN_16_DIGIT_PIN))))
5467 && (!p_dev_rec->is_originator && (p_dev_rec->security_required
5483 && (( p_dev_rec->is_originator && (p_dev_rec->security_required & BTM_SEC_OUT_ENCRYPT))
5484 || (!p_dev_rec->is_originator && (p_dev_rec->security_required & BTM_SEC_IN_ENCRYPT)))
5502 if ((p_dev_rec->security_required & BTM_SEC_MODE4_LEVEL4) &&
5513 && (( p_dev_rec->is_originator && (p_dev_rec->security_required & BTM_SEC_OUT_AUTHORIZE))
5514 || (!p_dev_rec->is_originator && (p_dev_rec->security_required & BTM_SEC_IN_AUTHORIZE))))
5531 p_dev_rec->security_required &= ~(BTM_SEC_OUT_AUTHORIZE | BTM_SEC_IN_AUTHORIZE |