/linux-4.1.27/net/bluetooth/ |
D | hci_conn.c | 727 u8 dst_type, u8 sec_level, u16 conn_timeout, in hci_connect_le() argument 755 conn->pending_sec_level = sec_level; in hci_connect_le() 790 conn->sec_level = BT_SECURITY_LOW; in hci_connect_le() 791 conn->pending_sec_level = sec_level; in hci_connect_le() 863 u8 sec_level, u8 auth_type) in hci_connect_acl() argument 884 acl->sec_level = BT_SECURITY_LOW; in hci_connect_acl() 885 acl->pending_sec_level = sec_level; in hci_connect_acl() 960 static int hci_conn_auth(struct hci_conn *conn, __u8 sec_level, __u8 auth_type) in hci_conn_auth() argument 964 if (conn->pending_sec_level > sec_level) in hci_conn_auth() 965 sec_level = conn->pending_sec_level; in hci_conn_auth() [all …]
|
D | smp.h | 183 bool smp_sufficient_security(struct hci_conn *hcon, u8 sec_level, 185 int smp_conn_security(struct hci_conn *hcon, __u8 sec_level);
|
D | smp.c | 629 static __u8 seclevel_to_authreq(__u8 sec_level) in seclevel_to_authreq() argument 631 switch (sec_level) { in seclevel_to_authreq() 1110 else if (hcon->sec_level == BT_SECURITY_FIPS) in smp_notify_keys() 1277 authenticated = hcon->sec_level == BT_SECURITY_HIGH; in smp_distribute_keys() 1323 if (hcon->sec_level > BT_SECURITY_MEDIUM) in smp_distribute_keys() 1713 u8 key_size, auth, sec_level; in smp_cmd_pairing_req() local 1785 sec_level = BT_SECURITY_MEDIUM; in smp_cmd_pairing_req() 1787 sec_level = authreq_to_seclevel(auth); in smp_cmd_pairing_req() 1789 if (sec_level > conn->hcon->pending_sec_level) in smp_cmd_pairing_req() 1790 conn->hcon->pending_sec_level = sec_level; in smp_cmd_pairing_req() [all …]
|
D | l2cap_sock.c | 139 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind() 144 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind() 147 chan->sec_level = BT_SECURITY_SDP; in l2cap_sock_bind() 436 switch (chan->sec_level) { in l2cap_sock_getsockopt_old() 527 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt() 532 sec.level = chan->sec_level; in l2cap_sock_getsockopt() 716 chan->sec_level = BT_SECURITY_LOW; in l2cap_sock_setsockopt_old() 718 chan->sec_level = BT_SECURITY_MEDIUM; in l2cap_sock_setsockopt_old() 720 chan->sec_level = BT_SECURITY_HIGH; in l2cap_sock_setsockopt_old() 786 chan->sec_level = sec.level; in l2cap_sock_setsockopt() [all …]
|
D | l2cap_core.c | 411 chan->sec_level != BT_SECURITY_SDP) in l2cap_chan_timeout() 495 chan->sec_level = BT_SECURITY_LOW; in l2cap_chan_set_defaults() 757 switch (chan->sec_level) { in l2cap_get_auth_type() 769 if (chan->sec_level == BT_SECURITY_LOW) in l2cap_get_auth_type() 770 chan->sec_level = BT_SECURITY_SDP; in l2cap_get_auth_type() 772 if (chan->sec_level == BT_SECURITY_HIGH || in l2cap_get_auth_type() 773 chan->sec_level == BT_SECURITY_FIPS) in l2cap_get_auth_type() 780 if (chan->sec_level == BT_SECURITY_LOW) in l2cap_get_auth_type() 781 chan->sec_level = BT_SECURITY_SDP; in l2cap_get_auth_type() 783 if (chan->sec_level == BT_SECURITY_HIGH || in l2cap_get_auth_type() [all …]
|
D | hci_event.c | 2518 conn->sec_level = conn->pending_sec_level; in hci_auth_complete_evt() 2624 conn->sec_level = conn->pending_sec_level; in hci_encrypt_change_evt() 3887 conn->sec_level = conn->pending_sec_level; in hci_key_refresh_complete_evt() 4547 conn->sec_level = BT_SECURITY_LOW; in hci_le_conn_complete_evt()
|
D | mgmt.c | 3378 u8 sec_level, auth_type; in pair_device() local 3414 sec_level = BT_SECURITY_MEDIUM; in pair_device() 3418 conn = hci_connect_acl(hdev, &cp->addr.bdaddr, sec_level, in pair_device() 3442 sec_level, HCI_LE_CONN_TIMEOUT, in pair_device() 3494 hci_conn_security(conn, sec_level, auth_type, true)) { in pair_device()
|
/linux-4.1.27/net/bluetooth/rfcomm/ |
D | sock.c | 251 pi->sec_level = rfcomm_pi(parent)->sec_level; in rfcomm_sock_init() 258 pi->sec_level = BT_SECURITY_LOW; in rfcomm_sock_init() 262 pi->dlc->sec_level = pi->sec_level; in rfcomm_sock_init() 406 d->sec_level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_connect() 666 rfcomm_pi(sk)->sec_level = BT_SECURITY_LOW; in rfcomm_sock_setsockopt_old() 668 rfcomm_pi(sk)->sec_level = BT_SECURITY_MEDIUM; in rfcomm_sock_setsockopt_old() 670 rfcomm_pi(sk)->sec_level = BT_SECURITY_HIGH; in rfcomm_sock_setsockopt_old() 722 rfcomm_pi(sk)->sec_level = sec.level; in rfcomm_sock_setsockopt() 770 switch (rfcomm_pi(sk)->sec_level) { in rfcomm_sock_getsockopt_old() 853 sec.level = rfcomm_pi(sk)->sec_level; in rfcomm_sock_getsockopt()
|
D | core.c | 69 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() 732 u8 sec_level, in rfcomm_session_create() argument 759 l2cap_pi(sk)->chan->sec_level = sec_level; in rfcomm_session_create() 2137 if (d->sec_level == BT_SECURITY_MEDIUM) { in rfcomm_security_cfm() 2141 } else if (d->sec_level == BT_SECURITY_HIGH || in rfcomm_security_cfm() 2142 d->sec_level == BT_SECURITY_FIPS) { in rfcomm_security_cfm() [all …]
|
/linux-4.1.27/include/net/bluetooth/ |
D | hci_core.h | 422 __u8 sec_level; member 810 u8 dst_type, u8 sec_level, u16 conn_timeout, 813 u8 sec_level, u8 auth_type); 817 int hci_conn_check_secure(struct hci_conn *conn, __u8 sec_level); 818 int hci_conn_security(struct hci_conn *conn, __u8 sec_level, __u8 auth_type, 1159 if (conn->sec_level == BT_SECURITY_SDP) in hci_encrypt_cfm() 1160 conn->sec_level = BT_SECURITY_LOW; in hci_encrypt_cfm() 1162 if (conn->pending_sec_level > conn->sec_level) in hci_encrypt_cfm() 1163 conn->sec_level = conn->pending_sec_level; in hci_encrypt_cfm()
|
D | rfcomm.h | 185 u8 sec_level; member 308 u8 sec_level; member
|
D | l2cap.h | 508 __u8 sec_level; member
|
/linux-4.1.27/drivers/net/wireless/ipw2x00/ |
D | ipw2100.c | 5486 int i, err, auth_mode, sec_level, use_group; in ipw2100_configure_security() local 5510 sec_level = SEC_LEVEL_0; in ipw2100_configure_security() 5512 sec_level = priv->ieee->sec.level; in ipw2100_configure_security() 5519 ipw2100_set_security_information(priv, auth_mode, sec_level, in ipw2100_configure_security()
|