From: Jouni Malinen Date: Wed, 6 Jan 2016 18:11:15 +0000 (+0200) Subject: tests: WPA2-Enterprise connection using EAP-TTLS/EAP-GTC (OOM) X-Git-Tag: hostap_2_6~1027 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac713c0929bfcd44e8ef1aa54868426cc8bbb877;p=thirdparty%2Fhostap.git tests: WPA2-Enterprise connection using EAP-TTLS/EAP-GTC (OOM) Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_eap.py b/tests/hwsim/test_ap_eap.py index dd53ef35e..9efa73c4c 100644 --- a/tests/hwsim/test_ap_eap.py +++ b/tests/hwsim/test_ap_eap.py @@ -1095,6 +1095,25 @@ def test_ap_wpa2_eap_ttls_eap_gtc_server_oom(dev, apdev): if hapd.request("GET_ALLOC_FAIL").startswith('0'): break +def test_ap_wpa2_eap_ttls_eap_gtc_oom(dev, apdev): + """WPA2-Enterprise connection using EAP-TTLS/EAP-GTC (OOM)""" + params = hostapd.wpa2_eap_params(ssid="test-wpa2-eap") + hapd = hostapd.add_ap(apdev[0]['ifname'], params) + + tests = [ "eap_gtc_init", + "eap_msg_alloc;eap_gtc_process" ] + for func in tests: + with alloc_fail(dev[0], 1, func): + dev[0].connect("test-wpa2-eap", key_mgmt="WPA-EAP", + scan_freq="2412", + eap="TTLS", identity="user", + anonymous_identity="ttls", password="password", + ca_cert="auth_serv/ca.pem", phase2="autheap=GTC", + wait_connect=False) + wait_fail_trigger(dev[0], "GET_ALLOC_FAIL") + dev[0].request("REMOVE_NETWORK all") + dev[0].wait_disconnected() + def test_ap_wpa2_eap_ttls_eap_md5(dev, apdev): """WPA2-Enterprise connection using EAP-TTLS/EAP-MD5""" check_eap_capa(dev[0], "MD5")