]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: EAP-TEAP with inner EAP-MSCHAPv2 user and EAP-TLS machine credentials
authorJouni Malinen <j@w1.fi>
Sun, 1 Sep 2019 14:08:45 +0000 (17:08 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 1 Sep 2019 14:19:43 +0000 (17:19 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_eap.py
tests/hwsim/wpasupplicant.py

index b31954554148826eb9b4477d04fdc20045cdb6dd..f1bf904bdc3f829fb8d0562eea7ab372bea9e45b 100644 (file)
@@ -340,6 +340,23 @@ def test_eap_teap_eap_mschapv2_user_and_machine_no_machine(dev, apdev):
                 pac_file="blob://teap_pac",
                 expect_failure=True)
 
+def test_eap_teap_eap_mschapv2_user_and_eap_tls_machine(dev, apdev):
+    """EAP-TEAP with inner EAP-MSCHAPv2 user and EAP-TLS machine credentials"""
+    check_eap_capa(dev[0], "TEAP")
+    check_eap_capa(dev[0], "MSCHAPV2")
+    check_eap_capa(dev[0], "TLS")
+    params = int_teap_server_params(eap_teap_id="5")
+    hapd = hostapd.add_ap(apdev[0], params)
+    eap_connect(dev[0], hapd, "TEAP", "user", password="password",
+                anonymous_identity="TEAP",
+                machine_identity="cert user",
+                ca_cert="auth_serv/ca.pem", phase2="auth=MSCHAPV2",
+                machine_phase2="auth=TLS",
+                machine_ca_cert="auth_serv/ca.pem",
+                machine_client_cert="auth_serv/user.pem",
+                machine_private_key="auth_serv/user.key",
+                pac_file="blob://teap_pac")
+
 def test_eap_teap_basic_password_auth_pac(dev, apdev):
     """EAP-TEAP with Basic-Password-Auth and PAC"""
     check_eap_capa(dev[0], "TEAP")
index af36081eeb2078c400bf7541a3b1bc629918c30c..8972ac12b836e740e679ff437d3512f160bc1c67 100644 (file)
@@ -1069,7 +1069,9 @@ class WpaSupplicant:
                   "altsubject_match", "subject_match", "pac_file", "dh_file",
                   "bgscan", "ht_mcs", "id_str", "openssl_ciphers",
                   "domain_match", "dpp_connector", "sae_password",
-                  "sae_password_id", "check_cert_subject"]
+                  "sae_password_id", "check_cert_subject",
+                  "machine_ca_cert", "machine_client_cert",
+                  "machine_private_key", "machine_phase2"]
         for field in quoted:
             if field in kwargs and kwargs[field]:
                 self.set_network_quoted(id, field, kwargs[field])