tests: Verify PEAPv0 Crypto-Binding
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
6435799b85
commit
698f8324c6
1 changed files with 11 additions and 1 deletions
|
@ -153,10 +153,20 @@ def test_ap_wpa2_eap_peap_eap_mschapv2(dev, apdev):
|
|||
params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap")
|
||||
hostapd.add_ap(apdev[0]['ifname'], params)
|
||||
eap_connect(dev[0], "PEAP", "user",
|
||||
anonymous_identity="ttls", password="password",
|
||||
anonymous_identity="peap", password="password",
|
||||
ca_cert="auth_serv/ca.pem", phase2="auth=MSCHAPV2")
|
||||
hwsim_utils.test_connectivity(dev[0].ifname, apdev[0]['ifname'])
|
||||
|
||||
def test_ap_wpa2_eap_peap_crypto_binding(dev, apdev):
|
||||
"""WPA2-Enterprise connection using EAP-PEAPv0/EAP-MSCHAPv2 and crypto binding"""
|
||||
params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap")
|
||||
hostapd.add_ap(apdev[0]['ifname'], params)
|
||||
eap_connect(dev[0], "PEAP", "user", password="password",
|
||||
ca_cert="auth_serv/ca.pem",
|
||||
phase1="peapver=0 crypto_binding=2",
|
||||
phase2="auth=MSCHAPV2")
|
||||
hwsim_utils.test_connectivity(dev[0].ifname, apdev[0]['ifname'])
|
||||
|
||||
def test_ap_wpa2_eap_tls(dev, apdev):
|
||||
"""WPA2-Enterprise connection using EAP-TLS"""
|
||||
params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap")
|
||||
|
|
Loading…
Reference in a new issue