Home
last modified time | relevance | path

Searched refs:sec_level (Results 1 – 12 of 12) sorted by relevance

/linux/net/bluetooth/rfcomm/
H A Dsock.c252 pi->sec_level = rfcomm_pi(parent)->sec_level; in rfcomm_sock_init()
259 pi->sec_level = BT_SECURITY_LOW; in rfcomm_sock_init()
263 pi->dlc->sec_level = pi->sec_level; in rfcomm_sock_init()
407 d->sec_level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_connect()
650 rfcomm_pi(sk)->sec_level = BT_SECURITY_LOW; in rfcomm_sock_setsockopt_old()
652 rfcomm_pi(sk)->sec_level = BT_SECURITY_MEDIUM; in rfcomm_sock_setsockopt_old()
654 rfcomm_pi(sk)->sec_level = BT_SECURITY_HIGH; in rfcomm_sock_setsockopt_old()
704 rfcomm_pi(sk)->sec_level = sec.level; in rfcomm_sock_setsockopt()
752 switch (rfcomm_pi(sk)->sec_level) { in rfcomm_sock_getsockopt_old()
836 sec.level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_getsockopt()
H A Dcore.c70 u8 sec_level,
219 switch (d->sec_level) { in rfcomm_check_security()
232 return hci_conn_security(conn->hcon, d->sec_level, auth_type, in rfcomm_check_security()
295 d->sec_level = BT_SECURITY_LOW; in rfcomm_dlc_clear_state()
388 s = rfcomm_session_create(src, dst, d->sec_level, &err); in __rfcomm_dlc_open()
765 u8 sec_level, in rfcomm_session_create() argument
793 l2cap_pi(sk)->chan->sec_level = sec_level; in rfcomm_session_create()
2162 if (d->sec_level == BT_SECURITY_MEDIUM) { in rfcomm_security_cfm()
2166 } else if (d->sec_level == BT_SECURITY_HIGH || in rfcomm_security_cfm()
2167 d->sec_level == BT_SECURITY_FIPS) { in rfcomm_security_cfm()
[all …]
/linux/net/bluetooth/
H A Dhci_conn.c1444 u8 dst_type, bool dst_resolved, u8 sec_level, in hci_connect_le() argument
1502 conn->pending_sec_level = sec_level; in hci_connect_le()
1505 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le()
1688 u8 dst_type, u8 sec_level, in hci_connect_le_scan() argument
1713 if (conn->pending_sec_level < sec_level) in hci_connect_le_scan()
1714 conn->pending_sec_level = sec_level; in hci_connect_le_scan()
1732 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le_scan()
1733 conn->pending_sec_level = sec_level; in hci_connect_le_scan()
1745 u8 sec_level, u8 auth_type, in hci_connect_acl() argument
1780 acl->sec_level = BT_SECURITY_LOW; in hci_connect_acl()
[all …]
H A Dsmp.c634 static __u8 seclevel_to_authreq(__u8 sec_level) in seclevel_to_authreq() argument
636 switch (sec_level) { in seclevel_to_authreq()
1108 else if (hcon->sec_level == BT_SECURITY_FIPS) in smp_notify_keys()
1299 authenticated = hcon->sec_level == BT_SECURITY_HIGH; in smp_distribute_keys()
1346 if (hcon->sec_level > BT_SECURITY_MEDIUM) in smp_distribute_keys()
1742 u8 key_size, auth, sec_level; in smp_cmd_pairing_req() local
1819 sec_level = BT_SECURITY_MEDIUM; in smp_cmd_pairing_req()
1821 sec_level = authreq_to_seclevel(auth); in smp_cmd_pairing_req()
1823 if (sec_level > conn->hcon->pending_sec_level) in smp_cmd_pairing_req()
1824 conn->hcon->pending_sec_level = sec_level; in smp_cmd_pairing_req()
[all …]
H A Dsmp.h187 bool smp_sufficient_security(struct hci_conn *hcon, u8 sec_level,
189 int smp_conn_security(struct hci_conn *hcon, __u8 sec_level);
H A Dl2cap_sock.c146 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind()
151 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind()
154 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind()
502 switch (chan->sec_level) { in l2cap_sock_getsockopt_old()
594 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt()
599 sec.level = chan->sec_level; in l2cap_sock_getsockopt()
819 chan->sec_level = BT_SECURITY_LOW; in l2cap_sock_setsockopt_old()
821 chan->sec_level = BT_SECURITY_MEDIUM; in l2cap_sock_setsockopt_old()
823 chan->sec_level = BT_SECURITY_HIGH; in l2cap_sock_setsockopt_old()
928 chan->sec_level = sec.level; in l2cap_sock_setsockopt()
[all …]
H A Dl2cap_core.c426 chan->sec_level != BT_SECURITY_SDP) in l2cap_chan_timeout()
529 chan->sec_level = BT_SECURITY_LOW; in l2cap_chan_set_defaults()
864 switch (chan->sec_level) { in l2cap_get_auth_type()
876 if (chan->sec_level == BT_SECURITY_LOW) in l2cap_get_auth_type()
877 chan->sec_level = BT_SECURITY_SDP; in l2cap_get_auth_type()
879 if (chan->sec_level == BT_SECURITY_HIGH || in l2cap_get_auth_type()
880 chan->sec_level == BT_SECURITY_FIPS) in l2cap_get_auth_type()
887 if (chan->sec_level == BT_SECURITY_LOW) in l2cap_get_auth_type()
888 chan->sec_level = BT_SECURITY_SDP; in l2cap_get_auth_type()
890 if (chan->sec_level == BT_SECURITY_HIGH || in l2cap_get_auth_type()
[all …]
H A Dhci_event.c3505 conn->sec_level = conn->pending_sec_level; in hci_auth_complete_evt()
3612 conn->sec_level = conn->pending_sec_level; in hci_encrypt_change_evt()
5215 conn->sec_level = conn->pending_sec_level; in hci_key_refresh_complete_evt()
5845 conn->sec_level = BT_SECURITY_LOW; in le_conn_complete_evt()
H A Dmgmt.c3604 u8 sec_level, auth_type; in pair_device() local
3640 sec_level = BT_SECURITY_MEDIUM; in pair_device()
3644 conn = hci_connect_acl(hdev, &cp->addr.bdaddr, sec_level, in pair_device()
3670 sec_level, HCI_LE_CONN_TIMEOUT, in pair_device()
3722 hci_conn_security(conn, sec_level, auth_type, true)) { in pair_device()
/linux/include/net/bluetooth/
H A Drfcomm.h186 u8 sec_level; member
309 u8 sec_level; member
H A Dhci_core.h710 __u8 sec_level; member
1589 u8 dst_type, u8 sec_level,
1593 u8 dst_type, bool dst_resolved, u8 sec_level,
1597 u8 sec_level, u8 auth_type,
1622 int hci_conn_check_secure(struct hci_conn *conn, __u8 sec_level);
1623 int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type,
2205 if (conn->sec_level == BT_SECURITY_SDP) in hci_encrypt_cfm()
2206 conn->sec_level = BT_SECURITY_LOW; in hci_encrypt_cfm()
2208 if (conn->pending_sec_level > conn->sec_level) in hci_encrypt_cfm()
2209 conn->sec_level = conn->pending_sec_level; in hci_encrypt_cfm()
H A Dl2cap.h537 __u8 sec_level; member